Skip to content

[client] bootstrap pkg before installing FreeBSD port deps#5991

Open
pappz wants to merge 1 commit intomainfrom
ci/freebsd-pkg-bootstrap
Open

[client] bootstrap pkg before installing FreeBSD port deps#5991
pappz wants to merge 1 commit intomainfrom
ci/freebsd-pkg-bootstrap

Conversation

@pappz
Copy link
Copy Markdown
Collaborator

@pappz pappz commented Apr 25, 2026

The FreeBSD 15.0 VM image used by vmactions/freebsd-vm@v1 ships a pkg binary that fails to parse the current pkg.freebsd.org metadata, with:
pkg: truncated reply for signature_fingerprintsoutput, wanted 0 bytes
pkg: Repository FreeBSD-ports cannot be opened.

This breaks 'pkg install', failing every release run since 2026-04-24. Run 'pkg bootstrap -f' + 'pkg update -f' first to refresh pkg and the catalogue before installing build deps.

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Chores
    • Updated FreeBSD release workflow build preparation steps to ensure package manager state is properly refreshed before package installation.

The FreeBSD 15.0 VM image used by vmactions/freebsd-vm@v1 ships a pkg
binary that fails to parse the current pkg.freebsd.org metadata, with:
  pkg: truncated reply for signature_fingerprintsoutput, wanted 0 bytes
  pkg: Repository FreeBSD-ports cannot be opened.

This breaks 'pkg install', failing every release run since 2026-04-24.
Run 'pkg bootstrap -f' + 'pkg update -f' first to refresh pkg and the
catalogue before installing build deps.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 25, 2026

📝 Walkthrough

Walkthrough

The release workflow for FreeBSD VMs has been updated to refresh the package manager state prior to installation. Two preparatory commands (pkg bootstrap -f and pkg update -f) are now executed before the existing package installation step.

Changes

Cohort / File(s) Summary
CI/CD Workflow Configuration
.github/workflows/release.yml
Added FreeBSD package manager refresh steps (pkg bootstrap -f and pkg update -f) to the VM prepare phase before package installation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • mlsmaycon

Poem

🐰 A flutter of updates, a bootstrap so fine,
FreeBSD's package manager, now in perfect line,
With pkg refreshed before installs commence,
Our workflows now smoother, more stable, immense!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly references the main change: bootstrapping pkg before installing FreeBSD port dependencies, which matches the core modification in the workflow file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 The pull request description is mostly complete with a detailed explanation of the bug, the fix applied, and proper checklist selections for bug fix and documentation.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/freebsd-pkg-bootstrap

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants