-
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: ensure we do not hit the character limit for deployment name #1474
Conversation
📝 WalkthroughWalkthroughThe pull request introduces modifications to the Changes
Possibly related PRs
Suggested reviewers
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
|
Quality Gate passedIssues Measures |
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: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
.github/workflows/workflow-deploy-apps.yml
(7 hunks)
🔇 Additional comments (3)
.github/workflows/workflow-deploy-apps.yml (3)
274-274
: LGTM: Consistent naming convention across job deployments
The deployment names for background jobs follow the same simplified pattern, maintaining consistency across all deployment types.
Also applies to: 296-296
232-232
: LGTM: Improved job name clarity
The updated job name Deploy job ${{ matrix.name }} to ${{ inputs.environment }}
provides better visibility by explicitly indicating that this is a job deployment.
88-88
: LGTM: Deployment name simplified while maintaining uniqueness
The removal of the redundant prefix dp-be-${{ inputs.environment }}-
from the migration job deployment name helps reduce the character count while maintaining uniqueness through the version identifier.
Let's verify the maximum character length:
Also applies to: 109-109
✅ Verification successful
✅ Deployment name length is within Azure's limit
The new deployment name format web-api-migration-job-${{ inputs.version }}
has a maximum length of 37 characters (including a typical version string like "v1.2.3-beta.4"), which is well within Azure's 64-character limit for deployment names. The removal of the prefix has successfully reduced the character count while maintaining a clear, descriptive name.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check the maximum possible length of deployment names
# Azure has a limit of 64 characters for deployment names
# Test the longest possible deployment name
echo "web-api-migration-job-" > temp.txt
# Add a typical version string (e.g., v1.2.3-beta.4)
echo "v1.2.3-beta.4" >> temp.txt
# Calculate total length
wc -c < temp.txt
rm temp.txt
Length of output: 75
Description
Related Issue(s)
Failing workflow: https://github.com/digdir/dialogporten/actions/runs/11854449350/job/33036707915?pr=1473
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)Summary by CodeRabbit