[BUG] Integration policy check rejects its checkout before Rust validation #152

Closed
opened 2026-10-17 04:01:29 +02:00 by erikinkinen · 3 comments
Owner

Summary

Integration's Rust CI stops at the dependency-policy check, before formatting, Clippy or unit tests can run.

Reproduction

Use Integration commit b59c6cbc1afa337bf93ed6275b390c44435d7867 and run the Rust workflow through its dependency-policy step:

python3 scripts/check-dependency-policy.py "$PWD" --git /usr/bin/git --bash /usr/bin/bash

CI2768 reproduces the failure after checkout, descriptor probing and target installation.

Expected and actual behavior

The unchanged checkout should pass source-identity and dependency-policy checks. Instead, the command exits 1 with dependency policy error: original source contains an unselected literal entry.

The original CI log does not identify the rejected path. A controlled fresh checkout reproduces the same refusal after local imports create scripts/__pycache__ and 26 bytecode files. A separate fresh run with -B passes, while -B still rejects an unrelated untracked source file. The syntax runner also explicitly writes bytecode, so disabling import writes alone is insufficient for the integration job.

Environment and identity

  • Repository: Integration, commit b59c6cbc1afa337bf93ed6275b390c44435d7867, branch feature/posix-compat.
  • Job: Rust, using the workflow's rust:latest container. No guest image is involved.
  • Tools: Python 3, explicit /usr/bin/git and /usr/bin/bash; Rust validation is not reached.
  • Source-identity restrictions must remain enforced. No additional path exemption is intended.

Evidence and prior checks

The full terminal log for CI2768 has been retained. The failure occurs at the policy step; it does not establish a compiler or test regression.

Tracking

Related: main-branch dependency resolution and Phase 6 completion.

  • Identify the rejected entry with a controlled reproduction.
  • Fix the caller and retain coverage that rejects unrelated untracked source entries.
  • Confirm that current-source Rust CI reaches and passes its required checks.
## Summary Integration's Rust CI stops at the dependency-policy check, before formatting, Clippy or unit tests can run. ## Reproduction Use Integration commit `b59c6cbc1afa337bf93ed6275b390c44435d7867` and run the Rust workflow through its dependency-policy step: ```sh python3 scripts/check-dependency-policy.py "$PWD" --git /usr/bin/git --bash /usr/bin/bash ``` [CI2768](https://git.erikinkinen.fi/erix/integration/actions/runs/2768) reproduces the failure after checkout, descriptor probing and target installation. ## Expected and actual behavior The unchanged checkout should pass source-identity and dependency-policy checks. Instead, the command exits 1 with `dependency policy error: original source contains an unselected literal entry`. The original CI log does not identify the rejected path. A controlled fresh checkout reproduces the same refusal after local imports create `scripts/__pycache__` and 26 bytecode files. A separate fresh run with `-B` passes, while `-B` still rejects an unrelated untracked source file. The syntax runner also explicitly writes bytecode, so disabling import writes alone is insufficient for the integration job. ## Environment and identity - Repository: Integration, commit `b59c6cbc1afa337bf93ed6275b390c44435d7867`, branch `feature/posix-compat`. - Job: Rust, using the workflow's `rust:latest` container. No guest image is involved. - Tools: Python 3, explicit `/usr/bin/git` and `/usr/bin/bash`; Rust validation is not reached. - Source-identity restrictions must remain enforced. No additional path exemption is intended. ## Evidence and prior checks The full terminal log for [CI2768](https://git.erikinkinen.fi/erix/integration/actions/runs/2768) has been retained. The failure occurs at the policy step; it does not establish a compiler or test regression. ## Tracking Related: [main-branch dependency resolution](https://git.erikinkinen.fi/erix/integration/issues/142) and [Phase 6 completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [x] Identify the rejected entry with a controlled reproduction. - [x] Fix the caller and retain coverage that rejects unrelated untracked source entries. - [x] Confirm that current-source Rust CI reaches and passes its required checks.
Author
Owner

A controlled fresh checkout reproduces the failure: Python imports create scripts/__pycache__ and 26 bytecode files, then source verification refuses the checkout. A separate fresh -B run passes; adding an unrelated untracked source still fails.

The integration syntax runner has a second source of cache writes through explicit compilation. The repair replaces those writes with in-memory compilation and preserves the existing input coverage, shell checks and source-identity restrictions. Focused regression checks are next.

A controlled fresh checkout reproduces the failure: Python imports create `scripts/__pycache__` and 26 bytecode files, then source verification refuses the checkout. A separate fresh `-B` run passes; adding an unrelated untracked source still fails. The integration syntax runner has a second source of cache writes through explicit compilation. The repair replaces those writes with in-memory compilation and preserves the existing input coverage, shell checks and source-identity restrictions. Focused regression checks are next.
Author
Owner

Published the repair in 7375261a. Both policy callers disable site startup and bytecode writes; syntax checks compile in memory while preserving the existing source coverage and shell-check order. The regressions cover untracked-source rejection, malformed syntax, links, special files and first-error preservation during cleanup.

The corrected syntax tests and complete syntax runner pass locally. Current-source CI remains open.

Published the repair in 7375261a. Both policy callers disable site startup and bytecode writes; syntax checks compile in memory while preserving the existing source coverage and shell-check order. The regressions cover untracked-source rejection, malformed syntax, links, special files and first-error preservation during cleanup. The corrected syntax tests and complete syntax runner pass locally. Current-source CI remains open.
Author
Owner

The repaired Rust job in CI2771 passes at 7375261a, including policy checks, formatting, strict Clippy and 737 unit-test executions. Its complete original log has no warning diagnostics. All three criteria are complete, so this issue is closed. The separate Markdown failure and running VM job remain open.

The repaired Rust job in [CI2771](https://git.erikinkinen.fi/erix/integration/actions/runs/2771) passes at `7375261a`, including policy checks, formatting, strict Clippy and 737 unit-test executions. Its complete original log has no warning diagnostics. All three criteria are complete, so this issue is closed. The separate Markdown failure and running VM job remain open.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:19 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/integration#152
No description provided.