Skip to content

ci: fix release workflow - remove apk, add PR dry-run#5

Merged
chengjingtao merged 2 commits into
alauda-v0.0.18from
fix/release-apk-and-dryrun
Apr 19, 2026
Merged

ci: fix release workflow - remove apk, add PR dry-run#5
chengjingtao merged 2 commits into
alauda-v0.0.18from
fix/release-apk-and-dryrun

Conversation

@chengjingtao

Copy link
Copy Markdown

Summary

Fix alauda release workflow failure and add PR-level validation.

Fixes

PR dry-run

  • Add pull_request trigger scoped to release-related paths (.github/workflows/release-alauda.yml, .dagger/**, go.mod)
  • Publish Release step guarded with if: github.event_name != 'pull_request' — PR runs validate build → archive → nfpm → checksum without publishing
  • This PR itself will trigger the dry-run, validating the fix before merge

Test plan

  • PR triggers release dry-run (build → archive → nfpm → checksum pass)
  • After merge, auto-tag → release succeeds with GitHub Release published

🤖 Generated with Claude Code

- Remove APK build step: alauda version format (0.0.19-alauda-1)
  contains hyphens which are invalid in Alpine pkgver, causing
  "package file format error" on index creation.
- Create empty dist/apk dir so DistBinaries() ls doesn't fail.
- Add pull_request trigger (scoped to release/dagger/go.mod paths)
  so the build pipeline can be validated in PR before merging.
- Guard Publish Release with `if: github.event_name != 'pull_request'`
  to skip actual publishing during PR validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chengjingtao chengjingtao force-pushed the fix/release-apk-and-dryrun branch from 916573b to 01c9e75 Compare April 19, 2026 08:27
@alaudabot

alaudabot commented Apr 19, 2026

Copy link
Copy Markdown

🤖 AI Code Review

Property Value
Model opencode/minimax-m2.5-free
Style strict
Issues Found 0
Config Source centralized
Profile ❌ Not Found
Personalized Prompt ❌ No
Prompt Path .github/review/profiles/alaudadevops/harbor-cli/pr-review.md
Alauda Skills ✅ base-authoring, base-sharepoint-fetch, base-skill-setup, builders-component-knowledge, builders-confluence, builders-jira, builders-publish-errata, builders-story-split, devops-autodns, devops-bulk-string-replace, devops-candidate-version-supervisor, devops-connectors-explore, devops-connectors-poc-case, devops-connectors-review, devops-connectors-unit-test, devops-connectors-write-user-docs, devops-docker-keyword-analysis, devops-gen-advanced-form-descriptors, devops-go-vuln-fix, devops-knowledge-adoption, devops-refresh-alauda-tags, devops-sync-alauda-github-releases, devops-tekton-dynamic-form-optimizer, devops-tekton-operator-task-e2e, devops-tekton-task-generator, devops-tekton-task-overview-template, devops-tekton-task-version-upgrade, devops-tekton-upgrade-notes, devops-tool-report-troubleshoot, devops-ui-e2e-code-audit, devops-ui-e2e-fix-base-on-report, devops-ui-e2e-regression-and-fix, devops-ui-generate-e2e-from-feature, devops-ui-pre-setup, devops-update-containerfile-digests, devops-upgrade-go
Reviewed at 2026-04-19 08:46:58 UTC

Summary

This PR fixes the release workflow failure due to Alpine package version constraints and adds a PR dry-run validation. The changes are minimal and correct: removing the failing APK build step, creating an empty dist/apk directory, and adding a conditional to skip publishing during PR runs. The implementation follows GitHub Actions best practices.

Review Statistics

Category Count
Critical Issues 0
Warnings 0
Suggestions 1
Files Reviewed 1

Critical Issues

Issues that MUST be addressed before merging (security, bugs, breaking changes)

None. This PR contains no critical issues.

Warnings

Issues that SHOULD be addressed but are not blocking

None. This PR contains no warnings.

Suggestions

Recommendations for improvement (nice to have)

  • [.github/workflows/release-alauda.yml:60] Consider adding a comment explaining why the empty apk directory is needed. This helps future maintainers understand why the APK build was removed and why the directory must exist.

    # Create empty apk dir - downstream scripts expect this directory to exist
    # APK build disabled: Alpine pkgver doesn't support alauda version format (e.g., 0.0.19-alauda-1)
    - name: Create empty apk dir
      run: mkdir -p dist/apk

Positive Feedback

  • The fix correctly addresses the root cause: Alpine's pkgver doesn't support hyphens in versions like 0.0.19-alauda-1
  • The PR dry-run implementation is elegant: using if: github.event_name != 'pull_request' to skip only the publish step while allowing the full build to run
  • The changes follow the existing workflow patterns in the codebase
  • The PR description is thorough with links to the failed run and clear test plan


ℹ️ About this review

This review was automatically generated using the run-actions workflow.

  • Shared prompt: .github/prompts/code-review.md
  • Config source: centralized
  • Profile path: Not Found
  • Profile ref: 70116bce40f93e28716196a4b479fec1049b7950
  • No repository-specific prompt configured
  • Alauda skills: base-authoring, base-sharepoint-fetch, base-skill-setup, builders-component-knowledge, builders-confluence, builders-jira, builders-publish-errata, builders-story-split, devops-autodns, devops-bulk-string-replace, devops-candidate-version-supervisor, devops-connectors-explore, devops-connectors-poc-case, devops-connectors-review, devops-connectors-unit-test, devops-connectors-write-user-docs, devops-docker-keyword-analysis, devops-gen-advanced-form-descriptors, devops-go-vuln-fix, devops-knowledge-adoption, devops-refresh-alauda-tags, devops-sync-alauda-github-releases, devops-tekton-dynamic-form-optimizer, devops-tekton-operator-task-e2e, devops-tekton-task-generator, devops-tekton-task-overview-template, devops-tekton-task-version-upgrade, devops-tekton-upgrade-notes, devops-tool-report-troubleshoot, devops-ui-e2e-code-audit, devops-ui-e2e-fix-base-on-report, devops-ui-e2e-regression-and-fix, devops-ui-generate-e2e-from-feature, devops-ui-pre-setup, devops-update-containerfile-digests, devops-upgrade-go

Signed-off-by: chengjingtao <chengjingtao>
@chengjingtao chengjingtao merged commit ab2ab6e into alauda-v0.0.18 Apr 19, 2026
3 of 4 checks passed
@chengjingtao chengjingtao deleted the fix/release-apk-and-dryrun branch April 19, 2026 08:43
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