Skip to content

det & fidelity: emit paragraph_methods provenance (#8488) and traceability-map fidelity tool (#7532) - #8510

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
feat/cobol-translation-fidelity-8488
Nov 16, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
feat/cobol-translation-fidelity-8488

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #7532
Addresses #8488

  • det/program.py: records stats["paragraph_methods"] mapping each COBOL paragraph name to its generated Java method (gen.method(i) or p{i}) alongside the /** <PARAGRAPH>. */ Javadoc provenance.
  • tests/tools/translation_fidelity.py: per-paragraph, per-program, and estate-level COBOL→Java structural fidelity tool along traceability.json / Javadoc / normalized names, with within-program shuffled and unrelated-program null controls.
  • Tests: pytest tests/tools/test_translation_fidelity.py tests/cobol_mainframe/test_det_paragraph_provenance_8488.py (3 passed).

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 16, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 16, 2026 00:18
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 16, 2026 00:18
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8510 @ e4190ef: 1 failed check(s)

== ruff-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43779482734/job/133013187698
repro: python tests/tools/pr_gates.py --only lint
errors:
##[error]Process completed with exit code 1.
log tail:
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
unformatted: File would be reformatted
--> gitgalaxy/tools/cobol_to_java/det/program.py:1838:59
|
1837 | stats["paragraph_methods"] = {
- p.name: (gen.method(i) if structured else f"p{i}")
- for i, p in enumerate(proc.paragraphs)
1838 + p.name: (gen.method(i) if structured else f"p{i}") for i, p in enumerate(proc.paragraphs)
1839 | }
|
1 file would be reformatted, 364 files already formatted
Ruff Audit: files are not ruff format-compliant (zero-tolerance -- run ruff format locally).
Ruff Audit: FYI -- these baselined findings are no longer flagged (fixed, or the flagged line was edited).
Consider removing them from ruff_audit_baseline.json in this PR (--write-baseline):
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @01c621e910eb#0 -- Unparenthesized implicit string concatenation in collection
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @3ef514618e1b#0 -- Unparenthesized implicit string concatenation in collection
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @d9fb18c37b48#0 -- Unparenthesized implicit string concatenation in collection
Ruff Audit: no NEW lint findings beyond the 72-finding baseline.
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/fe8ce156-77cb-4b9e-b00e-9ecde6b3fb0e' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 16, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 16, 2026 00:24
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 16, 2026 00:41
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8510 @ 6014711: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43780112850/job/133020482764
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 15dbd9ccb5dbf34fae002b6ed1a2670f52df37bc
Build Date: 2026-11-03T17:26:59Z
Worker ID: {87cb11ec-7033-4ba4-b739-e58fab368bfe}
Region: westus2
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261111.196.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261111.196/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261111.196
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: select
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: select)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/1 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43780112850/job/133015449182
repro: python -m pytest -q tests/test_source_reads.py::test_no_source_read_loses_a_byte
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
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
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:146: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files 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 956170
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2129e1d666474f2bb10739a49dc2a1992cc2c7dfb268bacc2a7d33d222167cfd
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 14188303851
Artifact test-times-part-1 has been successfully uploaded! Final size is 956170 bytes. Artifact ID is 14188303851
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/43780112850/artifacts/14188303851
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/6d9ae54d-c5e6-4570-b802-e75c59b82bc0' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 16, 2026
@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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 16, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 16, 2026 02:12
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

from collections import defaultdict
from dataclasses import asdict, dataclass
import json
import os
@squid-shepherd
squid-shepherd Bot merged commit ab12fd2 into main Nov 16, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the feat/cobol-translation-fidelity-8488 branch November 16, 2026 02:39
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.

Translation fidelity along the traceability map: compare each COBOL paragraph with the Java method it became

2 participants