ci: Consolidate workflows and add pre-commit hooks#90
Merged
DanielKellerM merged 3 commits intomasterfrom Feb 20, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request consolidates the CI pipeline into a single orchestrator workflow and adds pre-commit hooks for local development. The main changes introduce a workflow dependency chain to prevent expensive CI operations from running when early checks fail, remove a problematic Python dependency, and provide developers with optional local git hooks that match the CI configuration.
Changes:
- Add
ci.ymlorchestrator that chains workflows (lint → build/analyze → gitlab-ci/deploy) to prevent GitLab CI from running when lint fails - Replace
flatdictlibrary with custom_flatten_dictfunction to fix CI installation issues - Add pre-commit hooks (.pre-commit-config.yaml and .gitlint) matching CI lint rules for optional local use
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ci.yml | New orchestrator workflow that chains lint, build, analyze, gitlab-ci, and deploy with proper dependencies |
| .github/workflows/lint.yml | Changed triggers to workflow_call for orchestration support |
| .github/workflows/build.yml | Changed triggers to workflow_call for orchestration support |
| .github/workflows/analyze.yml | Changed triggers to workflow_call for orchestration support |
| .github/workflows/deploy.yml | Changed triggers to workflow_call for orchestration support |
| .github/workflows/gitlab-ci.yml | Changed triggers to workflow_call and added 200-minute timeout |
| .gitlab-ci.yml | Migrated from deprecated except to rules syntax for branch filtering |
| util/mario/tracer.py | Replaced flatdict.FlatDict with custom _flatten_dict implementation |
| requirements.txt | Removed flatdict, added pre-commit |
| .pre-commit-config.yaml | New pre-commit configuration with gitlint, flake8, and yamllint hooks |
| .gitlint | New gitlint configuration matching CI commit message rules |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
thommythomaso
approved these changes
Feb 20, 2026
github-actions bot
pushed a commit
that referenced
this pull request
Feb 20, 2026
* ci: Fix flatdict dependency * ci: Chain workflows with workflow_call orchestrator * ci: Add flake8 and yamllint pre-commit hooks ----- Deployed from f5b7617
github-actions bot
pushed a commit
that referenced
this pull request
Feb 20, 2026
* ci: Fix flatdict dependency * ci: Chain workflows with workflow_call orchestrator * ci: Add flake8 and yamllint pre-commit hooks ----- Deployed from f5b7617
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.
Summary
ci.ymlthat chains all CI workflows (lint,build,analyze,deploy,gitlab-ci) viaworkflow_call. Previously, each workflow triggered independently, meaning the internal GitLab CI would run even when lint checks were failing. Now workflows run as a ladder where each stage depends on the previous one, with lint as the first gate.flatdictfromrequirements.txtand replace its usage intracer.pywith a simple recursive flatten.flatdictwas causing CI failures due to install issues.pre-commit install && pre-commit install --hook-type commit-msg.