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: update pre-commit hooks #528

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Nov 18, 2024

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4)
@henryiii
Copy link
Member

AttributeError: 'VectorObject2D' object has no attribute 'minmax_depth'

@jpivarski
Copy link
Member

AttributeError: 'VectorObject2D' object has no attribute 'minmax_depth'

No, it doesn't. minmax_depth is an attribute of Awkward Contents (not even ak.Array), and VectorObject2D is a vector.obj. You're right that something's broken.

@Saransh-cpp
Copy link
Member

This is #524. Should be fixed once a new release of awkward is out.

@Saransh-cpp Saransh-cpp merged commit 9580fdf into main Nov 19, 2024
17 of 18 checks passed
@Saransh-cpp Saransh-cpp deleted the pre-commit-ci-update-config branch November 19, 2024 10:22
@jpivarski
Copy link
Member

This is #524. Should be fixed once a new release of awkward is out.

Then we have a good reason to make a new Awkward release. I'll do that today.

In general, I don't think it's a good idea to merge a PR with a failing test, even if we know for sure that it's not failing because of the PR (just because I think that's a slippery slope—what if we're wrong?). Ideally, the head of all repos should be a working system.

(There's another school of thought in which the head is not working, and a branch intentionally made for a release is laboriously brought into a working state. But that feels like always having to swim upstream to me.)

@henryiii
Copy link
Member

If rerunning the CI on the main branch also fails in the same way, and the PR isn't touching anything that affects the failure, it's a bit fuzzy. It's nice to keep all merges green, but if CI is broken and the fix is external, you can't always stop all development. If you are sure you aren't introducing new failures and the failing jobs are limited to special cases (like the notebooks job here), that might be okay.

(The Fedora CI in scikit-build-core is always failing due to upstream Fedora breaking their CI every week or so, so I just have to ignore a red x there if it comes from Fedora most of the time!)

@Saransh-cpp
Copy link
Member

I'll do that today.

Awesome, thank you!

I don't think it's a good idea to merge a PR with a failing test

Noted. I merged this one as it was just a pre-commit version update and the PR did not touch any code files.

@jpivarski
Copy link
Member

That's understandable. It's a fine line to draw between "I know this PR is safe, despite the test failures" and "I really know it's safe." In fact, I had to ignore a deploy-documentation-preview failure to release Awkward (the documentation preview has been giving us trouble recently, but it follows a different path from the documentation itself, so I really could ignore it).

This PR didn't touch any code files, but updating pre-commit can make it use a new ruff version, which can reformat source code and (who knows!) cause a bug. It's a long shot, and you know in this case that a new ruff was not changing any source code or wanting it to change. I 100% agree that this PR seems totally safe, but it's on the side of the fine line where I'd wait for it to formally turn green before merging.

I just finished that Awkward release; I'll run Vector's tests on main now.

@jpivarski
Copy link
Member

@henryiii
Copy link
Member

henryiii commented Nov 19, 2024

Is this what you meant:

https://github.com/scikit-hep/vector/actions/runs/11920001965

? You linked a workflow with the jobs that passed before. Only the notebook workflow was failing.

@henryiii
Copy link
Member

FYI, the notebook job doesn't run on main, only on PRs, so it didn't affect the green checkmark on the main page.

@jpivarski
Copy link
Member

You're right—I thought that the failure had been in the "CI" workflow (without checking). Thanks for running the appropriate one, and I see that it passes now!

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