Skip to content
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

feat: add ARGOCD_APP_REVISION_SHORT_8 variable in build environment #16293 #19931

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

Falanty
Copy link
Contributor

@Falanty Falanty commented Sep 13, 2024

Closes #16293

This feature adds a variable to the build environment, that contains the revision in short form with 8 characters. This complies with Gitlab's short sha.
While this solution diverges from the way short revisions are named in the SCM Provider Generator, it was chosen, because it is a non-breaking change.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Sorry, something went wrong.

@Falanty Falanty requested review from a team as code owners September 13, 2024 14:01
Copy link

bunnyshell bot commented Sep 13, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Copy link

bunnyshell bot commented Sep 13, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@Falanty Falanty marked this pull request as draft September 13, 2024 14:05
@Falanty Falanty force-pushed the issue-16293 branch 5 times, most recently from 55f68bb to 4286dea Compare September 13, 2024 14:35
@Falanty Falanty marked this pull request as ready for review September 13, 2024 15:10
Signed-off-by: Adam, Patrick <p.adam@mail.de>
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.83%. Comparing base (28f424f) to head (d0ac070).
Report is 442 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19931      +/-   ##
==========================================
+ Coverage   55.81%   55.83%   +0.02%     
==========================================
  Files         320      320              
  Lines       44378    44382       +4     
==========================================
+ Hits        24769    24781      +12     
+ Misses      17046    17031      -15     
- Partials     2563     2570       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pasha-codefresh pasha-codefresh merged commit c8dcd83 into argoproj:master Sep 17, 2024
30 of 31 checks passed
@pawelwo
Copy link

pawelwo commented Nov 6, 2024

when will it be released?

@reggie-k
Copy link
Member

reggie-k commented Nov 6, 2024

This will be a part of the 2.14 release.

adriananeci pushed a commit to adriananeci/argo-cd that referenced this pull request Dec 4, 2024
…rgoproj#19931)

Signed-off-by: Adam, Patrick <p.adam@mail.de>
Co-authored-by: Adam, Patrick <p.adam@mail.de>
Signed-off-by: Adrian Aneci <aneci@adobe.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.

Use 8 characters for ARGOCD_APP_REVISION_SHORT variable in build environment
5 participants