Skip to content

ci: run the FreeBSD tests on GitHub Actions - #4432

Merged
derekparker merged 2 commits into
go-delve:masterfrom
neilpang:freebsd-ci2
Aug 26, 2026
Merged

derekparker merged 2 commits into
go-delve:masterfrom
neilpang:freebsd-ci2

Conversation

@neilpang

Copy link
Copy Markdown
Contributor

Replaces the Cirrus job, which cannot come back: Cirrus CI shut down on
2026-06-01. Details and measurements in #4430.

One new file, .github/workflows/test-freebsd.yml, modelled on
test-windows-arm64.yml -- same on:/concurrency: block, actions pinned to
commit SHAs, permissions contents: read. It runs the same "make test"
that .cirrus.yml ran, in a FreeBSD VM on ubuntu-latest, over both
supported branches. .cirrus.yml is removed, as you suggested.

The release input is the major only ('14', '15'), so the newest release
of each branch keeps being picked up without editing this file.

prepare needs one line .cirrus.yml did not. The workspace is rsynced
into the VM keeping the runner's uid, which does not exist there, so git
refuses to read the repository:

error obtaining VCS status: exit status 128
    Use -buildvcs=false to disable VCS stamping.
no Go files in /home/runner/work/delve/delve

The second line is the real damage: $(go list ...) in the vet target
comes back empty, so go vet runs against the repository root instead.
git config --global --add safe.directory "$GITHUB_WORKSPACE" fixes it
and leaves make test byte-identical to what Cirrus ran.

Verified on a fork -- the FreeBSD 15 job, six minutes, 1122 passed,
0 failed, 78 skipped:

https://github.com/neilpang/delve/actions/runs/32358548830

Expect red runs at roughly the rate Cirrus had. In that same run the
FreeBSD 14 job died on the dlv trace hang, #4429; this job does not
cause it, it makes it visible again.

AI disclosure, per Documentation/AI/AI_POLICY.md: I used Claude Code to
run the FreeBSD VMs, verify the workflow and draft this text. I
reviewed and edited it; the numbers come from runs on hardware I have.

Cirrus CI shut down on 2026-06-01, so .cirrus.yml has not run since
8fc4acb (2026-05-25) and the 60 master commits merged after it carry no
FreeBSD result at all.

Run the same "make test" inside a FreeBSD VM on a GitHub-hosted runner
instead, over both supported branches, and drop the dead .cirrus.yml.

Fixes #4430
Comment thread .github/workflows/test-freebsd.yml Outdated

steps:
- name: Checkout code
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We are already using actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 everywhere else.

The other workflows moved to v7.0.1; match them.

@aarzilli aarzilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - thank you!

@derekparker
derekparker merged commit a23773e into go-delve:master Aug 26, 2026
7 of 11 checks passed
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
delve 1.27.2

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* proc/native: update Windows syscall generator by @typesanitizer in go-delve/delve#4404
* *: add scripts to setup / run eval fuzzer and run in CI by @derekparker in go-delve/delve#4412
* proc: export LoadFullValue as return-by-value helper by @derekparker in go-delve/delve#4411
* build: pin github actions to commit shas and declare workflow permissions by @Totara-thib in go-delve/delve#4405
* build: add plumber workflow security check by @Totara-thib in go-delve/delve#4406
* pkg/proc: Defer pointer cast to syscall invoking function by @typesanitizer in go-delve/delve#4414
* service/dap: print "ps aux" before exiting tests by @aarzilli in go-delve/delve#4417
* proc: do not nest memCache objects by @aarzilli in go-delve/delve#4418
* ci: fail early when a release is already published by @FranciscoPombal in go-delve/delve#4408
* release: make interrupted draft uploads rerunnable by @FranciscoPombal in go-delve/delve#4409
* build(deps): bump github.com/cilium/ebpf from 0.11.0 to 0.22.0 by @dependabot[bot] in go-delve/delve#4422
* ci: upgrade GitHub Actions and pin GoReleaser by @derekparker in go-delve/delve#4427
* proc: advance through FreeBSD process snapshots by @typesanitizer in go-delve/delve#4421
* service/dap: honor the frame and goroutine of the SetVariable scope by @larrasket in go-delve/delve#4419
* tests: report error with t.Fatal if we can't compile a fixture by @aarzilli in go-delve/delve#4424
* debugger: close resumeNotify early with the halt command by @aarzilli in go-delve/delve#4425
* ci: upload fuzz crashers as GitHub Actions artifacts by @derekparker in go-delve/delve#4428
* tests: regenerate capslock by @aarzilli in go-delve/delve#4426
* ci: run the FreeBSD tests on GitHub Actions by @neilpang in go-delve/delve#4432
* terminal,service,proc: add set next statement (jump) command by @larrasket in go-delve/delve#4434
* proc/native: poll wait4 on FreeBSD to avoid a lost wakeup by @neilpang in go-delve/delve#4435
* proc: fix infinite loop in mapIteratorSwiss.next by @aarzilli in go-delve/delve#4433
* proc: do not call debuginfod-find right after attach by @aarzilli in go-delve/delve#4431
* dap: add types command to list program types by @larrasket in go-delve/delve#4439
* gobuild: keep -C first for test builds by @cuishuang in go-delve/delve#4444
* proc: fix range-over-func next test on linux/loong64 by @loongson-zn in go-delve/delve#4441
* proc,service: emit events while calling DownloadLibraryDebugInfo by @aarzilli in go-delve/delve#4438
* goversion: format versioned development builds correctly by @cuishuang in go-delve/delve#4445
* *: v1.27.2 by @derekparker in go-delve/delve#4446

## New Contributors
* @Totara-thib made their first contribution in go-delve/delve#4405
* @dependabot[bot] made their first contribution in go-delve/delve#4422
* @neilpang made their first contribution in go-delve/delve#4432
* @loongson-zn made their first contribution in go-delve/delve#4441

**Curated Changelog**: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1272-2026-09-08
**Full Changelog**: https://github.com/go-delve/delve/compare/v1.27.1...v1.27.2</pre>
  <p>View the full release notes at <a href="https://github.com/go-delve/delve/releases/tag/v1.27.2">https://github.com/go-delve/delve/releases/tag/v1.27.2</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants