Skip to content

fix: add roles: all to smoke-codex workflow#841

Merged
Mossaka merged 2 commits intomainfrom
fix/smoke-codex-roles-all
Feb 13, 2026
Merged

fix: add roles: all to smoke-codex workflow#841
Mossaka merged 2 commits intomainfrom
fix/smoke-codex-roles-all

Conversation

@Mossaka
Copy link
Collaborator

@Mossaka Mossaka commented Feb 13, 2026

Summary

  • The smoke-codex workflow was missing roles: all in its frontmatter, unlike the other smoke workflows (claude, copilot, chroot)
  • Without roles: all, the gh-aw compiler generates a pre_activation job with a team membership check requiring write permission
  • The Claude bot user only has read access, so the membership check fails and the entire workflow is skipped on pull_request events
  • Adding roles: all removes the pre_activation gate, matching the behavior of the other smoke workflows

Fixes the skipped Smoke Codex checks on PR #796.

Test plan

  • Verify Smoke Codex workflow runs (not skips) on this PR's pull_request event
  • Verify the compiled .lock.yml no longer contains pre_activation or check_membership jobs

🤖 Generated with Claude Code

The smoke-codex workflow was missing `roles: all` in its frontmatter,
unlike smoke-claude, smoke-copilot, and smoke-chroot. This caused the
compiler to generate a `pre_activation` job with a team membership
check, which failed for users with read-only access (e.g., Claude bot),
skipping the entire workflow on pull_request events.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 13, 2026 19:01
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 82.88% 83.04% 📈 +0.16%
Statements 82.88% 83.03% 📈 +0.15%
Functions 82.74% 82.74% ➡️ +0.00%
Branches 74.87% 74.97% 📈 +0.10%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/docker-manager.ts 84.7% → 85.3% (+0.61%) 84.2% → 84.8% (+0.60%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Smoke Codex gh-aw workflow manifest to include roles: all, aligning it with other smoke workflows so the compiled workflow no longer includes a pre_activation team-membership gate that can cause pull_request runs to be skipped for low-permission bot users.

Changes:

  • Add roles: all to .github/workflows/smoke-codex.md frontmatter.
  • Regenerate .github/workflows/smoke-codex.lock.yml to remove the pre_activation/check_membership jobs and update the activation job condition accordingly.
  • (Also included in the lockfile diff) Add --enable-chroot to the awf invocation for the Codex run step.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/smoke-codex.md Adds roles: all to the workflow manifest frontmatter to disable role-gated pre-activation.
.github/workflows/smoke-codex.lock.yml Updates the compiled workflow to remove the pre-activation gate; also changes the awf command flags.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1372 to 1374
mkdir -p "$CODEX_HOME/logs"
sudo -E awf --env-all --container-workdir "${GITHUB_WORKSPACE}" --allow-domains '*.githubusercontent.com,172.30.0.1,api.openai.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.githubassets.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,lfs.github.com,mcp.tavily.com,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,openai.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com' --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --enable-host-access --build-local \
sudo -E awf --enable-chroot --env-all --container-workdir "${GITHUB_WORKSPACE}" --allow-domains '*.githubusercontent.com,172.30.0.1,api.openai.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.githubassets.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,lfs.github.com,mcp.tavily.com,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,openai.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com' --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --enable-host-access --build-local \
-- /bin/bash -c 'export PATH="$(find /opt/hostedtoolcache -maxdepth 4 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && INSTRUCTION="$(cat /tmp/gh-aw/aw-prompts/prompt.txt)" && codex ${GH_AW_MODEL_AGENT_CODEX:+-c model="$GH_AW_MODEL_AGENT_CODEX" }exec --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check "$INSTRUCTION"' \
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The compiled workflow now adds --enable-chroot to the awf invocation. This isn’t mentioned in the PR description and appears unrelated to adding roles: all/removing the pre_activation gate. Please confirm this flag change is intentional (and update the PR summary accordingly), or recompile/regenerate to keep the .lock.yml change scoped to the role/frontmatter update (or apply the chroot change consistently across other smoke workflows if that’s the goal).

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

Build Test: Bun - Results

Project Install Tests Status
elysia 1/1 PASS
hono 1/1 PASS

Overall: PASS

All Bun build tests passed successfully.

AI generated by Build Test Bun

@github-actions
Copy link
Contributor

Build Test: Node.js - Results

Project Install Tests Status
clsx PASS PASS
execa PASS PASS
p-limit PASS PASS

Overall: PASS

All Node.js test projects built and tested successfully!

AI generated by Build Test Node.js

@github-actions
Copy link
Contributor

Go Build Test Results

Project Download Tests Status
color 1/1 PASS
env 1/1 PASS
uuid 1/1 PASS

Overall: PASS

All Go projects successfully downloaded dependencies and passed tests.

AI generated by Build Test Go

@github-actions
Copy link
Contributor

C++ Build Test Results

Project CMake Build Status
fmt PASS
json PASS

Overall: PASS

All C++ projects built successfully.

AI generated by Build Test C++

@github-actions
Copy link
Contributor

Smoke Test Results (Claude)

Last 2 merged PRs:

  • fix(squid): add api-proxy support (ports 10000/10001, IP 172.30.0.30)
  • fix(ci): collect agent output on execution failure

Test Results:

  • ✅ GitHub MCP: Retrieved PR data
  • ✅ Playwright: Navigated to GitHub (title: "GitHub · Change is constant. GitHub keeps you ahead. · GitHub")
  • ✅ File Writing: Created /tmp/gh-aw/agent/smoke-test-claude-21999160510.txt
  • ✅ Bash Tool: Verified file contents

Status: PASS

AI generated by Smoke Claude

@github-actions
Copy link
Contributor

Smoke Test Results: PASS

Last 2 merged PRs:

✅ GitHub MCP: Retrieved PR data
✅ Playwright: Verified github.com title contains "GitHub"
✅ File Write: Created /tmp/gh-aw/agent/smoke-test-copilot-21999160432.txt
✅ Bash: Verified file content

Author: @Mossaka | Assignees: @lpcox @Claude

AI generated by Smoke Copilot

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Java Build Test Results ✅

Both projects compiled and tested successfully:

Project Compile Tests Status
gson 1/1 PASS
caffeine 1/1 PASS

Overall: PASS

All Java build tests completed successfully with Maven proxy configuration.

AI generated by Build Test Java

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

Go Build Test Results ✅

All Go projects passed successfully!

Project Download Tests Status
color 1/1 PASS
env 1/1 PASS
uuid 1/1 PASS

Overall: PASS

All module downloads completed successfully and all tests passed.

AI generated by Build Test Go

@github-actions
Copy link
Contributor

Smoke Test ResultsPASS

Recent PRs:

Tests:

  • ✅ GitHub MCP: Retrieved 2 merged PRs
  • ✅ Playwright: Page title verified ("GitHub · Change is constant. GitHub keeps you ahead. · GitHub")
  • ✅ File Write: Created /tmp/gh-aw/agent/smoke-test-copilot-21999301022.txt
  • ✅ Bash: File verified

cc @Mossaka

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

Smoke Test Results - Claude

Last 2 merged PRs:

Test Results:

  • ✅ GitHub MCP
  • ✅ Playwright (page title: "GitHub · Change is constant. GitHub keeps you ahead. · GitHub")
  • ✅ File writing
  • ✅ Bash tool

Status: PASS

AI generated by Smoke Claude

@github-actions
Copy link
Contributor

Bun Build Test Results

Project Install Tests Status
elysia 1/1 PASS
hono 1/1 PASS

Overall: PASS

All Bun projects successfully installed dependencies and passed their tests.

AI generated by Build Test Bun

@github-actions
Copy link
Contributor

Build Test: Node.js - Results

All Node.js projects built and tested successfully! ✅

Project Install Tests Status
clsx PASS PASS
execa PASS PASS
p-limit PASS PASS

Overall: PASS

All three projects installed dependencies and passed their test suites without errors.

AI generated by Build Test Node.js

@github-actions
Copy link
Contributor

Build Test: Deno - Results

Project Tests Status
oak 1/1 ✅ PASS
std 1/1 ✅ PASS

Overall: ✅ PASS

All Deno tests completed successfully.

AI generated by Build Test Deno

@github-actions
Copy link
Contributor

.NET Build Test Results

Project Restore Build Run Status
hello-world PASS
json-parse PASS

Overall: PASS

All .NET projects successfully restored, built, and ran with expected output.

AI generated by Build Test .NET

@github-actions
Copy link
Contributor

C++ Build Test Results

Project CMake Build Status
fmt PASS
json PASS

Overall: PASS

All C++ projects compiled successfully with CMake and make.

AI generated by Build Test C++

@github-actions
Copy link
Contributor

Java Build Test Results ✅

Project Compile Tests Status
gson 1/1 PASS
caffeine 1/1 PASS

Overall: PASS

All Java projects compiled and tested successfully through the AWF firewall with Maven proxy configuration.

AI generated by Build Test Java

@github-actions
Copy link
Contributor

Merged PRs: fix(ci): add missing ANTHROPIC_API_KEY to detection job; fix(workflow): correct api-proxy IP address in smoke-codex.lock.yml
PR list: fix: add roles: all to smoke-codex workflow; feat: kong proxy for codex
Tests: 1✅ 2✅ 3✅ 4❌ 5✅ 6✅ 7✅ 8✅
Overall status: FAIL

AI generated by Smoke Codex

@github-actions
Copy link
Contributor

🦀 Rust Build Test Results

Project Build Tests Status
fd 1/1 PASS
zoxide 1/1 PASS

Overall: ✅ PASS

All Rust projects built and tested successfully.

AI generated by Build Test Rust

@Mossaka Mossaka merged commit 766e466 into main Feb 13, 2026
84 checks passed
@Mossaka Mossaka deleted the fix/smoke-codex-roles-all branch February 13, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant