Skip to content

Split the CICS stub ggcics.c into eight more family files (Part of #5274) - #7441

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
refactor/5274-ggcics-families
Nov 1, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
refactor/5274-ggcics-families

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5274.

Why

tests/equivalence/cics/ggcics.c took 22 commits since 10-24, and plan holds work per file. Most CICS slices that add stub behaviour edited this one file.

What changes

Eight contiguous runs of the stub move out, each left as an #include at the spot it came from. ggcics.c drops from 2,636 to 641 lines.

New file Holds
ggcics_filewrite.c WRITE, REWRITE
ggcics_terminal.c RECEIVE, SEND, CONVERSE
ggcics_program.c XCTL, RETURN, the dispatcher, LINK
ggcics_inquire.c BIF DEEDIT, INQUIRE / SET TERMINAL, INQUIRE ASSOCIATION
ggcics_counters.c the named counters
ggcics_system.c INQUIRE URIMAP, VERIFY, WRITE OPERATOR, DOCUMENT
ggcics_storage.c GETMAIN, FREEMAIN, LOAD, RELEASE, BLL cells, ADDRESS
ggcics_setforms.c the SET(pointer) forms

Some of these runs contain older family #include lines, so those includes now nest. The stub stays one translation unit, and the existing tests/equivalence/cics/** CI filters already cover the new files.

tests/tools/ggcics_source.py splices the eight files back into the host text, so tests that read stub functions as text keep checking what they did.

Behaviour is unchanged

  • gcc -E -P output before and after is byte-identical (8,000 lines), rechecked against current main. The compiler sees the same program.
  • Real run: three cics-crucible cases on the cobol-stub side under GnuCOBOL in Docker: 13 of 13 pass.

Tests

151 test files touching the stub or harness: 4,353 passed, 0 failed, 85 skipped. Ruff audit: nothing new.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 1, 2026 10:33
)

ggcics.c took 22 commits since 10-24, so stub work plan-held other slices.
Eight contiguous runs move out in place, each left as an #include where it
sat: filewrite, terminal, program, inquire, counters, system, storage and
setforms. The file drops from 2,636 to 641 lines. The translation unit is
unchanged: gcc -E -P gives byte-identical output before and after.

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

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 1, 2026 15:44
…families

# Conflicts:
#	tests/cobol_mainframe/test_cics_family_split.py
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (5d78b50) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 1, 2026 15:49
auto-merge was automatically disabled November 1, 2026 15:49

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 1, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 1, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 1, 2026 15:51
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 1, 2026 15:54
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 1, 2026 16:55
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 1, 2026
…families

# Conflicts:
#	tests/tools/test_equivalence_cics_fault_resp.py
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (a0dc04d) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 1, 2026 17:06
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 1, 2026
@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 1, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 1, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 1, 2026 17:08
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 1, 2026 17:12
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd
squid-shepherd Bot merged commit 8552b72 into main Nov 1, 2026
94 of 114 checks passed
@squid-shepherd
squid-shepherd Bot deleted the refactor/5274-ggcics-families branch November 1, 2026 17:55
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