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

Upgrade to latest static analysis Action #67

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

nwiltsie
Copy link
Member

@nwiltsie nwiltsie commented May 6, 2024

This PR replaces the existing CI/CD workflow in this repository with the Action-ified version from tool-static-analysis. Under the hood, the Action is using the exact same docker image to perform the checks, so this upgrade should have no visible change.

Turning the static analysis checks into an Action makes it much easier for your friendly neighborhood Infrastructure Team to make large-scale updates without opening pull requests in dozens or hundreds of repositories.

As an example, 247 workflows across the uclahs-cds organization are using actions/checkout@v2 or actions/checkout@v3. Those will stop working on May 13, 2024. This PR (and its dozens of identical siblings) centralize usage of actions/checkout@v4. In the future, we will only need to update tool-static-analysis in order for all of the repositories updated in this wave to reap the benefits.

@Faizal-Eeman
Copy link

This PR (and its dozens of identical siblings) centralize usage of actions/checkout@v4

Did you mean tool-static-analysis@v1?

Copy link

@Faizal-Eeman Faizal-Eeman left a comment

Choose a reason for hiding this comment

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

Looks good to me! Deferring approval to @tyamaguchi-ucla and @yashpatel6.

@nwiltsie
Copy link
Member Author

nwiltsie commented May 6, 2024

Did you mean tool-static-analysis@v1?

Both, in a sense - tool-static-analysis@v1 calls actions/checkout@v4 internally.

Per GitHub's advice we're going to keep the v1 tag up-to-date with the latest v1.x.x tag in tool-static-analysis.

If GitHub ever decrees that actions/checkout@v4 needs to be updated, we thus will only need to update it in tool-static-analysis, and then every repo using that action will get it for free.

@nwiltsie
Copy link
Member Author

nwiltsie commented May 6, 2024

@Faizal-Eeman Does this make more sense? I've got a template and have another 200 of these to open, so any grammatical updates are welcome:

This PR (and its dozens of identical siblings) centralize usage of tool-static-analysis@v1, which internally uses actions/checkout@v4.

Copy link
Collaborator

@yashpatel6 yashpatel6 left a comment

Choose a reason for hiding this comment

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

Looks good! Minor question but nothing to block the update

.github/workflows/static-analysis.yml Show resolved Hide resolved
@yashpatel6
Copy link
Collaborator

@Faizal-Eeman Does this make more sense? I've got a template and have another 200 of these to open, so any grammatical updates are welcome:

This PR (and its dozens of identical siblings) centralize usage of tool-static-analysis@v1, which internally uses actions/checkout@v4.

Good point on the wording, I do think the above is clearer to avoid any potential confusion about a. why we'd want to centralize the action in general and b. the immediate end of support for certain checkout versions and the fix for it contained within the centralized action

@Faizal-Eeman
Copy link

@Faizal-Eeman Does this make more sense? I've got a template and have another 200 of these to open, so any grammatical updates are welcome:

This PR (and its dozens of identical siblings) centralize usage of tool-static-analysis@v1, which internally uses actions/checkout@v4.

Yup, this reads better. Thanks @nwiltsie

@nwiltsie nwiltsie merged commit d71ba5e into main May 6, 2024
7 checks passed
@nwiltsie nwiltsie deleted the nwiltsie-static-upgrade branch May 6, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standardization Standardization task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants