refactor: move CI scripts and env files from .github to runner/#3397
Merged
refactor: move CI scripts and env files from .github to runner/#3397
Conversation
- Moved all CI-related shell scripts and environment files from `.github/` to `runner/` for better separation of workflow configuration and reusable scripts. - Updated all workflow YAMLs, documentation, and scripts to reference the new `runner/` paths. - No functional changes to the scripts themselves.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the repository’s CI/test execution layout by moving reusable CI shell scripts and environment files from .github/ into runner/, and updating workflows/docs to reference the new locations.
Changes:
- Relocated CI runner scripts and env files into
runner/and updated script-to-script sourcing paths. - Updated GitHub Actions workflow YAMLs to reference
runner/env_*and executerunner/*.sh. - Updated README/docs and helper scripts under
scripts/to call./runner/regression.shand related utilities.
Reviewed changes
Copilot reviewed 24 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| testnets_bootstrap_template/README.md | Update example invocation to use ./runner/regression.sh. |
| src_docs/source/test_results/nightly_system_tests.rst | Update documentation link to runner/env_nightly_upgrade. |
| scripts/test_rollbacks.sh | Switch regression script path to runner/regression.sh. |
| scripts/test_node_reconnect.sh | Switch regression script path to runner/regression.sh. |
| scripts/test_block_production.sh | Switch regression script path to runner/regression.sh. |
| scripts/setup_test_env.sh | Source venv setup from runner/setup_venv.sh. |
| runner/stop_cluster_instances.sh | New helper for stopping state-cluster instances. |
| runner/source_dbsync.sh | New db-sync setup helper (moved/refactored under runner/). |
| runner/source_cardano_node.sh | New cardano-node build helper under runner/. |
| runner/source_cardano_cli.sh | New cardano-cli build helper under runner/. |
| runner/setup_venv.sh | New venv setup helper under runner/. |
| runner/save_artifacts.sh | New artifact archiving helper under runner/. |
| runner/runc.sh | Update examples/usage to use ./runner/regression.sh. |
| runner/run_tests.sh | New test-run dispatcher script under runner/. |
| runner/reqs_coverage.sh | New requirements coverage helper under runner/. |
| runner/regression.sh | Update sourced/executed helper paths from .github/* to runner/*. |
| runner/node_upgrade.sh | Update sourced/executed helper paths from .github/* to runner/*. |
| runner/node_upgrade_pytest.sh | Update results/coverage helper invocations to runner/*. |
| runner/load-gh-env.sh | Update example usage comment to runner/*. |
| runner/grep_errors.sh | New error-grep helper under runner/. |
| runner/env_regression_dbsync | Moved env config to runner/. |
| runner/env_regression | Moved env config to runner/. |
| runner/env_nightly_upgrade | Moved env config to runner/. |
| runner/env_nightly_pv11 | Moved env config to runner/. |
| runner/env_nightly_dbsync | Moved env config to runner/. |
| runner/env_nightly_cli | Moved env config to runner/. |
| runner/env_nightly | Moved env config to runner/. |
| runner/entrypoint.sh | Update example usage to ./runner/regression.sh. |
| runner/create_results.sh | New results archiving helper under runner/. |
| runner/cli_coverage.sh | New CLI coverage helper under runner/. |
| README.md | Update user-facing commands/examples from .github/* to runner/*. |
| .github/workflows/upgrade.yaml | Update env-path input to runner/env_upgrade. |
| .github/workflows/upgrade_reusable.yaml | Run ./runner/node_upgrade.sh instead of .github/*. |
| .github/workflows/regression.yaml | Update env-path input to runner/env_regression. |
| .github/workflows/regression-dbsync.yaml | Update env-path input to runner/env_regression_dbsync. |
| .github/workflows/regression_reusable.yaml | Run runner/regression.sh instead of .github/*. |
| .github/workflows/nix_smoke.yaml | Update invocation to ./runner/regression.sh. |
| .github/workflows/nightly.yaml | Update env-path input to runner/env_nightly. |
| .github/workflows/nightly_upgrade.yaml | Update env-path input to runner/env_nightly_upgrade. |
| .github/workflows/nightly_pv11.yaml | Update env-path input to runner/env_nightly_pv11. |
| .github/workflows/nightly_dbsync.yaml | Update env-path input to runner/env_nightly_dbsync. |
| .github/workflows/nightly_cli.yaml | Update env-path input to runner/env_nightly_cli. |
Comments suppressed due to low confidence (1)
runner/regression.sh:297
- This block assumes reports are always under
.reports, butrunner/run_tests.shsupports a configurableREPORTS_DIR. IfREPORTS_DIRis overridden, the HTML/JUnit move step won’t pick up the generated reports. Consider using${REPORTS_DIR:-.reports}here (and in any downstream archiving scripts) to avoid path mismatches.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.github/torunner/for better separation of workflow configuration and reusable scripts.runner/paths.