Skip to content

fix(ci): remove Microsoft apt repos before apt-get update#3224

Merged
maphew merged 2 commits intogastownhall:mainfrom
maphew:fix/ci-apt-microsoft-repos
Apr 13, 2026
Merged

fix(ci): remove Microsoft apt repos before apt-get update#3224
maphew merged 2 commits intogastownhall:mainfrom
maphew:fix/ci-apt-microsoft-repos

Conversation

@maphew
Copy link
Copy Markdown
Collaborator

@maphew maphew commented Apr 12, 2026

Summary

The Install ICU4C step fails intermittently because GitHub's ubuntu-latest runners include Microsoft package repos (azure-cli, microsoft-prod) that return 403 Forbidden on apt-get update.

We don't use any Microsoft packages — we only need libicu-dev from Ubuntu's main repos.

Fix: Remove /etc/apt/sources.list.d/microsoft-prod.list and azure-cli.list before apt-get update in all 8 occurrences across 3 workflow files:

  • ci.yml (6 steps)
  • cross-version-smoke.yml (1 step)
  • nightly.yml (1 step)

Failing run: https://github.com/gastownhall/beads/actions/runs/24317152692Test (Embedded Dolt Storage) failed at Install ICU4C with:

E: Failed to fetch https://packages.microsoft.com/repos/azure-cli/dists/noble/InRelease  403  Forbidden
E: Failed to fetch https://packages.microsoft.com/ubuntu/24.04/prod/dists/noble/InRelease  403  Forbidden

maphew and others added 2 commits April 12, 2026 14:45
…ootstrap

The caller chain (bootstrapCmd.Run → executeBootstrapPlan → executeSyncAction)
guarantees cfg is non-nil via DefaultConfig() fallback at bootstrap.go:178-180.

Follow-up to gastownhall#3203.

Amp-Thread-ID: https://ampcode.com/threads/T-019d7fee-1326-74af-a566-9c45ad5b349e
Co-authored-by: Amp <amp@ampcode.com>
GitHub's ubuntu-latest runners include Microsoft package repos
(azure-cli, microsoft-prod) that intermittently return 403 Forbidden,
causing apt-get update to fail and breaking the Install ICU4C step.

Remove these unused repo files before apt-get update in all workflows
(ci.yml, cross-version-smoke.yml, nightly.yml).

Amp-Thread-ID: https://ampcode.com/threads/T-019d83a9-4273-711e-be59-1ed089de1c65
Co-authored-by: Amp <amp@ampcode.com>
@maphew maphew merged commit 9211e73 into gastownhall:main Apr 13, 2026
37 checks passed
@maphew maphew deleted the fix/ci-apt-microsoft-repos branch April 13, 2026 03:28
osamu2001 pushed a commit to osamu2001/beads that referenced this pull request Apr 13, 2026
…l#3224)

* chore(bootstrap): remove unreachable nil-cfg guard in finalizeSyncedBootstrap

The caller chain (bootstrapCmd.Run → executeBootstrapPlan → executeSyncAction)
guarantees cfg is non-nil via DefaultConfig() fallback at bootstrap.go:178-180.

Follow-up to gastownhall#3203.

Amp-Thread-ID: https://ampcode.com/threads/T-019d7fee-1326-74af-a566-9c45ad5b349e
Co-authored-by: Amp <amp@ampcode.com>

* fix(ci): remove Microsoft apt repos before apt-get update

GitHub's ubuntu-latest runners include Microsoft package repos
(azure-cli, microsoft-prod) that intermittently return 403 Forbidden,
causing apt-get update to fail and breaking the Install ICU4C step.

Remove these unused repo files before apt-get update in all workflows
(ci.yml, cross-version-smoke.yml, nightly.yml).

Amp-Thread-ID: https://ampcode.com/threads/T-019d83a9-4273-711e-be59-1ed089de1c65
Co-authored-by: Amp <amp@ampcode.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
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.

1 participant