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

fix(s3): make SkipDestinationValidation undefined if not provided #32361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

megarach0
Copy link

@megarach0 megarach0 commented Dec 2, 2024

Issue # 31230

Closes #31230

Reason for this change

#30914 introduced default value for skipDestinationValidation that is set always to false (even if not provided). It should be undefined instead if not provided as this will affect custom resources.

Description of changes

  • When skipDestinationValidation is not provided to the s3 bucket, leave it as undefined.
  • Updated unit tests and integration tests.

Description of how you validated changes

  • unit tests and integration tests added
  • Also, not sure why some of the generated files are failing checks for the replace function when it escapes backslashes. I don't believe this is an actual issue, would like to get some eyes on that.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Dec 2, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team December 2, 2024 17:49
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p2 labels Dec 2, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@megarach0 megarach0 force-pushed the dest_validation_fix branch from 341ca91 to b53fd77 Compare December 2, 2024 17:58
@megarach0 megarach0 changed the title Make SkipDestinationValidation undefined if not provided fix(s3): make SkipDestinationValidation undefined if not provided Dec 2, 2024
@megarach0
Copy link
Author

Clarification Request: I have made changes to the integration test files and generated new snapshots. Confused why it's still requesting this.

@aws-cdk-automation aws-cdk-automation added the pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run label Dec 2, 2024
@aws-cdk-automation
Copy link
Collaborator

This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week.

Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (61626dc) to head (cfdfa33).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #32361   +/-   ##
=======================================
  Coverage   80.64%   80.64%           
=======================================
  Files         107      107           
  Lines        6996     6996           
  Branches     1290     1290           
=======================================
  Hits         5642     5642           
  Misses       1175     1175           
  Partials      179      179           
Flag Coverage Δ
suite.unit 80.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
packages/aws-cdk 80.64% <ø> (ø)

@gracelu0 gracelu0 added pr-linter/exempt-integ-test The PR linter will not require integ test changes and removed pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run labels Dec 24, 2024
@gracelu0
Copy link
Contributor

Clarification Request: I have made changes to the integration test files and generated new snapshots. Confused why it's still requesting this.

I've added an exemption label to omit checking for integ test changes, I see that you've updated the snapshots. Thanks!

@aws-cdk-automation aws-cdk-automation added the pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run label Dec 24, 2024
@aws-cdk-automation aws-cdk-automation dismissed their stale review December 24, 2024 22:00

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@gracelu0 gracelu0 removed the pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run label Dec 24, 2024
@megarach0
Copy link
Author

Clarification Request: I have made changes to the integration test files and generated new snapshots. Confused why it's still requesting this.

I've added an exemption label to omit checking for integ test changes, I see that you've updated the snapshots. Thanks!

Thank you! Do you know what my next steps are in getting this reviewed?

@aws-cdk-automation aws-cdk-automation added the pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run label Dec 26, 2024
@megarach0
Copy link
Author

Rebased.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 2a019f0
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2 pr/reviewer-clarification-requested The contributor has requested clarification on feedback, a failing build, or a failing PR Linter run pr-linter/exempt-integ-test The PR linter will not require integ test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-s3: SkipDestinationValidation should not have default value when not used. It triggers CR's accidentally
3 participants