GeezerVison is showing github.com — CI quality gates are non-enforcing (masked linters, no-op test-schema, silent release diff) · Issue #1242 · GenomicsStandardsConsortium/mixs
CI quality gates are non-enforcing (masked linters, no-op test-schema, silent release diff) #1242DescriptionCI runs several quality checks that cannot fail the build, so real problems pass silently.
Non-enforcing gates
linkml-lint ends in || true (Makefile:121), so schema lint errors never fail make all or make test.
yaml-lint ends in || true (Makefile:125), so YAML violations never fail the build. The GitHub Action also runs non-strict (.github/workflows/lint-yaml.yaml:20, yamllint_strict: false).
test-schema is a no-op (Makefile:114-115): it prints a message instead of checking that the schema still generates.
- The release workflow masks diff generation with
|| echo (.github/workflows/create-release-pr.yaml:121), so a release PR can be created without the schema diff.
Prerequisite: fix the schema lint errors that un-masking would surface
linkml lint currently reports these (masked by || true). They should be fixed before removing the mask:
nose_throat_disord aliases: is a scalar (src/mixs/schema/mixs.yaml:10007); should be a list.
gradient_position example values are unquoted integers (- value: 1 / - value: -1, around src/mixs/schema/mixs.yaml:14836-14837); example values should be strings. Same pattern for gradient_pos_rel_am, isotopolog_atom_frac, nucleobase_atom_frac.
- A few
comments: fields are scalars where a list is expected (for example soil_conductivity, isotopolog, and classes MimsMisip, MimarksCMisip).
Hardening
- CI matrix tests Python 3.10 only (
.github/workflows/main.yaml), though pyproject.toml declares python = "^3.10".
.github/workflows/lint-yaml.yaml:16 uses an unpinned karancode/yamllint-github-action@master; pin to a commit SHA.
Suggested order
- Fix the schema lint errors above.
- Remove
|| true from linkml-lint; decide whether yaml-lint should enforce or stay advisory.
- Remove
|| echo from the release diff step so a failed diff fails the release PR.
- Enable
test-schema (or a lighter validate-only variant).
- Add a Python version matrix and pin the yamllint action.
Note: verifying that committed generated artifacts match a fresh build is tracked separately in #1240. Activityturbomam commented on Jul 2, 2026 Add to the hardening list: CI does not install yq; it relies on yq being preinstalled on the ubuntu-latest runner. The build hard-depends on mikefarah yq v4 (about 30 Makefile uses), so this dependency is both implicit and unpinned, and a runner image change could break the build silently.
Fix: install a pinned yq version explicitly in the workflows (or provision it in make install) instead of relying on the runner's preinstalled copy. Documenting the same prerequisite for local developers is tracked in #1105. turbomam commented on Jul 27, 2026 The masked-linters part is fixed in #1226. || true is gone from linkml-lint and yaml-lint in the Makefile and from the LinkML workflow, and yamllint_strict is now true. Both linters were verified clean against main first, so nothing changed except that a future problem will now fail the check.
Two parts remain:
test-schema is a no-op. It is @echo "Schema re-generation in test phase eliminated due to long run time", so make test reports a passing schema test that never ran.
- The release diff is still silent.
One thing for whoever picks this up: making a check fail is only half of gating. There is no branch protection on main, so a red check still does not prevent a merge. See #1275. turbomam commented on Jul 30, 2026 Consolidating five issues that describe one condition from different angles, so there is a single place to track it.
| issue |
what it says |
resolution |
| #1240 |
committed artifacts are stale and CI does not verify them |
verification widened in #1376; the staleness itself is deliberate and now written down in releasing.md |
| this one |
masked linters, no-op test-schema, silent release diff |
masked linters fixed in #1226; the rest is the required-checks change below |
| #1275 |
make LinkML linting gate merges |
the ` |
| #1303 |
regeneration job reports success while artifacts stay stale |
the job is removed in #1376; it pushed to main, which branch protection refuses, so it never committed anything here |
| #1331 |
verification checks only one file |
closed by #1376 |
| #1352 |
no status check is required to merge |
the required-checks change below |
The remaining action for all of them is requiring status checks on main: actionlint, Analyze Python, Dependency Review, Yamllint, test (3.13), zizmor.
Two checks are deliberately excluded. LinkML Linting and Verify generated artifacts are path-filtered, and a required check that never reports leaves a pull request permanently unmergeable. The documentation preview is also excluded because it is skipped on fork pull requests.
These will be closed once #1376 merges and the branch protection is set.
Analysis was AI-assisted and reviewed by me. turbomam commented on Jul 31, 2026 Resolved. The masked linters were fixed in #1226, and main now requires six status checks to merge: actionlint, Analyze Python, Dependency Review, Yamllint, test (3.13) and zizmor. LinkML Linting and the documentation preview are deliberately excluded, the first because it is path-filtered and a required check that never reports blocks a pull request forever, the second because it is skipped on pull requests from forks. turbomam commented on Jul 31, 2026 Reopening: I closed this earlier today claiming it was resolved, and it was not. Three of the four items in the body are done, one is not, and my change introduced a fourth problem.
Done
Not done
test-schema is still a no-op. Makefile:138:
test-schema:
@echo "Schema re-generation in test phase eliminated due to long run time"
It is a prerequisite of test, so make test runs a target that prints a sentence. The stated reason, run time, is real: a full regeneration is about 14 minutes. A validate-only variant would cover the intent without the cost.
Introduced by the required-checks change
I added zizmor to the required list. It cannot fail. Both meaningful steps in .github/workflows/zizmor.yml are continue-on-error: true, deliberately, so findings go to code scanning rather than blocking a merge. So requiring that check adds no protection, and reads as though it does.
Two ways to resolve that, and it needs a decision rather than a quiet edit:
- Drop
zizmor from the required list, leaving it as a reporting workflow, which is what it was designed to be.
- Let the
Run zizmor step fail the job while leaving the SARIF upload non-blocking. It currently reports zero findings and the tool version is pinned, so this would not turn red unexpectedly.
Analysis was AI-assisted and reviewed by me.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|