Skip to content

ci: Do not run the agentop tui tests on the macOS runner - #2116

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:ci/macos-skip-tui
Nov 24, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:ci/macos-skip-tui

Conversation

@huang195

@huang195 huang195 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Problem

The Go CI (core peerproc, macOS) job has a 10-minute limit. It took 3-5 minutes on main on Nov 10-12. Now it takes 6-8 minutes on main and 9-10 minutes on PRs. When a runner is slow, GitHub cancels the job. This occurred on #2061: the job stopped at 10 minutes while the cmd/agentop/tui tests were still running.

In a passing run, the agentop step took 357 s. Most of that time was cmd/agentop/tui, which took 293 s with -race.

Change

The macOS job does not run cmd/agentop/tui/... now. It continues to run all the other agentop packages, including the root package with the launchd tests.

  • The tui package has no macOS-specific code: no _darwin.go file, no runtime.GOOS check and no build tag.
  • The Linux job Go CI (authbridge agentop) runs tui with -race on every PR. Thus no test coverage is lost.
  • The job already uses this rule for tlsbridge: it runs only the macOS-specific tests there.

On this PR the job took 8.5 minutes, not 10: the agentop step took 249 s, not 357 s. The root cmd/agentop package (182 s) is now the slowest part.

Not changed

Assisted-By: Claude (Anthropic AI) [email protected]

Summary by CodeRabbit

  • Chores
    • Updated the macOS CI test run to skip the terminal interface packages; the build configuration is unchanged.

The macOS job has a 10-minute limit. It now takes 6-8 minutes on main
and 9-10 minutes on PRs, so a slow runner cancels it (rossoctl#2061). The
cmd/agentop/tui tests took 293 s of that time with -race.

The tui package has no macOS-specific code, and the Linux agentop job
runs it with -race on every PR. This is the same rule that the job
already uses for tlsbridge.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
@huang195
huang195 requested a review from rubambiza as a code owner November 24, 2026 18:20
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The macOS cmd/agentop CI step still builds all packages and requires launchd tests. Its race-enabled test command now excludes packages under /cmd/agentop/tui.

Changes: macOS agentop CI

Layer / File(s) Summary
Update race-enabled test scope
.github/workflows/ci.yaml
The race-enabled test command excludes packages matching /cmd/agentop/tui. The build still covers all packages, and AGENTOP_LAUNCHD_TESTS remains set to required.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

Suggested reviewers: clawgenti

Merge Risk: Minimal · up to c48dc

The macOS CI job skips TUI tests, which still run with -race in the Linux agentop job. This reduces the chance of macOS timeouts without losing coverage, and there is no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the macOS CI job no longer runs the agentop TUI tests. The raw summary confirms that the macOS cmd/agentop test command now excludes /cmd/agentop/tui from the race-enabled …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the change: the macOS CI job no longer runs the agentop TUI tests. The raw summary confirms that the macOS cmd/agentop test command now excludes /cmd/agentop/tui from the race-enabled run. The PR objectives say the same and give the reason, which is to avoid the 10-minute timeout. The title is specific and matches the changeset. It uses the conventional 'ci:' prefix and is 56 characters long.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a4240248-9cd1-4f73-8d61-6498b51b71bf
Commits

Reviewing files that changed from the base of the PR and between 61c7f46 and c48dc72.

Files selected for processing: 1

  • .github/workflows/ci.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions github-actions Bot added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 24, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Summary

The change is correct and does what it says. cmd/agentop is its own module (github.com/rossoctl/cortex/cmd/agentop), so the grep -v '/cmd/agentop/tui' filter drops tui, tui/find and tui/table and nothing else. None of the three has a _darwin file, a build tag or a runtime.GOOS check. All the AGENTOP_LAUNCHD_TESTS tests are in the root package, which still runs. The Linux Go CI (authbridge agentop) leg still runs go test -v -race ./... over the whole module, so no coverage is lost.

The saving is real but smaller than the description expects. On this head, Go CI (core peerproc, macOS) passed in 8m29s, and the agentop step took 249 s. On the last successful main runs today, that step took 345-403 s and the job took 586-594 s. That is about 100-150 s saved, not the ~290 s that tui took on its own, and the job is not near the expected ~5 minutes. The likely cause is that go test already ran tui in parallel with the other packages, so removing it only saves the part that was not overlapped. The root package is probably the critical path now. This run's cmd/cortex step was also slow (135 s against 27-54 s on main), so the headroom is real but thin. Details are inline. None of this blocks the PR.

Author: huang195 (MEMBER — maintainer)
Areas reviewed: CI / GitHub Actions
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: the one affected job (Go CI (core peerproc, macOS)) passed. Its only annotation is GitHub's macOS queue notice. 33 checks pass. Several unrelated Linux jobs were still queued when I posted.

Comment thread .github/workflows/ci.yaml
# session to load a launch agent into, and GitHub's macOS runners have one: they
# log the runner user in automatically at boot.
# Not tui/...: it has no macOS-specific code, the Linux agentop job runs it with
# -race, and here it took about 5 of this job's 10 minutes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion: "about 5 of this job's 10 minutes" adds up tui's serial test time, but go test runs packages in parallel, so it is not the wall time you get back. On this PR's run the step went from ~350-400 s (recent main) to 249 s, about 2 minutes saved. Consider wording it as the measured saving, or just "it was the slowest package", so nobody later expects this step to drop by 5 minutes. If the job creeps toward 10 minutes again, the root package (launchd tests) is the next thing to look at.

Comment thread .github/workflows/ci.yaml
run: |
go build ./...
go test -race ./...
go test -race $(go list ./... | grep -v '/cmd/agentop/tui')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: Actions runs this with bash -e and no pipefail, and a failing command substitution does not fail the command around it. So if go list ever errors, this becomes a plain go test -race, which tests only the root package and still goes green. go build ./... on the line above makes that unlikely, but you could make it loud:

pkgs=$(go list ./...)
go test -race $(grep -v '/cmd/agentop/tui' <<<"${pkgs}")

@huang195
huang195 merged commit fa96511 into rossoctl:main Nov 24, 2026
63 of 64 checks passed
@huang195
huang195 deleted the ci/macos-skip-tui branch November 24, 2026 18:58
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 24, 2026
huang195 added a commit to boazdavid/cortex that referenced this pull request Nov 24, 2026
This merge adds rossoctl#2116 to the branch. Without it, the macOS CI job runs
the cmd/agentop/tui tests and goes past its 10-minute limit.

Conflict in core/accounting/ping.go: this branch adds h.observe for the
metrics sink, and main adds h.notifyPing for the ping listeners. The
merge keeps both calls. They send the ping to different receivers.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
huang195 added a commit to boazdavid/cortex that referenced this pull request Nov 24, 2026
This merge adds rossoctl#2116 to the branch. Without it, the macOS CI job runs
the cmd/agentop/tui tests and goes past its 10-minute limit.

Conflict in cmd/cortex/main.go: this branch adds the reqstats recorder,
and main adds the ping listener that gives keep-alive spend to the
session. The merge keeps both. They are independent.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants