Skip to content

ci(re-ids): a pull request stacked on another is not told to renumber the report it carries from it (#1791) - #1792

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/re-id-guard-stacked-pr
Nov 11, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/re-id-guard-stacked-pr

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The RE-id guard (tools/ci/check_re_id_reuse.py, in the PII guard job) no longer fails a pull request for a report it carries from the pull request it is stacked on. It read the reports a pull request adds against main and failed the later of two open pull requests that added one id. A stacked pull request holds its base's commits, so the base's report is in its file list at the same path: #1791 (stacked on #1771) was told to renumber RE-438, a report #1771 added and #1791 did not write. The same path is one report seen twice. The same id at another path, and a second file under the base's id, still fail.

Motivation

A false red on fast / PII guard for #1791 (RE-438 is also added by #1771, opened first ... renumber this report). Renumbering would have broken the citations of RE-438 in #1771; the guard was wrong, not the numbering.

Changes

  • tools/ci/check_re_id_reuse.py: a path an earlier open pull request adds that this pull request adds too is no clash (p not in paths); the docstring says why.
  • tools/ci/test_check_re_id_reuse.py: three failure-first tests of the pure reused judgement: the stacked pull request's inherited report beside its own next id passes; a stacked pull request that adds a second file under the base's id fails ("names 2 new reports"); a clash with a different pull request's id at another path still fails beside a shared one.
  • docs/maintaining.md: the sentence that describes the rule.

Testing

No output of rvt-ifc changes, so no Measure.

Audit-honesty checklist

  • No user-visible change: CI tooling only, no changelog fragment.
  • No reverse-engineering finding.
  • No emojis, no private paths in committed files.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk proprietary source, internals or NDA material.
  • No new test fixtures.

Breaking changes

None.

Related issues

Refs #1791, #1771.

… the report it carries from it (#1791)

check_re_id_reuse.py listed the reports a pull request adds against main and
failed the later of two open pull requests that added one id. A pull request
stacked on another carries the other's commits, so the other's report is in its
file list at the same path: #1791 was told to renumber RE-438, which #1771 had
added and #1791 had not written. The same path is one report seen twice; the
same id at another path is a second report under one id and still fails, as
does a second file under the base's id.

Three failure-first tests of the pure judgement, and the sentence in
docs/maintaining.md that describes the rule.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 22:16
@DrunkOnJava
DrunkOnJava merged commit 58bd0b5 into main Nov 11, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/re-id-guard-stacked-pr branch November 11, 2026 22:33
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