Skip to content

feat(security): --offline on four cobol_to_cobol forges (Part of #8624, slice 7) - #8655

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8624-20261119T0835Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8624-20261119T0835Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Part of #8624 (slice 7). Copies the slice 6 pattern (#8652): add_flag(parser) before parse_args(), enforce(args) right after, so --offline (or GITGALAXY_OFFLINE=1) installs the socket guard in four more cobol_to_cobol CLIs.

What changed

  • cobol_compiler_forge.py, cobol_schema_forge.py, cobol_jcl_forge.py, cobol_dag_architect.py: shared --offline flag plus enforce(args).
  • tests/core_engine/test_offline_cobol_forges_8624.py: for each forge, runs the real __main__ on a small COBOL fixture. With --offline and with the env var alone a socket connect is refused (RC 0 otherwise); without either it is not guarded.
  • tests/tools/docs_read_by_tests.txt: regenerated by change_classifier.py --write (not hand-written).

Class / Sibling gaps

Class: every gitgalaxy/tools/cobol_to_cobol/*.py CLI with an argparse main() takes the shared --offline flag from gitgalaxy/tools/readiness/offline.py.
Members: cobol_graveyard_finder, cobol_jcl_auditor, cobol_system_limits_reporter, completeness_report were already handled; this PR adds cobol_compiler_forge, cobol_schema_forge, cobol_jcl_forge, cobol_dag_architect.
Sibling gaps: cobol_etl_unpacker.py and cobol_microservice_slicer.py still lack the flag (same mechanism; held back by the 5-file cap, see Remaining slices). cobol_agent_task_forge.py and cobol_lexical_patcher.py have no argparse CLI (library-only, nothing to flag).

Remaining slices

Slice 8: add the flag to cobol_etl_unpacker.py and cobol_microservice_slicer.py (2 sources) plus one test file extending this one's pattern (3 hand-written files).

Gates

pytest tests/core_engine/test_offline_cobol_forges_8624.py: 8 passed. pr_gates --fast: 8 of 9 pass; affected fails on test_runtime_option_table.py::test_used_by_is_exactly_the_burned_corpora_that_hold_the_construct (burned-corpus listing for le.runtime_options.TRAP, a path this PR does not touch; fails identically on a pristine origin/main worktree with the same local corpora, where example-health-apis lacks the construct; pr_gates --vs-main labelled it "caused by branch" but the direct main run disproves that).

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 09:11
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 09:13
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

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 Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 19, 2026 10:16
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8655 @ b9b6c8c: 2 failed check(s)

== db2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44499890399/job/135476776735
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cobol_mainframe/test_equivalence_db2_rows.py::test_copaus2c_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_cotrtlic_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgacdb01_det_port_holds_on_generated_customer_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgacdb02_det_port_holds_on_generated_customer_secure_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgacus01_front_end_holds_on_generated_customer_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgapdb01_port_holds_on_generated_multi_table_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgapol01_front_end_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgdpdb01_det_port_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgdpol01_front_end_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgicdb01_det_port_holds_on_generated_customer_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgicus01_front_end_holds_on_generated_customer_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgipdb01_det_port_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgipol01_front_end_holds_on_generated_policy_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgucdb01_det_port_holds_on_generated_customer_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgucus01_front_end_holds_on_generated_customer_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgupdb01_det_port_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgupol01_front_end_holds_on_generated_multi_table_rows_with_fk tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_acctctrl_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1cac_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1cca_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1ccs_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1cra_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1dac_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1tfn_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_bnk1uac_screen_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_cobtupdt_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_creacc_service_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_dbcrfun_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_delacc_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_delcus_service_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_inqacc_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_inqacccu_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_updacc_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_equivalence_db2_rows.py::test_the_xfrfun_det_port_holds_on_generated_db2_rows tests/cobol_mainframe/test_sql_dynamic.py::test_dyndemo_det_port_proves_on_db2 tests/cobol_mainframe/test_sql_dynamic.py::test_insdemo_det_port_proves_on_db2_against_the_hand_trace tests/cobol_mainframe/test_sql_dynamic.py::test_rowdemo_det_port_proves_on_db2_against_the_hand_trace tests/cobol_mainframe/test_sql_dynamic.py::test_scrolldemo_det_port_proves_on_db2_against_the_hand_trace tests/cobol_mainframe/test_sql_unit_of_work.py::test_uowdemo_det_port_proves_on_db2_against_the_hand_trace[A] tests/cobol_mainframe/test_sql_unit_of_work.py::test_uowdemo_det_port_proves_on_db2_against_the_hand_trace[N] tests/cobol_mainframe/test_sql_whenever.py::test_whendemo_det_port_proves_on_db2
errors:
fail-on-cache-miss: false
E AssertionError: [+] Generated Service: CreaccService.java
tests/cobol_mainframe/test_equivalence_db2_rows.py:227: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:834: AssertionError
E AssertionError: ICS API: GetcompyController.java
tests/cobol_mainframe/test_equivalence_db2_rows.py:249: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:397: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:865: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:279: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:487: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:290: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:303: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:530: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:314: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:543: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:328: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:557: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:342: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:571: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:354: AssertionError
E AssertionError:
tests/cobol_mainframe/test_sql_dynamic.py:249: AssertionError
tests/cobol_mainframe/test_equivalence_db2_rows.py:584: AssertionError
E KeyError: 'db2_generated'
tests/cobol_mainframe/test_sql_dynamic.py:751: AssertionError
... 56 more
log tail:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] The build could not read 1 project
[ERROR] The project com.gitgalaxy.modernized:estate:1.0.0-SNAPSHOT (/tmp/pytest-of-runner/pytest-0/popen-gw0/test_uowdemo_det_port_proves_o1/proof/java/java_h2/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.gitgalaxy.modernized:estate:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter-parent:pom:3.2.4 (present, but unavailable): org.springf
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
[ERROR] Non-resolvable parent POM for com.gitgalaxy.modernized:estate:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter-parent:pom:3.2.4 (present, but unavailable): Could not f
================================================================================
🪐 COBOL-TO-JAVA TRANSLATOR ONLINE — COMMUNITY FREE TIER
================================================================================
LEGAL AUDIT TRIPWIRE: Executing under PolyForm Noncommercial License 1.0.0.
WARNING: This key is NOT a legitimate license for commercial enterprise use.
If this engine is running in a corporate CI/CD pipeline, you are out of compliance.
Contact [email protected] to acquire a commercial enterprise key.
================================================================================
assert 1 == 0
+ where 1 = CompletedProcess(args=['/opt/hostedtoolcache/Python/3.12.16/x64/bin/python', '/home/runner/work/gitgalaxy/gitgalaxy/te...re a commercial enterprise key.\n========================================================================
FAILED tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgipdb01_det_port_holds_on_generated_multi_table_rows_with_fk - assert False is True
FAILED tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgupdb01_det_port_holds_on_generated_multi_table_rows_with_fk - assert False is True
FAILED tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgdpdb01_det_port_holds_on_generated_multi_table_rows_with_fk - assert False is True
FAILED tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgacdb02_det_port_holds_on_generated_customer_secure_rows_with_fk - assert False is True
FAILED tests/cobol_mainframe/test_equivalence_db2_rows.py::test_lgicdb01_det_port_holds_on_generated_customer_rows - assert False is True
41 failed, 211 passed in 948.43s (0:15:48)
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/492d2a18-217d-45d1-9b5e-f225c7d45ed5' 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

== equivalence-e2e (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44499890399/job/135486963972
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: equivalence-e2e
##[group]Run echo "plan: $PLAN, db2 $DB2_PLAN ($PLAN_RESULT), shards: $SHARDS, db2: $DB2"
echo "plan: $PLAN, db2 $DB2_PLAN ($PLAN_RESULT), shards: $SHARDS, db2: $DB2"
# runner-minutes of this run so far (every finished job but this one), for the PR body / the nightly trend
gh api --paginate "repos/$REPO/actions/runs/$RUN_ID/jobs?per_page=100" --jq '.jobs[] | select(.name != "equivalence-e2e" and .completed_at != null) | [.name, ((.completed_at | fromdateiso8601) - (.started_at | fromdateiso8601))] | @TSV' > j
python3 - <<'PY' >> "$GITHUB_STEP_SUMMARY"
rows = [ln.rstrip("\n").split("\t") for ln in open("jobs.tsv", encoding="utf-8") if ln.strip()]
total = sum(float(s) for _, s in rows)
print("## Equivalence E2E runner time")
print("| job | seconds |\n|---|---|")
print("".join(f"| {n} | {float(s):.0f} |\n" for n, s in rows), end="")
print(f"\n**{total / 60:.1f} runner-minutes** across {len(rows)} job(s)")
PY
# #4935: a tree the PR run of this workflow proved green: the gate skipped the plan and every job after it
if [ "$SKIP" = "true" ]; then test "$PLAN_RESULT" = "skipped" && test "$SHARDS" = "skipped" && test "$DB2" = "skipped"; exit; fi
test "$PLAN_RESULT" = "success"
if [ "$PLAN" = "none" ]; then test "$SHARDS" = "skipped" && test "$DB2" = "skipped"; exit; fi
test "$SHARDS" = "success"
# #6664: a skipped db2 is green only when the plan said none (no input of the Db2 files changed)
if [ "$DB2_PLAN" = "none" ]; then test "$DB2" = "skipped"; else test "$DB2" = "success"; fi
shell: /usr/bin/bash -e {0}
env:
PLAN: run
DB2_PLAN: run
PLAN_RESULT: success
SKIP:
SHARDS: success
DB2: failure
GH_TOKEN: ***
REPO: squid-protocol/gitgalaxy
RUN_ID: 44499890399
##[endgroup]
plan: run, db2 run (success), shards: success, db2: failure
##[error]Process completed with exit code 1.
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 19, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 10:21
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot merged commit 29423b0 into main Nov 19, 2026
71 of 73 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8624-20261119T0835Z branch November 19, 2026 10:42
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