Commit Graph
16 Commits
Author SHA1 Message Date
Lars Wirzenius 0e5c1d7dc9 refactor(ci-broker.md): rename trigger.json to be more correct
It's a "refsFetched" node event, not a trigger message. The name was
the last remaining remnant of an earlier approach to verifying the CI
broker.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-08 17:35:06 +03:00
Lars Wirzenius 0d86c048b9 refactor: drop now-useless sed manipulation of node config
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-08 17:31:26 +03:00
Lars Wirzenius 5478af8f41 fix(ci-broker.md): replace only the DUMMYNID part
Change the "smoke test" scenario so it passes.

Fix set-rid (embedded in ci-broker.md). Previously the input ref name
was just prefixed with "refs/namespaces/{nid}", but this resulted in
an input value that referenced a namespace to become a ref to a
namespace in a namespace, which isn't sensible for what we're doing.
Change this to replace only the namespace NID in the input with the
NID we're testing with. For simplicity, assume the input NID is
"DUMMYNID".

If I was sensible, I'd write a helper library to make this better.

Signed-off-by: Lars Wirzenius <liw@liw.fi>

ci-broker.md: fix smoke test scenario

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-08 17:26:23 +03:00
Lars Wirzenius 8850f18a75 ci-broker.md: verify that event is processed and run is inserted
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 19:22:38 +03:00
Lars Wirzenius 70538ba31b ci-broker.md: verify there is a run (broken to show output)
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 19:20:34 +03:00
Lars Wirzenius cb05ca9e65 partial debug, abandonded
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 18:34:48 +03:00
Lars Wirzenius f4e9ba5470 nothing is inserted into list of runs in db
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 18:32:07 +03:00
Lars Wirzenius 7a1b7e0a9f Revert "ci-broker.md: don't set rid in trigger event for smoke test"
This reverts commit 63dd3f92ab.
2024-07-03 18:08:57 +03:00
Lars Wirzenius 384041506b actually run CI for queued events
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 18:08:40 +03:00
Lars Wirzenius 63dd3f92ab ci-broker.md: don't set rid in trigger event for smoke test
it breaks for mysterious reasons

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-03 18:01:33 +03:00
Lars Wirzenius 0db9dfe34c test: update the subplot scenarios to verify the changes
Add a couple of helper scripts to make scenarios a little less
repetitive. These aren't great for understanding, and we may need to
add more understandable steps later.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-07-02 19:56:05 +03:00
Lars Wirzenius fb51ce2bd9 feat: allow adapter to report an optional URL for a run
Also verify that the URL ends up in the HTML pages generated by the CI
broker.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-20 17:24:57 +03:00
Lars Wirzenius f6d61de9a5 tests: verify that the CI broker always writes the report page
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-20 16:32:54 +03:00
Lars Wirzenius 5a5e2af108 tests(ci-broker.md): re-enable all subplot scenarios
They now pass 10,000 times in a row on my hardware.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-13 12:47:28 +03:00
Lars Wirzenius af0bac1ec1 refactor: avoid unnecessary let/variable
This fixes a clippy warning.

Also, disable, for now, most verification scenarios in the subplot, as
something makes the CI broker too unreliable in tests to be tested,
and pretty much all test scenarios are so flaky they're useless.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-09 16:04:09 +03:00
Lars Wirzenius 1f1e0c72b7 tests: add subplot to capture acceptance criteria and verification
Add a markdown document to document acceptance criteria for the CI
broker, and also how to verify they are being met. The document is
used by the Subplot software, and the verification is run as part of
"cargo test".

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-05-07 19:32:51 +03:00