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(ui): display promotion steps and YAML #2549

Merged
merged 10 commits into from
Oct 2, 2024

Conversation

rbreeze
Copy link
Contributor

@rbreeze rbreeze commented Sep 19, 2024

Screenshot 2024-09-30 at 4 57 33 PM (2)
Screenshot 2024-09-30 at 4 56 40 PM (2)

Screenshot 2024-09-30 at 4 58 59 PM (2)

Signed-off-by: Remington Breeze <remington@breeze.software>
@rbreeze rbreeze requested a review from a team as a code owner September 19, 2024 17:05
Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit 5045da5
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/66fd6c9455dd240008641428
😎 Deploy Preview https://deploy-preview-2549.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -0,0 +1,152 @@
export const testDirectives = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples to test feature while waiting for finalized promotion directives

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.03%. Comparing base (5135af2) to head (5045da5).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2549      +/-   ##
==========================================
- Coverage   51.04%   51.03%   -0.02%     
==========================================
  Files         282      282              
  Lines       21056    21099      +43     
==========================================
+ Hits        10748    10767      +19     
- Misses       9635     9652      +17     
- Partials      673      680       +7     

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

@Marvin9
Copy link
Contributor

Marvin9 commented Sep 26, 2024

@krancour would you please add more context in this task? or we can discuss offline

@Marvin9
Copy link
Contributor

Marvin9 commented Sep 27, 2024

@hiddeco @krancour Do we have rough idea at this point, how the community (read non-built-ins) runners will be installed?

@krancour
Copy link
Member

Do we have rough idea at this point, how the community (read non-built-ins) runners will be installed?

We had a three part plan for cutting over to step-based (directive-based) promotions, then containerizing the built-in steps, then finally opening things up to third-party step runners.

I think the exact installation/registration process is something that might currently be absent from that plan. Let's connect about this offline.

> readonly view in promotions modal
> create stage with promotion directive steps

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
SUCCESS
}

export const getPromotionDirectiveStepStatus = (
Copy link
Contributor

@Marvin9 Marvin9 Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krancour / @hiddeco can you please read this logic if anything is inaccurate?

Basically for any step ran, UI tries to decide what is state of given steps

@Marvin9 Marvin9 requested a review from rpelczar September 30, 2024 20:08
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Comment on lines 22 to 23
// TODO: controller should point 'currentStep' to exact failed step
// at the moment, it is defaulted to 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can fix that right now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I could only find this being set to zero if the steps couldn't even get started or after success. I updated it so it's not set back to zero on success.

I cannot seem to find where a failed step is getting this set back to zero.

Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
@krancour
Copy link
Member

krancour commented Oct 1, 2024

@Marvin9 this looks pretty good. The one bug I am observing is that it seems when the current step is pending, previous steps won't show up as successful:

Screenshot 2024-10-01 at 11 03 33 AM

As soon as the last step turns green, they all do. 😄

I think what we should do is assume success for all steps prior to the current one.

krancour and others added 2 commits October 1, 2024 11:21
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
@Marvin9 Marvin9 requested a review from krancour October 1, 2024 15:59
@krancour
Copy link
Member

krancour commented Oct 2, 2024

I think there is still a small issue here. It seems that on failure, all previous steps are being displayed as failed.

Here's a screenshot:

Screenshot 2024-10-02 at 10 01 11 AM

Fundamentally, I believe the UI can assume that if we're on step n > 0, then all steps < n have succeeded.

krancour and others added 2 commits October 2, 2024 11:27
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
@krancour krancour enabled auto-merge October 2, 2024 15:54
@krancour krancour added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 34e599d Oct 2, 2024
16 of 17 checks passed
@krancour krancour deleted the rbreeze/promo-directives-details branch October 2, 2024 16:16
github-actions bot pushed a commit that referenced this pull request Oct 2, 2024
Signed-off-by: Remington Breeze <remington@breeze.software>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Co-authored-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Co-authored-by: Kent Rancourt <kent.rancourt@gmail.com>
(cherry picked from commit 34e599d)
@akuitybot
Copy link

Successfully created backport PR for release-0.9:

Marvin9 added a commit that referenced this pull request Oct 2, 2024
Signed-off-by: Remington Breeze <remington@breeze.software>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Co-authored-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Co-authored-by: Kent Rancourt <kent.rancourt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants