Repository navigation
feat(stack): write the solved dependency DAG as Graphviz DOT #608
Workflow file for this run
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
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: format, clippy, and public metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Rust formatting | |
| run: cargo fmt --all --check | |
| - name: Clippy | |
| run: cargo clippy --locked --all-targets -- -D warnings | |
| - name: Public metadata contract | |
| run: cargo test --locked --test public_metadata | |
| - name: Cargo source package | |
| run: cargo package --locked | |
| msrv: | |
| name: Rust 1.88 minimum | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.88.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Locked all-targets check | |
| run: cargo check --locked --all-targets | |
| unit: | |
| name: cargo test --lib | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Library unit tests | |
| run: cargo test --locked --lib | |
| known-bumps: | |
| name: known-bump regression (reproduce_real_prs + bump_emit) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Replay frozen maintainer toolchain bumps | |
| run: | | |
| set -euo pipefail | |
| # Library + CLI emit path: foss-2023b -> foss-2024a pairs under | |
| # tests/repro_fixtures/ (GROMACS, ScaFaCoS, MDTraj, Fiona, PuLP, numba) | |
| # plus hierarchy-aware Resolvo cases in bump_emit. | |
| cargo test --locked --test reproduce_real_prs --test bump_emit -- --nocapture | |
| packaging-fixtures: | |
| name: packaging fixtures (eOn + QMCPACK) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Parse, resolve, packaging_gate on frozen PR recipe sets | |
| run: | | |
| set -euo pipefail | |
| # Robot-overlay checks skip cleanly when no easyconfigs tree is | |
| # present; resolve + packaging_gate always run against the fixtures. | |
| cargo test --locked \ | |
| --test eon_core_rgpot \ | |
| --test eon_foss_2026_1 \ | |
| --test qmcpack_foss_2026_1 \ | |
| --test eon_packaging \ | |
| --test goal_scenario \ | |
| -- --nocapture | |
| solve-reports: | |
| name: solve + build-list + stack-diff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Co-select and report fixtures | |
| run: cargo test --locked --test build_list_and_stack_diff -- --nocapture | |
| canonical-workflows: | |
| name: canonical package + campaign workflows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Parse, materialize, solve, route, and coordinate campaigns | |
| run: | | |
| cargo test --locked \ | |
| --test container_contract \ | |
| --test foreign_conditions \ | |
| --test foreign_ingest \ | |
| --test foreign_package_plan \ | |
| --test manifest_requires_resolvo \ | |
| --test package_model \ | |
| --test package_config \ | |
| --test profile_emission \ | |
| --test package_workflow \ | |
| --test bump_workflow \ | |
| --test bump_source_patches \ | |
| --test bump_companion \ | |
| --test bump_build_backend \ | |
| --test stack_policy \ | |
| --test canonical_cli \ | |
| --test source_artifact_class \ | |
| --test target_config \ | |
| --test campaign \ | |
| --test mcp_v1 | |
| package-closure: | |
| name: package catalog + closure + source discovery | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Catalog providers, recursive closure, and source-root discovery | |
| run: | | |
| set -euo pipefail | |
| cargo test --locked \ | |
| --test package_catalog \ | |
| --test package_closure \ | |
| --test package_closure_write \ | |
| --test package_sources_discovery \ | |
| -- --nocapture | |
| integration: | |
| name: remaining integration tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Every integration test that is not ignore-only | |
| run: | | |
| cargo test --locked \ | |
| --test arch_known_failures \ | |
| --test arch_unsupported \ | |
| --test baseline_easystack \ | |
| --test batch_versions \ | |
| --test bot_classify \ | |
| --test build_list_and_bare_tuple \ | |
| --test cli_ergonomics \ | |
| --test cli_reference \ | |
| --test cuda_cc \ | |
| --test component_reach \ | |
| --test doc_walkthrough \ | |
| --test easyblock_layers \ | |
| --test easyblock_owed \ | |
| --test extension_provides \ | |
| --test fetch_prs_script \ | |
| --test from_commit \ | |
| --test generation_lint \ | |
| --test hierarchy_universe \ | |
| --test jenkins_build_list \ | |
| --test lint_fixtures \ | |
| --test llms_txt \ | |
| --test mcp_registry \ | |
| --test mcp_stdio \ | |
| --test oom_profile \ | |
| --test optimisation_criteria \ | |
| --test pr_merge_order \ | |
| --test pr_overlap \ | |
| --test pr_overlap_arch \ | |
| --test pr_overlap_easyconfigs \ | |
| --test pr_overlap_easyconfigs_open \ | |
| --test pypi_cran_extend \ | |
| --test rebuild_set \ | |
| --test recipe_commands \ | |
| --test repro_scoring \ | |
| --test ring0_ingest_repro \ | |
| --test sbom_from_lock \ | |
| --test sbom_page_drift \ | |
| --test sbom_schema \ | |
| --test skill_easyblock_fix \ | |
| --test solved_dot \ | |
| --test solver_completeness \ | |
| --test stack_files \ | |
| --test stack_order_filter \ | |
| --test source_probe \ | |
| -- --nocapture | |
| cli-smoke: | |
| name: CLI smoke (package bundle + recipe checks) | |
| runs-on: ubuntu-latest | |
| needs: [unit, known-bumps] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build release binary | |
| run: cargo build --locked --release --bin eb-stack | |
| - name: Tutorial path (GROMACS zero-hand-fed bump) | |
| run: | | |
| set -euo pipefail | |
| BIN=./target/release/eb-stack | |
| OUT=$(mktemp -d) | |
| "$BIN" --version | |
| "$BIN" package bump \ | |
| --source tests/repro_fixtures/gromacs/GROMACS-2024.4-foss-2023b.eb \ | |
| --toolchain foss/2024a \ | |
| --easyconfigs tests/repro_fixtures/universe_foss_2024a \ | |
| --out-dir "$OUT" | |
| RECIPE="$OUT/easyconfigs/g/GROMACS/GROMACS-2024.4-foss-2024a.eb" | |
| test -f "$OUT/package.plan.json" | |
| test -f "$OUT/package.sbom.cdx.json" | |
| test -f "$OUT/locks/default.lock.json" | |
| test -f "$RECIPE" | |
| grep -q "toolchain = {'name': 'foss', 'version': '2024a'}" \ | |
| "$RECIPE" | |
| grep -q "('Python', '3.12.3')" "$RECIPE" | |
| grep -q "('mpi4py', '4.0.1')" "$RECIPE" | |
| # Residual: maintainer-added pybind11 is NOT invented. | |
| ! grep -q pybind11 "$RECIPE" | |
| - name: recipe check on QMCPACK fixture (universe = empty drafts) | |
| run: | | |
| set -euo pipefail | |
| BIN=./target/release/eb-stack | |
| # Fixture alone lacks HDF5/Boost; expect non-zero (loud incompleteness). | |
| if "$BIN" recipe check \ | |
| --recipe fixtures/qmcpack_foss_2026_1/easyconfigs/q/QMCPACK/QMCPACK-4.3.0-foss-2026.1.eb \ | |
| --easyconfigs fixtures/qmcpack_foss_2026_1/easyconfigs; then | |
| echo "expected recipe check to fail without robot deps" >&2 | |
| exit 1 | |
| fi | |
| - name: recipe packaging gate on eOn core fixture | |
| run: | | |
| set -euo pipefail | |
| BIN=./target/release/eb-stack | |
| # Drafts alone leave stack deps missing; exit non-zero is correct. | |
| # Still exercises parse + packaging_gate on the draft-PR snapshot. | |
| if "$BIN" recipe check \ | |
| --recipe fixtures/eon_core_rgpot/easyconfigs/e/eOn/eOn-2.17.2-foss-2026.1.eb \ | |
| --easyconfigs fixtures/eon_core_rgpot/easyconfigs \ | |
| --require-configopt=-Dwith_rgpot=true; then | |
| echo "expected recipe check to fail without robot deps" >&2 | |
| exit 1 | |
| fi |