Skip to content

Add Docker-based bit-compare CI workflow#1

Closed
Adehill wants to merge 7 commits into
mainfrom
feature/add-docker-ci
Closed

Add Docker-based bit-compare CI workflow#1
Adehill wants to merge 7 commits into
mainfrom
feature/add-docker-ci

Conversation

@Adehill
Copy link
Copy Markdown
Owner

@Adehill Adehill commented May 12, 2026

Summary

  • Adds the bit-compare-docker GitHub Actions workflow
  • Derives cycle/version from bundle.yml and uses the matching openifs-lts/CY* branch as the bit-compare control (falls back to main if the LTS branch is not yet cut)
  • Triggers on push to main and on all PRs; LTS-branch pushes are intentionally not triggered (covered by the PR run)

Test plan

  • Workflow run succeeds on this PR
  • CONTROL_BRANCH resolves to openifs-lts/CY48R1.1
  • Bit-compare reports artifact uploads

Adehill added 7 commits May 8, 2026 19:11
Introduce three new automation entry points for OpenIFS, plus a shared
helper library:

- scripts/bootstrap/docker/   — container-based OpenIFS install: builds
  the toolchain image (apt + OpenMPI), clones or copies the source, and
  runs the test suite end-to-end. Replaces the legacy scripts/docker/
- scripts/ci/docker_ci/       — branch-vs-branch SAVED_NORMS bit-compare
  driver: builds a control branch and a test branch in matching images,
  runs openifs-test.sh -cbt, and writes a self-contained text report
- scripts/shared/             — shared library used by both drivers
  (shared_helpers, docker_lib, ci_lib, read_yml_config, setup_logging,
  find_py_packages)
- .github/workflows/bit-compare-docker.yml — GitHub Actions workflow
  that drives the docker_ci bit-compare on push/PR

Removes the legacy scripts/docker/ tree (superseded by bootstrap/docker)
and updates README.md, .gitignore, and oifs-config.edit_me.sh to point
at the new paths.
The workflow and the two YAML defaults all hardcoded the personal
fork `Adehill/openifs.git`, which would break the workflow when run
in any other repo and present a confusing default to anyone running
the bootstrap script locally.

- .github/workflows/bit-compare-docker.yml: replace the hardcoded
  URL in `Resolve control SHA` and in the rendered `ci_test_docker.yml`
  with `${{ github.repository }}`, so the workflow follows whichever
  fork it lives in (Adehill/openifs for testing,
  ecmwf-ifs/openifs upstream)
- scripts/bootstrap/docker/config/create_openifs_docker.yml: default
  `openifs_repo_url` to `https://github.com/ecmwf-ifs/openifs.git`
- scripts/ci/docker_ci/config/ci_test_docker.yml: same default change
  (this file is only read for local script runs — the GitHub Actions
  workflow renders its own copy in /tmp)
Find the cycle version in bundle.yml so the workflow no
hardcoded 48r1, then use the matching openifs-lts/CY* branch as the push
control (falling back to main if it does not yet exist), and skip
direct pushes to LTS branches since changes land there via PR. Important to note this needs to be updated to allow unsupported branches, when they are defined
Narrow the push trigger to main so feature-branch pushes no longer
double-trigger alongside their pull request, and pass the PR base ref
through a typed env: block rather than ${{ }} interpolation inside the
run script to remove a shell-injection sink.
Move WORK_DIR out of github.workspace in the CI workflow so the test
phase no longer copies the workspace into a subdirectory of itself,
and add _oifs_docker_ci to populate_from_local's ignore patterns so
the helper is safe against the same nested layout elsewhere. This better replicates the local docker_ci workflow, while preventing a fail on the github action CI workflow
@Adehill Adehill closed this May 12, 2026
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.

1 participant