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

Allow PR checks to be run against any base branch #1034

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

dannycjones
Copy link
Contributor

Description of change

I've been working in a fork and found that CI wasn't running in the PRs against my feature branch. This meant the code wasn't actually buildable since I'd missed including a file into the PR.

This change will cause all PRs to run integration tests and benchmarks.

We may want to allow a way to disable running actions in the future, but for now we just expand this to cover all base branches.

I'm also leaving push events out of scope, although we could consider a similar change. This may have more of an impact on community forks though so I'll leave it as is for now.

Does this change impact existing behavior?

It impacts CI only. Pull requests not against main as the base branch will now run benchmarks and integration tests.

Does this change need a changelog entry in any of the crates?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com>
@passaro
Copy link
Contributor

passaro commented Sep 25, 2024

Thoughts on only extending to feature branches? e.g. feature/**

@dannycjones
Copy link
Contributor Author

Thoughts on only extending to feature branches? e.g. feature/**

I don't really have an opinion here, although I'd be inclined to cover additional branch prefixes like private-feature/**.

@dannycjones dannycjones marked this pull request as draft September 26, 2024 09:55
@dannycjones dannycjones marked this pull request as ready for review September 26, 2024 13:06
@dannycjones
Copy link
Contributor Author

Since we don't see any clear reason to restrict right now, we'll go ahead an allow PR checks against any branch. In my testing, the workflow wasn't behaving as I expected when trying to restrict it to specific branches.

@dannycjones dannycjones added this pull request to the merge queue Sep 26, 2024
Merged via the queue into awslabs:main with commit 6cda304 Sep 26, 2024
38 of 45 checks passed
@dannycjones dannycjones deleted the allow-pr-checks-any-base branch September 26, 2024 14:37
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.

2 participants