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

Remove .github/workflows/ruff.yml #9230

Open
RayBB opened this issue May 7, 2024 · 3 comments
Open

Remove .github/workflows/ruff.yml #9230

RayBB opened this issue May 7, 2024 · 3 comments
Labels
Affects: Developers Affects: Operations Affects the IA DevOps folks Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Needs: Staff Decision Issues that are blocked on a staff member's decision Priority: 3 Issues that we can consider at our leisure. [managed] Type: Bug Something isn't working. [managed]

Comments

@RayBB
Copy link
Collaborator

RayBB commented May 7, 2024

Problem

I think we can remove .github/workflows/ruff.yml now that we have ruff running in pre-commit on each PR anyway.

Any reason to keep this around?

Evidence / Screenshot

image

Relevant URL(s)

Reproducing the bug

  1. Go to ...
  2. Do ...
  • Expected behavior:
  • Actual behavior:

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N): Y
  • Environment (prod, dev, local): prod

Notes from this Issue's Lead

Proposal & constraints

Related files

https://github.com/internetarchive/openlibrary/blob/master/.github/workflows/ruff.yml

Stakeholders

CC: @scottbarnes

@RayBB RayBB added Type: Bug Something isn't working. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels May 7, 2024
@mekarpeles mekarpeles added Priority: 3 Issues that we can consider at our leisure. [managed] Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Needs: Staff Decision Issues that are blocked on a staff member's decision Affects: Operations Affects the IA DevOps folks Affects: Developers and removed Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels May 13, 2024
@RayBB
Copy link
Collaborator Author

RayBB commented May 22, 2024

@scottbarnes any opinions on this one?

@scottbarnes
Copy link
Collaborator

I just cloned from git@github.com:internetarchive/openlibrary.git, made a branch, made a change, and committed it, and pre-commit doesn't look to run by default, so I think if we remove this, then ruff will only run for people who use pre-commit, and that's not everyone, so we may end up more likely to commit code that won't pass the linting.

If that's correct, and that's a big if, then I think we should probably keep this workflow around.

@RayBB
Copy link
Collaborator Author

RayBB commented May 22, 2024

@scottbarnes I think you're talking about the pre-commit hooks running locally on your machine.
This file should not impact them because it is only used by GitHub Actions.
https://github.com/internetarchive/openlibrary/blob/master/.github/workflows/ruff.yml

However, we have a different github CI that runs pre-commit which in turn runs ruff for us and commits the results to the branch. So I think that this ruff workflow is no longer needed as a separate workflow.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label May 23, 2024
@RayBB RayBB removed the Needs: Response Issues which require feedback from lead label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Developers Affects: Operations Affects the IA DevOps folks Lead: @RayBB Issues overseen by Ray (Onboarding & Documentation Lead) [manages] Needs: Staff Decision Issues that are blocked on a staff member's decision Priority: 3 Issues that we can consider at our leisure. [managed] Type: Bug Something isn't working. [managed]
Projects
None yet
Development

No branches or pull requests

3 participants