Skip to content

ruff-format: mark queue ci-green, add gotcha 558 - #2264

Closed
luhenry wants to merge 1 commit into
mainfrom
ruff-format-queue-bookkeeping
Closed

luhenry wants to merge 1 commit into
mainfrom
ruff-format-queue-bookkeeping

Conversation

@luhenry

@luhenry luhenry commented Sep 24, 2026

Copy link
Copy Markdown
Member

Bookkeeping follow-up for #2198, which is now green on both matrix legs.

What happened on #2198: the first CI run only produced a cp314t job — the include:-only tag/build keys collapsed the matrix onto one combination (gotcha 402's shape), so the cp38-abi3 leg never ran at all. The one job that did run failed its smoke test because it probed ruff_format.__file__ on the maturin-generated package shim instead of the compiled submodule (gotcha 308's shape, without a name collision this time). Both fixed on the ruff-format branch; run 35941432233 is green on cp38-abi3, cp314t, and the publish dry run.

This PR:

  • .queue.yml: ruff-format status ci-running → ci-green, notes updated with the root causes and fixes.
  • skills/python-project-porting/references/gotchas/compiled-vs-pure-detection.md (+ index): new gotcha 558 — gotcha 308's sys.modules probe is the right fix for any pure-Rust maturin project's __file__, unconditionally, not only once a name collision raises AttributeError. Also notes not to blame the interpreter for a per-leg failure until the sibling leg has actually run (it hadn't — gotcha 402's collapse, not a free-threading-specific quirk).

No functional changes; this only updates queue tracking and the porting-skill reference docs.


Generated by Claude Code

PR #2198's first CI run only produced a cp314t job (the include-only
tag/build keys collapsed the matrix onto one combination - gotcha
402), and that job's smoke test probed the maturin package shim's
__file__ instead of the compiled submodule (gotcha 308's shape,
without a name collision). Both fixed on the branch; run 35941432233
is green on cp38-abi3 and cp314t plus the publish dry run.

Add gotcha 558: gotcha 308's sys.modules probe is the correct fix for
*any* pure-Rust maturin project's __file__, not only once a name
collision raises AttributeError - the wrap into a generated package is
unconditional and interpreter-agnostic. Also record the queue-status
update for ruff-format.
luhenry added a commit that referenced this pull request Sep 24, 2026
…__file__ shim)

Replicates PR #2264's bookkeeping directly to main (renumbered 558->559 to
avoid colliding with ifcopenshell's concurrently-landed 558) since that PR's
own agent hit a permission wall pushing to main directly.

luhenry commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Superseded — this bookkeeping (queue status + the new gotcha, renumbered 558→559 to avoid a collision with ifcopenshell's concurrently-landed 558) landed directly on main in 0eb5fbf, since that's this repo's convention for .queue.yml/skills/ changes and this session doesn't need the extra PR round-trip. Closing without merge.


Generated by Claude Code

@luhenry luhenry closed this Sep 24, 2026
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