broad-processor-92400
01/04/2024, 12:57 AMpants_version = "2.19.0rc3" in your pants.toml.
If you do this and run smoke tests to validate, that would be great and provide assurance that the upgrade will be easier for you when 2.19.0 comes out. For instance: push it to your CI and/or run a few of your common commands locally.
If you've got more time and are excited for any features/bug-fixes, please put them through their paces too!
Release notes: https://github.com/pantsbuild/pants/blob/4c9fe780df2362a4f98c03992f1d9fc261a7eed6/src/python/pants/notes/2.19.x.md
Highlights:
• Test retries for flaky tests.
• Using the parametrize to set multiple fields at once when generating new groups of targets.
• buildx support in the Docker backend.
• New backends for running semgrep and openapi-format.
If you find any bugs or weirdness or other questions, please ask here or file issues https://github.com/pantsbuild/pants/issues/new
(While you're here, don't miss the #C18RRR4JK channel, which indicates all new releases, for testing even earlier 😄 )late-keyboard-89314
01/04/2024, 1:44 AMbuildx support in both CI and local dev since the first RC and it’s been working great FWIW! Thank you for this! 🎉curved-manchester-66006
01/04/2024, 5:24 PMancient-lawyer-12557
01/04/2024, 7:01 PMancient-lawyer-12557
01/04/2024, 7:06 PMlate-keyboard-89314
01/04/2024, 7:07 PMcontainerd but otherwise it’s working great. I pulled instructions out of the PR that landed the functionality, just needed to add this to pants.toml:
[docker]
use_buildx = trueancient-lawyer-12557
01/04/2024, 7:08 PMlate-keyboard-89314
01/04/2024, 7:10 PMdocker_image target (such as output types). I’m not sure beyond that, we haven’t had a need to pass anything specific.late-keyboard-89314
01/04/2024, 7:11 PMpants package we set up qemu/containerd/buildx. The explicit buildx bootstrap is required if you’re building more than one image, otherwise docker will throw a container busy error when pants tries to run things in parallel.
- name: Setup qemu for cross-platform builds
uses: docker/setup-qemu-action@v3
- name: Setup buildkit for cross-platform builds
uses: docker/setup-buildx-action@v3
- name: Set up containerd image store
run: |
cat /etc/docker/daemon.json | jq '. | .+{"features": {"containerd-snapshotter": true}}' | sudo tee /etc/docker/daemon.json
cat /etc/docker/daemon.json
sudo systemctl restart docker
- name: Bootstrap buildx container
run: |
docker buildx inspect --bootstrapbroad-processor-92400
01/04/2024, 9:53 PMnutritious-hair-72580
01/08/2024, 5:40 AMlate-keyboard-89314
01/08/2024, 4:17 PMwith: daemon-config: … that’s much nicer. Thanks!