Skip to content

test(addons): list the new specs in the case inventories - #13416

Closed
mudler-agent wants to merge 2 commits into
mudler:masterfrom
mudler-agent:fix/addon-tests-master
Closed

mudler-agent wants to merge 2 commits into
mudler:masterfrom
mudler-agent:fix/addon-tests-master

Conversation

@mudler-agent

Copy link
Copy Markdown
Collaborator

What

Fix the failing "Add-on Tests" workflow on master. No spec fails. The case inventories in scripts/addons/suites.json were not updated when specs were added, so the exact comparison of expected and reported cases failed.

Why

Each suite lists the cases it must report, and the check compares that list with the Ginkgo report. Recent changes added specs without adding them to the list:

  • tables-tools: six specs about the tool cap, in core/services/addons/tools/definitions_test.go.
  • lifecycle and apps: two specs in core/services/addons/runtime_integration_test.go (the start error is logged as the cause, and the log line is bounded and has no credentials).
  • gateway and artifacts: two specs in core/services/addons/gateway/lifecycle_long_test.go (long lifecycle actions, and an owner answering after the short deadline).

The CI log of tables-tools shows the expected list plus exactly the six new cases and nothing missing.

Change

Only scripts/addons/suites.json: the new cases are added to the matching suites, one commit per cause. The inventory check is unchanged and no spec was removed, skipped or renamed.

Tests

Run locally with -tags auth,nosqlite,purego_utp and a Ginkgo JSON report:

  • ./core/services/addons: ok, 150 specs (148 listed before).
  • ./core/services/addons/gateway: ok, 269 specs (267 listed before).
  • ./core/services/addons/tools: ok.
  • Each report was matched against scripts/addons/ginkgo_report.py with the new inventory: lifecycle 150, apps 150, gateway 269, artifacts 269 specs matched.
  • sh scripts/addons/prerequisites_test.sh exits 0.

Not run locally: the full scripts/addons/verify.sh and tables_tools.sh, which need the UI build, Playwright and the test server. CI runs them.

The error text of the check does not say which of its five conditions failed, and nothing checks that new specs are listed in suites.json. Both are worth a follow-up.

Assisted-by: Claude:claude-sonnet-5-5

The add-on tool cap work added six adapter specs that the tables-tools
suite runs through the tool adapter package. They were not in the required
case inventory, so the exact comparison failed with an inventory mismatch
although every case passed.

Add the six cases to the tables-tools entry of scripts/addons/suites.json.
No required case was removed or renamed; the names are read from the
Ginkgo report of the real run.

Assisted-by: Claude:claude-sonnet-5-5
…ories

The failed-upgrade log work added two specs to the add-on service package
and the long lifecycle call work added two to the gateway package. They
were not in the required case inventory, so the lifecycle, apps, gateway
and artifacts suites, which run those packages, failed the exact
comparison although every spec passed.

Add the two lifecycle cases to the lifecycle and apps entries and the two
gateway cases to the gateway and artifacts entries of
scripts/addons/suites.json. No required case was removed or renamed; the
names are read from the Ginkgo reports of the real run.

Assisted-by: Claude:claude-sonnet-5-5
@mudler-agent

Copy link
Copy Markdown
Collaborator Author

The fix landed directly on master (commits 3f59d85, 3e81aa6, e428a08, one fast-forward from 7b41428). Closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants