-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-40268: [Archery] Bump the version of pygit2, adapt to API changes #40269
Conversation
|
It seems that pygit 1.14 requires Python 3.9 or later. |
Unless I'm missing something obvious, it looks like this actually would mean bumping python versions in a bunch of places. I wonder if we should instead either not require 3.9 except for |
It's not a strong opinion but it may be a good time to update Python version for Archery. |
I agree with requiring Python 3.9 on Archery-related CI jobs. Edit: oh, I see you already did this. Thank you! |
3 of the 4 failing PR checks are due to missing Python version bumps, can you take a look @jonkeane ? |
@github-actions crossbow submit -g python -g wheel |
Revision: c7e1e2a Submitted crossbow builds: ursacomputing/crossbow @ actions-730595ee2c |
Yup, I can keep bumping versions if we're all good with doing that here. I'll also change the title to be more "bump python, and also the tiny archery fix too" |
For the C++ / ARM64 Ubuntu 20.04 C++, ARM64 Debian 11 Go 1.19/1.20 jobs, IIUC those run on the self-hosted runners managed by Voltron Data, yeah? I see:
Which is pulling from apt (rather than using the setup-python action). Would it be preferred to switch to the setup-python action or add a ppa that we can fetch a newer python from? The other C++ / AMD64 macOS 12 C++ is a timeout that I'm seeing on main on main too I have not yet, but still will later go through the extended crossbow tests |
Let's use Ubuntu 22.04: diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index e9409f1cd6..b5461e2f56 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -94,12 +94,12 @@ jobs:
cat <<JSON >> "$GITHUB_OUTPUT"
{
"arch": "arm64v8",
- "clang-tools": "10",
+ "clang-tools": "14",
"image": "ubuntu-cpp",
- "llvm": "10",
+ "llvm": "14",
"runs-on": ["self-hosted", "arm", "linux"],
- "title": "ARM64 Ubuntu 20.04 C++",
- "ubuntu": "20.04"
+ "title": "ARM64 Ubuntu 22.04 C++",
+ "ubuntu": "22.04"
}
JSON
fi
Let's use Debian 12: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index bbffab6704..5d6918aa60 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -90,7 +90,7 @@ jobs:
echo "JSON" >> "$GITHUB_OUTPUT"
docker:
- name: ${{ matrix.arch-label }} Debian 11 Go ${{ matrix.go }}
+ name: ${{ matrix.arch-label }} Debian 12 Go ${{ matrix.go }}
needs: docker-targets
runs-on: ${{ matrix.runs-on }}
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
@@ -101,6 +101,7 @@ jobs:
include: ${{ fromJson(needs.docker-targets.outputs.targets) }}
env:
ARCH: ${{ matrix.arch }}
+ DEBIAN: "12"
GO: ${{ matrix.go }}
steps:
- name: Checkout Arrow
`` |
Bumping to 22.04 still resulted in python 3.8 for C++ / ARM64 Ubuntu 22.04 C++: https://github.com/apache/arrow/actions/runs/8088510588/job/22102700260?pr=40269#step:5:55 But in looking at the extended builds, there are a number of old OSes that we won't have 3.8 by default (and some we even want 3.8 in order to build on). (e.g. wheel-macos-big-sur-cp38-arm64, test-fedora-39-python-3, test-ubuntu-20.04-python-3). IMO, we should not bundle all of these changes up because of this one archery issue. We should:
I think I would prefer the second of those, but am also happy to do the first. |
I'm ok with option 2 as well. |
@github-actions crossbow submit -g python -g wheel |
Revision: a7b63dd Submitted crossbow builds: ursacomputing/crossbow @ actions-a2c3e955e0 |
Ok, I took approach (2). I did slightly more than that e.g. .github/workflows/comment_bot.yml which isn't strictly necessary, but while I'm in there it seemed a good idea to pull it up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current CI failures are unrelated
After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 30e6d72. There was 1 benchmark result indicating a performance regression:
The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…anges (apache#40269) ### Rationale for this change `archery crossbow submit ...` fails with newer versions of pygit2 ### What changes are included in this PR? Adapt away from deprecated [sic] APIs in pygit2 to ones that work with current versions, bump the pin ### Are these changes tested? Manually, yes, I can use `archery crossbow submit ...` again. CI will run using archery in a bunch of places on this PR too. ### Are there any user-facing changes? No * GitHub Issue: apache#40268 Authored-by: Jonathan Keane <[email protected]> Signed-off-by: Jonathan Keane <[email protected]>
Rationale for this change
archery crossbow submit ...
fails with newer versions of pygit2What changes are included in this PR?
Adapt away from deprecated [sic] APIs in pygit2 to ones that work with current versions, bump the pin
Are these changes tested?
Manually, yes, I can use
archery crossbow submit ...
again. CI will run using archery in a bunch of places on this PR too.Are there any user-facing changes?
No