Skip to content

doom scorer: score docs/AppleDouble/third_party/generated-parser as excluded-by-design (Part of #5468) - #5577

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5468-20261019T0431Z
Oct 19, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5468-20261019T0431Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5468. The clean-scan scorer counted files the engine rightly excludes as missed_src (round 3, engine aa8919d).

Change

doom_scorer.by_design_reason classifies an unmapped first-party file as excluded-by-design, and the file no longer counts as a miss:

  • docs-tree: a docs/ or doc/ directory (room4doom, vizdoom, sdl-doom)
  • appledouble: __MACOSX/ or a ._* file (doom-ios)
  • third-party: third_party / third-party / thirdparty / 3rdparty directory
  • generated-parser: re2c/bison/flex/yacc output, recognised by its banner

The CSV gets excluded_by_design (count) and excluded_by_design_reasons (appledouble:60 docs-tree:12). The markdown table gets both as columns. details.json lists each file with category and the engine's own exclusion reason. doom_diff compares excluded_by_design. A real miss (no class match) still fails coverage.

Class table

member status
docs trees handled
AppleDouble handled
third_party dirs handled (engine vendor detector still decides first; this catches what it did not)
re2c/bison parser handled, banner-gated
other generated-parser banners (gperf/antlr/flex) handled, same regex

Not re-run against the 39 ports (no clones/scans in this run); the round-3 numbers are not re-derived here.

Tests / gates

tests/tools/test_doom_speedrun.py: 36 pass (12 classifier cases, one end-to-end score_port on a synthetic DB). pr_gates --fast 6/6.

🤖 Generated with Claude Code

…s as excluded-by-design (Part of #5468)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 04:55
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 04:58
@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5577 @ 775986f: 1 failed check(s)

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39206736407/job/117912536804
repro: python -m pytest -q tests/tools/test_doom_speedrun.py::test_score_port_scores_by_design_exclusions_with_a_reason
failing tests: tests/tools/test_doom_speedrun.py::test_score_port_scores_by_design_exclusions_with_a_reason
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
# Wait for exec to fail or succeed; possibly raising an
E FileNotFoundError: [Errno 2] No such file or directory: 'ctags'
FAILED tests/tools/test_doom_speedrun.py::test_score_port_scores_by_design_exclusions_with_a_reason - FileNotFoundError: [Errno 2] No such file or directory: 'ctags'
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 182028
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is f45022bf03bc5a8f730a5bd87bfe0ec8c0903e75cd45adf04a1f987ae31f5e48
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12166226963
Artifact test-times-part-1 has been successfully uploaded! Final size is 182028 bytes. Artifact ID is 12166226963
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39206736407/artifacts/12166226963
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/0b29701c-da9e-4a9a-8802-e5ef5fa045c4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 81b70a3 into main Oct 19, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the churn/5468-20261019T0431Z branch October 19, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant