Skip to content

feat(pipelines): add pre- and post- deployment fields to pipeline manifests#5209

Merged
mergify[bot] merged 21 commits intoaws:mainlinefrom
huanjani:pipeline
Aug 24, 2023
Merged

feat(pipelines): add pre- and post- deployment fields to pipeline manifests#5209
mergify[bot] merged 21 commits intoaws:mainlinefrom
huanjani:pipeline

Conversation

@huanjani
Copy link
Copy Markdown
Contributor

Related: #5109, #3007.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@huanjani huanjani requested a review from a team as a code owner August 21, 2023 18:05
@huanjani huanjani requested review from CaptainCarpensir and removed request for a team August 21, 2023 18:05
@huanjani huanjani marked this pull request as draft August 21, 2023 18:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 21, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 51696 51488 +0.40
macOS (arm) 51896 51680 +0.42
linux (amd) 45512 45324 +0.41
linux (arm) 43780 43588 +0.44
windows (amd) 42312 42144 +0.40

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 21, 2023

Codecov Report

❌ Patch coverage is 73.88889% with 47 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.84%. Comparing base (3446985) to head (ad7cd98).
⚠️ Report is 329 commits behind head on mainline.

Files with missing lines Patch % Lines
internal/pkg/deploy/pipeline.go 74.02% 36 Missing and 4 partials ⚠️
internal/pkg/manifest/validate.go 73.07% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5209      +/-   ##
============================================
+ Coverage     69.79%   69.84%   +0.05%     
============================================
  Files           296      296              
  Lines         44146    44300     +154     
  Branches        286      286              
============================================
+ Hits          30812    30943     +131     
- Misses        11843    11861      +18     
- Partials       1491     1496       +5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@huanjani huanjani marked this pull request as ready for review August 22, 2023 19:22
@huanjani huanjani marked this pull request as draft August 22, 2023 21:03
Copy link
Copy Markdown
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

Can we add an integration test for adding these pre/post deployment fields to the manifest?

@huanjani huanjani marked this pull request as ready for review August 22, 2023 21:43
Comment thread internal/pkg/manifest/pipeline.go Outdated
Comment thread internal/pkg/manifest/pipeline.go Outdated
Comment thread internal/pkg/manifest/pipeline.go Outdated
Comment thread internal/pkg/manifest/validate.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go
Comment thread internal/pkg/deploy/pipeline.go
Comment thread internal/pkg/deploy/pipeline.go
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/manifest/pipeline.go Outdated
Comment thread internal/pkg/manifest/validate.go Outdated
Comment thread internal/pkg/manifest/validate.go Outdated
Comment thread internal/pkg/template/templates/cicd/partials/actions.yml
Comment thread internal/pkg/deploy/pipeline.go Outdated
@huanjani
Copy link
Copy Markdown
Contributor Author

Can we add an integration test for adding these pre/post deployment fields to the manifest?

discussed offline. will leave the current one as is; in the future we should add integ tests that are similar to "DD" but truly go from manifest to cfn template.

Comment thread internal/pkg/manifest/pipeline.go
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
- !Join [ '', [ 'arn:aws:s3:::', 'fancy-bucket', '/*' ] ]
- Effect: Allow
Action:
# TODO: scope this down if possible
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we leave these TODO's in here...?

Type: AWS::IAM::Role
Properties:
Path: /
AssumeRolePolicyDocument:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this policy doc the same as the one above? i wonder if it's better to use AWS::IAM::POLICY and just list all of the roles ARNs in Roles 🤔

Comment thread internal/pkg/deploy/pipeline.go
Comment thread internal/pkg/manifest/pipeline.go Outdated
Comment thread internal/pkg/deploy/pipeline.go Outdated
@iamhopaul123 iamhopaul123 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 24, 2023
Copy link
Copy Markdown
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

:shipit: feel free to remove the label

@huanjani huanjani removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 24, 2023
@mergify mergify Bot merged commit 9e31326 into aws:mainline Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants