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

chore: Only run CI checks when necessary (affected files changed) #835

Merged
merged 8 commits into from Aug 10, 2022

Conversation

bryantbiggs
Copy link
Contributor

What does this PR do?

  • Only run CI checks when necessary (affected files changed)

Motivation

  • Reduce the amount of checks that get executed that are not necessary for the given changeset

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have added a new example under examples to support my PR
  • Yes, I have created another PR for add-ons under add-ons repo (if applicable)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

Note: Not all the PRs required examples and docs except a new pattern or add-on added.

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

@bryantbiggs bryantbiggs force-pushed the chore/only-run-ci-when-necessary branch from 5755ca0 to 7424f6e Compare August 9, 2022 22:30
@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test August 9, 2022 22:30 Inactive
# if: "contains(github.event_name, 'pull_request')"
# uses: actions/checkout@v3
# with:
# ref: refs/pull/${{github.event.pull_request.number}}/merge
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Zvikan do you know why we need the two different routes for checking out? plans only run on PRs so the standard checkout should suffice, no?

Copy link
Contributor

@Zvikan Zvikan Aug 10, 2022

Choose a reason for hiding this comment

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

According to #572
"Explicit checkout PR code as pull_request_target changes checkout behavior to default to source main."

If we'll leave it with default checkout while still using pull_request_target, it will use source main instead of the PR author branch & fork, so we need to explicitly checkout the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah ok thanks - I put that back as it was

@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test August 10, 2022 00:18 Inactive
@bryantbiggs
Copy link
Contributor Author

waiting till issue is resolved, explains some of the "weirdness" in the checks that have been occurring

image

@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test August 10, 2022 10:39 Inactive
@bryantbiggs bryantbiggs merged commit 9af7c07 into main Aug 10, 2022
@bryantbiggs bryantbiggs deleted the chore/only-run-ci-when-necessary branch August 10, 2022 10:53
allamand pushed a commit to allamand/terraform-aws-eks-blueprints that referenced this pull request Dec 15, 2022
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.

None yet

2 participants