Skip to content

test: let scenarios that replace the test set evaluate again - #306

Merged
seberm merged 1 commit into
bitcoinix:masterfrom
ostermayer:test-tests-mkforce
Nov 20, 2026
Merged

seberm merged 1 commit into
bitcoinix:masterfrom
ostermayer:test-tests-mkforce

Conversation

@ostermayer

Copy link
Copy Markdown
Collaborator

Since #224, wireguardIptablesLegacy and lnconnectNoOperatorRole fail to evaluate with attribute 'i2pd' missing. Both set tests = mkForce { ... }, so config.tests has no i2pd entry, and test.data.i2pd reads it. CI doesn't build these two scenarios. Only run-tests.sh buildable and all do.

This PR reads the entry with or false, so a missing entry counts as a test that's off. Which tests run doesn't change.

Testing

  • On master, run-tests.sh -s <scenario> build --dry-run fails for both scenarios. With this PR it passes.
  • Both scenarios pass on a KVM host.

#293 reads config.tests.rtl the same way, so I changed it there too.

Written with Claude Opus 5.5 and reviewed with GPT-6 Astra.

9d7a7ed made the i2pd test data depend on config.tests.i2pd. Scenarios
that set `tests = mkForce { ... }` have no such attribute, so
wireguardIptablesLegacy and lnconnectNoOperatorRole failed to evaluate
with "attribute 'i2pd' missing". Treat a missing entry as false.

Assisted-by: Claude Code (Claude Opus 5.5)
@ostermayer ostermayer added type: bug Behaviour is wrong vs. documented or intended area: ci .github/, test/, dev/ labels Nov 20, 2026
@seberm seberm added this to the v0.2.0 milestone Nov 20, 2026

@seberm seberm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no action items.

Tested: run-tests.sh -s <scenario> build --dry-run for wireguardIptablesLegacy, lnconnectNoOperatorRole and an inline scenario that copies the selectedTests example (tests = mkForce {…}). On master all three fail with attribute 'i2pd' missing; on this PR all three pass.

Assisted-by: Claude Code (Claude Opus 5.5)

@seberm
seberm merged commit e2a03bb into bitcoinix:master Nov 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ type: bug Behaviour is wrong vs. documented or intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants