Skip to content

Check TUI compile inputs before native build setup - #72960

Closed
teamleaderleo wants to merge 2 commits into
feat-cmux-nextfrom
lane/ci1500-tui-compile-overlap
Closed

teamleaderleo wants to merge 2 commits into
feat-cmux-nextfrom
lane/ci1500-tui-compile-overlap

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Draft opened automatically by lane host-now-publish at the first push of lane/ci1500-tui-compile-overlap (goal pr-in-an-hour). Its own gh pr create replaces this title and body and marks it ready.

  • Check TUI compile inputs before native build setup

🤖 Generated with Codex

Agent session: agent session


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Skips native build setup in the compile-rust job when the TUI compile inputs cache hits, so CI no longer installs Linux build dependencies, initializes the ghostty-next submodule, or installs Zig unless an actual compile is needed.

  • Moves the native setup steps after the compile-rust-inputs cache check and gates them on both the tree and inputs cache missing.
  • Adds a workflow test asserting those steps run after the inputs key step and require both cache conditions.

Written for commit 44b862e. Summary will update on new commits.

View guided diff Turn on auto-fix

Co-authored-by: Codex gpt-6.2-sol <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-3169c172193493e84cc7&model=gpt-6.2-sol
@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Dec 2, 2026
@teamleaderleo
teamleaderleo marked this pull request as ready for review December 2, 2026 17:55
@teamleaderleo teamleaderleo added the ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds label Dec 2, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="tests/test_ci_compile_rust_inputs_key.py">

<violation number="1" location="tests/test_ci_compile_rust_inputs_key.py:151">
P2: This only checks that the setup steps come after the inputs lookup, not that they come before the compile. Add an upper bound against the `compile` step so a reorder past it fails the test.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

):
with self.subTest(step=name):
index = names.index(name)
self.assertGreater(index, at + 1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: This only checks that the setup steps come after the inputs lookup, not that they come before the compile. Add an upper bound against the compile step so a reorder past it fails the test.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At tests/test_ci_compile_rust_inputs_key.py, line 151:

<comment>This only checks that the setup steps come after the inputs lookup, not that they come before the compile. Add an upper bound against the `compile` step so a reorder past it fails the test.</comment>

<file context>
@@ -141,6 +141,16 @@ def test_compile_rust_reuses_by_inputs_only_on_a_pull_request_and_skips_only_on_
+        ):
+            with self.subTest(step=name):
+                index = names.index(name)
+                self.assertGreater(index, at + 1)
+                self.assertIn("steps.tree.outputs.hit != 'true'", steps[index]["if"])
+                self.assertIn("steps.inputs.outputs.hit != 'true'", steps[index]["if"])
</file context>
Suggested change
self.assertGreater(index, at + 1)
self.assertGreater(index, at + 1)
self.assertLess(index, ids.index("compile"))

@quota-goblin-9000 quota-goblin-9000 Bot removed the ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds label Dec 3, 2026
@teamleaderleo teamleaderleo added the ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 44b862e: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr72960 -f ref=lane/ci1500-tui-compile-overlap -f platform=macos -f backend_mode=local

@cmux-bot cmux-bot Bot added area: build-and-ci Build system, CI workflows, test infrastructure harness:codex Written by a Codex agent session model:gpt-6-2-sol The model that wrote it (Agent session link or Co-Authored-By) labels Dec 3, 2026
@quota-goblin-9000

Copy link
Copy Markdown

Reopening under a bot author (quota-goblin) so Leo can approve it: GitHub does not let him approve a PR his own account opened. Same head branch; the new PR is linked below.

@quota-goblin-9000

Copy link
Copy Markdown

Reopened as #73439 (#73439), opened by app/quota-goblin-9000 on the same head (44b862e).

@quota-goblin-9000 quota-goblin-9000 Bot removed the ready-to-land Reviewed at this head; next-autoland merges it into feat-cmux-next when its only reds are base reds label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-and-ci Build system, CI workflows, test infrastructure harness:codex Written by a Codex agent session merge-train model:gpt-6-2-sol The model that wrote it (Agent session link or Co-Authored-By) risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant