Skip to content

fix: consolidate duplicate ty workflows - #183

Merged
lbliii merged 1 commit into
mainfrom
codex/consolidate-ty-workflows
Jul 7, 2026
Merged

fix: consolidate duplicate ty workflows#183
lbliii merged 1 commit into
mainfrom
codex/consolidate-ty-workflows

Conversation

@lbliii

@lbliii lbliii commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Remove the duplicate standalone ty.yml workflow and keep the report-producing Type Check (ty) job in tests.yml as the single authoritative lane. Add a workflow contract test, stability-gate note, and changelog fragment.

Why

Kida ran the same ty command twice on every push and pull request. The surviving CI job preserves raw failure output and the rendered JUnit report. The active main ruleset has no required status check tied to the removed type-check name.

Verification

  • workflow YAML parse
  • focused workflow contracts: 4 passed
  • make verify-stability
  • full suite: 4,452 passed, 5 skipped
  • repository-wide Ruff and ty checks
  • package build and clean-venv smoke

Steward Notes

Consulted the GitHub Workflow, Test Corpus, and Internal Docs stewards. Permissions, cache keys, artifacts, release/publish behavior, public APIs, schemas, examples, and benchmarks are unchanged.

Closes #138.

@lbliii
lbliii marked this pull request as ready for review July 7, 2026 16:17
Copilot AI review requested due to automatic review settings July 7, 2026 16:17
@lbliii
lbliii merged commit c3f90b1 into main Jul 7, 2026
10 checks passed
@lbliii
lbliii deleted the codex/consolidate-ty-workflows branch July 7, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Consolidates CI type-checking by removing the standalone ty.yml workflow and relying on the Type Check (ty) job in tests.yml as the single authoritative ty lane, with supporting contract coverage and documentation updates.

Changes:

  • Deleted .github/workflows/ty.yml to eliminate the duplicate ty workflow.
  • Added a workflow contract test to assert a single authoritative ty lane remains in CI.
  • Documented the authoritative lane in the stability gate doc and added a changelog fragment.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tests/templates/test_github_report_contracts.py Adds a workflows-dir constant and a new contract test asserting a single authoritative ty CI lane.
docs/stability-gate.md Documents that Type Check (ty) in tests.yml is the authoritative CI type-check lane.
changelog.d/138.changed.md Notes the CI consolidation so PRs run one authoritative type-check lane.
.github/workflows/ty.yml Removes the duplicate standalone ty workflow.

Comment on lines +40 to +42
assert "ty.yml" not in workflows
assert sum("uv run ty check src/kida\n" in workflow for workflow in workflows.values()) == 1
assert "name: Type Check (ty)" in workflows["tests.yml"]
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.

Consolidate duplicate ty workflows

2 participants