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

Do not delete provider custom workflows in make ci-mgmt #1068

Merged
merged 5 commits into from
Sep 18, 2024

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Sep 5, 2024

We introduced a notion of provider-custom workflow files, such as:

aws-upstream-tests.yml

Currently CI knows to not delete them, but make ci-mgmt target still does. This PR fixes this so that make ci-mgmt
target matches the behavior of CI workflows.

@t0yv0 t0yv0 requested a review from a team September 5, 2024 16:07
@@ -208,7 +208,7 @@ bin/pulumi-java-gen: .pulumi-java-gen.version
# - Run make ci-mgmt to apply the change locally.
#
ci-mgmt: .ci-mgmt.yaml
rm -f .github/workflows/*.yml # Copied from update-workflows.yml
find pulumi-$(PACK)/.github/workflows/*.yml -type f ! -name "$(PACK)*.yml" -delete
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this exclude the pulumi-$(PACK)/ prefix?

Suggested change
find pulumi-$(PACK)/.github/workflows/*.yml -type f ! -name "$(PACK)*.yml" -delete
find .github/workflows/*.yml -type f ! -name "$(PACK)*.yml" -delete

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, good catch

@t0yv0 t0yv0 force-pushed the t0yv0/fix-make-ci-mgmt branch from a811307 to 9b4c0a0 Compare September 9, 2024 14:32
@t0yv0 t0yv0 requested a review from flostadler September 9, 2024 14:32
Copy link
Member

@danielrbradley danielrbradley left a comment

Choose a reason for hiding this comment

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

We've recently added a function to provider-ci to delete old files (outside of .github) which are no longer generated. Perhaps we should remove his wildcard selection completely and make the Go program responsible for cleaning up old files.

@t0yv0 t0yv0 requested review from danielrbradley and a team September 13, 2024 17:53
@t0yv0
Copy link
Member Author

t0yv0 commented Sep 13, 2024

Possibly yea - can I have this in the meanwhile? We're trying to keep the AWS workflow alive for running upstream tests.

@t0yv0 t0yv0 added this pull request to the merge queue Sep 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 16, 2024
We introduced a notion of provider-custom workflow files, such as:

    aws-upstream-tests.yml

Currently CI knows to not delete them, but `make ci-mgmt` target still does. This PR fixes this so that `make ci-mgmt`
target matches the behavior of CI workflows.
@t0yv0 t0yv0 force-pushed the t0yv0/fix-make-ci-mgmt branch from 9b4c0a0 to 47113c4 Compare September 18, 2024 20:20
@t0yv0 t0yv0 enabled auto-merge September 18, 2024 20:20
@t0yv0 t0yv0 added this pull request to the merge queue Sep 18, 2024
Merged via the queue into master with commit 5afb0cc Sep 18, 2024
6 checks passed
@t0yv0 t0yv0 deleted the t0yv0/fix-make-ci-mgmt branch September 18, 2024 20:40
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.

3 participants