Skip to content

Gate CI on a single ci check - #37

Merged
aichholzer merged 1 commit into
mainfrom
ci/gate-job
Nov 10, 2026
Merged

aichholzer merged 1 commit into
mainfrom
ci/gate-job

Conversation

@aichholzer

Copy link
Copy Markdown
Owner

Adds a gate job to ci.yml, reported as ci. It needs lint, test, and docker, runs under if: always(), and fails unless every upstream result is success. needs.test.result covers the whole Python matrix. skipped and cancelled count as failures.

tests/test_ci_gate.py parses ci.yml and fails when the gate's needs differs from the set of every other job, or when the gate loses name: ci or if: always(). PyYAML 6.0.3 is added to the dev dependency group for the parse.

The main branch ruleset can then require ci alone, in place of lint, test (python 3.10), and test (python 3.13). The ruleset is edited after this merges, while the three existing contexts still report on this pull request.

AGENTS.md and CONTRIBUTING.md describe the gate. The version moves to 2.0.6 in pyproject.toml, src/altiplano/__init__.py, uv.lock, and the DEPLOYMENT.md pin example, with a Changed entry in CHANGELOG.md.

Tested: uvx ruff@0.16.4 check src tests scripts is clean; the suite and the coverage gate pass. Removing docker from the gate's needs fails test_the_gate_needs_every_other_job, and removing if: always() fails test_the_gate_reports_as_ci_and_always_runs.

Add a gate job to ci.yml, reported as ci. It runs whatever happens
upstream and fails unless lint, test, and docker all succeeded. Add
tests/test_ci_gate.py. It parses the workflow with PyYAML, added as a
dev dependency, and fails when a job is missing from the gate's needs.
Describe the gate in AGENTS.md and CONTRIBUTING.md.

Bump the version to 2.0.6 in pyproject.toml, __init__.py, uv.lock, and
the pin example in DEPLOYMENT.md.
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (05d1287) to head (f43d0a4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines          937       937           
  Branches       140       140           
=========================================
  Hits           937       937           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aichholzer
aichholzer merged commit acd99d8 into main Nov 10, 2026
7 checks passed
@aichholzer
aichholzer deleted the ci/gate-job branch November 10, 2026 11:07
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