Skip to content

Run Alpine APK tests inside real Alpine Docker containers - #3646

Merged
naveenku-jfrog merged 1 commit into
masterfrom
apk-tests-ci-only
Aug 7, 2026
Merged

naveenku-jfrog merged 1 commit into
masterfrom
apk-tests-ci-only

Conversation

@naveenku-jfrog

Copy link
Copy Markdown
Collaborator

Summary

Updates .github/workflows/apkTests.yml to actually exercise the native apk
binary, instead of running the Alpine test suite directly on the ubuntu-24.04
host runner (where apk is not on PATH and every TestApk* self-skips via
apkAvailable()).

What changed

  • Compile a static Linux/amd64 test binary on the host (go test -c), since
    Alpine's packaged Go does not yet reach the 1.26 toolchain this repo requires.
  • Run that binary inside the actual alpine:<version> Docker image via
    docker run --network host, so apk is genuinely present and the real
    code paths run.
  • Expand the matrix to cover both apk-tools major versions: v3.18-v3.21
    (apk-tools 2.14.x) and v3.23 (first stable release shipping apk-tools 3.x).
  • Add selective retry (up to 3 attempts) scoped to only the tests that failed
    each attempt, to absorb transient 403s from the shared JPD's WAF on
    config-add/build-publish without masking a genuinely broken test.

Why a standalone PR

This is being split out from #3561 (jf apk command support) because
build-gate.yml triggers on pull_request_target, which resolves reusable
workflow calls like apkTests.yml against the base branch's copy of the
file, not the PR branch's. Landing this workflow change on master first is a
prerequisite for #3561's own Alpine CI job to actually run inside Docker
instead of silently skipping.

Test plan

  • Manually trigger via workflow_dispatch on this branch and confirm
    apk tests execute inside the alpine:v3.18/v3.19/v3.20/v3.21/v3.23
    containers (rather than skipping with "apk binary not found").

🤖 Generated with Claude Code

Compile a static test binary and run it inside alpine:<version> Docker
images so the native apk binary is actually present, instead of running
directly on the ubuntu-24.04 host where every TestApk* self-skips via
apkAvailable(). Expands the matrix to cover apk-tools v2 (3.18-3.21) and
v3 (3.23), and adds selective per-test retry for transient WAF 403s.
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@naveenku-jfrog
naveenku-jfrog merged commit 1811d70 into master Aug 7, 2026
127 checks passed
@naveenku-jfrog
naveenku-jfrog deleted the apk-tests-ci-only branch August 7, 2026 05:48
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
jfrog-cli 2.119.0

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 changed in v2.119.0

> Auto-generated from 3 repositories · 2026-08-07  
> Comparing `v2.118.0` → `v2.119.0`

> ℹ️  No changes in: gofrog, jfrog-cli-artifactory, jfrog-cli-core, jfrog-client-go

### ✨ New Features

- **[jfrog-cli]** RTECO-1651 - Add agent skills e2e tests [#3634](jfrog/jfrog-cli#3634) (@udaykb2)
- **[jfrog-cli-security]** XRAY-140550 - Onboarding uv for jf curation-audit [#798](jfrog/jfrog-cli-security#798) (@Phavya-jfrog)

### 🐛 Bug Fixes

- **[build-info-go]** Remove deprecated .jfrog/jfrog-apps-config.yml [#409](jfrog/build-info-go#409) (@naveenku-jfrog)
- **[jfrog-cli]** Fix apispec parser crashing on OpenAPI 3.1 nullable type unions [#3647](jfrog/jfrog-cli#3647) (@ehl-jf)
- **[jfrog-cli-security]** XRAY-156485 - Match violation component ids to SBOM refs case-insensitively [#830](jfrog/jfrog-cli-security#830) (@Jordanh1996)
- **[jfrog-cli-security]** XRAY-157176 - Honor SAST changed files mode in the config profile scan flow [#831](jfrog/jfrog-cli-security#831) (@Jordanh1996)

### 🔧 Internal Changes

- **[jfrog-cli-security]** Update dependencies for 1.33.0 [#836](jfrog/jfrog-cli-security#836) (@Jordanh1996)

### 📦 Other Changes

- **[jfrog-cli]** Run Alpine APK tests inside real Alpine Docker containers [#3646](jfrog/jfrog-cli#3646) (@naveenku-jfrog)
- **[jfrog-cli-security]** Docker Package Updater [#820](jfrog/jfrog-cli-security#820) (@orto17)

---

### 📊 Summary

| Repository | Changes |
|---|---|
| [jfrog-cli-security](https://github.com/jfrog/jfrog-cli-security) | 5 |
| [jfrog-cli](https://github.com/jfrog/jfrog-cli) | 3 |
| [build-info-go](https://github.com/jfrog/build-info-go) | 1 |
| **Total** | **9** |

### 🔗 Module Version Changes

| Module | From | To |
|---|---|---|
| [build-info-go](https://github.com/jfrog/build-info-go) | `v1.13.1-0.20260803032325-7865244a87b5` | `v1.13.1-0.20260807063325-fafd35fe2d11` |
| [jfrog-cli-security](https://github.com/jfrog/jfrog-cli-security) | `v1.32.1` | `v1.33.0` |
</pre>
  <p>View the full release notes at <a href="https://github.com/jfrog/jfrog-cli/releases/tag/v2.119.0">https://github.com/jfrog/jfrog-cli/releases/tag/v2.119.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!16179

This branch was previously deployed

1 inactive deployment
build-gate — 17e07d40 Deployed Aug 7, 2026 by naveenku-jfrog via Approval gate #608
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