Skip to content

chore: run e2e weekly against supported stable DHIS2 versions - #117

Merged
HendrikThePendric merged 2 commits into
masterfrom
chore/weekly-e2e-run-against-stable-core
Nov 2, 2026
Merged

HendrikThePendric merged 2 commits into
masterfrom
chore/weekly-e2e-run-against-stable-core

Conversation

@HendrikThePendric

@HendrikThePendric HendrikThePendric commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the nightly e2e run against core-dev images with a weekly run (Mondays 04:00 UTC) against stable dhis2/core images. The manual workflow_dispatch trigger is kept.
  • Renames the workflow file, workflow name, job and Slack message (nightly-e2e.yaml → weekly-e2e.yaml, job weekly-e2e).
  • The version matrix is no longer hard-coded: a new supported-versions job reads https://releases.dhis2.org/v1/versions/stable.json, keeps the versions with supported: true, and drops any whose dhis2/core:<version> image is not published yet. It fails if nothing is left, and logs the versions it will test. New releases get picked up and end-of-life versions drop out without anyone editing the workflow.
  • Dropped the core-dev:master (v44) entry: dev builds gave too many false positives and there is no stable image for it.
  • E2E fixtures are keyed by image name, so core-dev_2-42 and core-dev_2-43 are renamed to core_2-42 and core_2-43. getFixtureDir now falls back to the newest older version's fixtures when a version has none, and fails with a clear message when there is nothing to fall back to.

Notes

  • The 2.42 and 2.43 fixtures are the former dev-build fixtures. They are not verified against the stable images yet, so please trigger the workflow manually on this branch to confirm.
  • core-dev_2-41 and core-dev_master fixtures are left in place but are no longer referenced.
  • We no longer get an early signal for the next, unreleased version; failures against a new release show up after it ships.

Test plan

  • Matrix steps run locally against the live stable.json (2.41, 2.42, 2.43), including an unpublished image being filtered out
  • tsc, eslint and prettier pass
  • Fixture fallback checked (2.45 → core_2-43); no fixtures at all fails the suite with exit code 1
  • Manual workflow_dispatch run on this branch is green for all supported versions

🤖 Generated with Claude Code

Replace the nightly run against core-dev images with a weekly run (Monday
4:00 UTC) against stable dhis2/core images. The version matrix is now
generated from releases.dhis2.org/v1/versions/stable.json, so newly
released and end-of-life versions are picked up automatically. E2E
fixtures fall back to the newest older version when a version has none.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/weekly-e2e.yaml Fixed
Use RegExp.exec() for the fixture directory pattern and restrict the
stable.json request to HTTPS, including redirects.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@HendrikThePendric
HendrikThePendric enabled auto-merge (squash) November 2, 2026 15:32
@karolinelien
karolinelien self-requested a review November 2, 2026 15:54
@HendrikThePendric
HendrikThePendric merged commit edda808 into master Nov 2, 2026
4 checks passed
@HendrikThePendric
HendrikThePendric deleted the chore/weekly-e2e-run-against-stable-core branch November 2, 2026 15:55
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.

3 participants