Skip to content

Rust calls_out: select! arm and destructuring-assignment patterns are no call (Part of #6454) - #8307

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6454-20261111T1342Z
Nov 12, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6454-20261111T1342Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6454.

Checklist: partial [c:6cd0af0e] -- select! arm patterns ending at = fixed; x = Foo(a) => (a constructor-call future before =>) is still dropped by the capitalised-tail heuristic.

Class

Rust macro-arm and destructuring-assignment patterns that end at = (not =>): select! { Foo { v: Bar(b) } = fut => .. }, (A(a), B(b)) = f(). Struct and tuple shapes leaked constructors as callees. New _SELECT_ARM_PATTERN in rust.py blanks them; start must be [A-Z(&], so *f(x) = 1, x.y = g(1) keep their calls.

Tests

test_calls_out_rust_select_arms_6454.py (positive, negative, bounded-input). All 491 rust extraction tests pass.

Gates

audit_check.py clean; crucible golden check: no drift in either fixture (nothing to bless).

Sibling gaps

  • select! { x = Foo(a) => .. }: Foo is a real call but is suppressed by the CALLS_OUT_RUST pattern tail. No burned-estate program needs it.

Lessons for agents

  • CALLS_OUT_RUST already suppresses a capitalised Name(args) before =/=>/if/|; only struct/tuple shapes needed blanking.

🤖 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 11, 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 11, 2026 13:59
@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 labels Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 11, 2026 14:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 11, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 11, 2026 16:41
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8307 @ da23806: 2 failed check(s)

== shard 2 (1669474 LOC) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/43034120313/job/130647122821
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]The operation was canceled.
log tail:
Err:2 https://security.ubuntu.com/ubuntu noble/universe amd64 universal-ctags amd64 5.9.20210829.0-1
Temporary failure resolving 'azure.archive.ubuntu.com'
E: Failed to fetch https://security.ubuntu.com/ubuntu/pool/universe/u/universal-ctags/universal-ctags_5.9.20210829.0-1_amd64.deb Temporary failure resolving 'azure.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ci_retry: attempt 1/4 failed (exit 100): bash -c sudo apt-get -o Acquire::Retries=5 update -qq && sudo apt-get -o Acquire::Retries=5 install -y universal-ctags
##[error]The operation was canceled.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 2 (1669474 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,dartdoom,doomgeneric,edge-classic,fps-cob,gzdoom,mood,odamex,room4doom,rust-doom,sdl-doom
T0: 1794413805
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]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/36323083-b68b-4163-91f3-287baa4eb365' 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/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
Terminate orphan process: pid (2433) (bash)
Terminate orphan process: pid (2754) (bash)

== shard 4 (1669847 LOC) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/43034120313/job/130647123407
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]The operation was canceled.
log tail:
Err:2 https://security.ubuntu.com/ubuntu noble/universe amd64 universal-ctags amd64 5.9.20210829.0-1
Temporary failure resolving 'azure.archive.ubuntu.com'
E: Failed to fetch https://security.ubuntu.com/ubuntu/pool/universe/u/universal-ctags/universal-ctags_5.9.20210829.0-1_amd64.deb Temporary failure resolving 'azure.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ci_retry: attempt 1/4 failed (exit 100): bash -c sudo apt-get -o Acquire::Retries=5 update -qq && sudo apt-get -o Acquire::Retries=5 install -y universal-ctags
##[error]The operation was canceled.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 4 (1669847 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: crispy-doom,doom-fx,doomretro,freedoom,fsharp-doom,gore,helion,inter-doom,linuxdoom,mochadoom,srb2
T0: 1794413950
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]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/0cd4ecd7-2ec7-48dc-b518-6af05e30d099' 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/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
Terminate orphan process: pid (2433) (bash)
Terminate orphan process: pid (2748) (bash)

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 11, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 12, 2026 17:38
@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 12, 2026
@squid-shepherd
squid-shepherd Bot merged commit 4b844a3 into main Nov 12, 2026
150 of 169 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6454-20261111T1342Z branch November 12, 2026 17:44
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