-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Use alpha suffix for NuGet pre-release in test environment #1947
ci: Use alpha suffix for NuGet pre-release in test environment #1947
Conversation
📝 WalkthroughWalkthroughThe pull request updates two CI/CD workflow files. In the main workflow, formatting is enhanced, and a new job Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/ci-cd-staging.yml (1)
88-92
: Staging Publish Job Version Suffix Update
The update to thepublish-sdk-to-nuget
job now includes the new dependency (generate-git-short-sha
) and appropriately appends the Git short SHA to the version string (-rc+${{ needs.generate-git-short-sha.outputs.gitShortSha }}
). Please verify that using the-rc
suffix here is intentional for the staging environment, especially as the PR objective targets an alpha suffix for test releases. A clarifying comment could help prevent confusion..github/workflows/ci-cd-main.yml (1)
101-110
: Timestamp Generation for Test Environment Versioning
The newgenerate-timestamp
job is implemented succinctly and outputs a timestamp that is used later in versioning. One suggestion is to consider whether a UTC or ISO 8601 format might add clarity and consistency in chronological sorting for future releases. Otherwise, the current approach works.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/ci-cd-main.yml
(5 hunks).github/workflows/ci-cd-staging.yml
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Dry run deploy apps / Deploy job sync-resource-policy-information-job to test
- GitHub Check: Dry run deploy apps / Deploy job sync-subject-resource-mappings-job to test
🔇 Additional comments (2)
.github/workflows/ci-cd-staging.yml (1)
13-16
: New Job for Git Short SHA Generation
The addition of thegenerate-git-short-sha
job is clear and well integrated. The use of the reusable workflow viauses: ./.github/workflows/workflow-generate-git-short-sha.yml
makes the configuration modular..github/workflows/ci-cd-main.yml (1)
112-117
: Publish SDK to NuGet Job Version Update – Using Alpha Suffix
The modifications in thepublish-sdk-to-nuget
job properly include the new dependency ongenerate-timestamp
and update the version string to:${{ needs.get-current-version.outputs.version }}-alpha.${{ needs.generate-timestamp.outputs.timestamp }}+${{ needs.generate-git-short-sha.outputs.gitShortSha }}
This aligns with the PR objective to use an alpha suffix for NuGet pre-release versions in the test environment. The changes appear correct and maintain consistency with the intended version schema.
bf38293
Co-authored-by: Magnus Sandgren 5285192+MagnusSandgren@users.noreply.github.com
Co-authored-by: Are Almaas arealmaas@gmail.com
Co-authored-by: Amund Myrbostad Lullinj98@gmail.com