Skip to content

Automated releases#631

Merged
chreekat merged 3 commits intomainfrom
b/automated-release
May 5, 2026
Merged

Automated releases#631
chreekat merged 3 commits intomainfrom
b/automated-release

Conversation

@chreekat
Copy link
Copy Markdown
Contributor

@chreekat chreekat commented Apr 17, 2026

This is modeled after the machinery in behavioral-model and ptf, with some internal cleanups.

Tbh I'm not sure which repos it's appropriate to have automatic releases for? Is PI appropriate? :) Are there more I should do?

@chreekat chreekat force-pushed the b/automated-release branch from eabe31b to e02fb0b Compare April 17, 2026 09:10
@chreekat
Copy link
Copy Markdown
Contributor Author

CI failure is an unexpected checksum when pulling some dependency:

WARNING: Download from https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Checksum was 1c162b579a423fa6876c6c5bc16d39ab4bc05e28898977a0a6af345f523f6357 but wanted 94ced8b72956591c4775ae2207a9763d3600b30d9d7446562c552f0a14a63be7

@chreekat chreekat marked this pull request as draft April 17, 2026 13:10
@chreekat
Copy link
Copy Markdown
Contributor Author

chreekat commented Apr 17, 2026

I discovered that if I start relying on a VERSION file, we'd have two sources of truth. E.g. bmv2 uses a script to read that file inside configure.ac. I think I'll just copy what bmv2 does there. Still need to check if there are more such cases of duplication.

@fruffy
Copy link
Copy Markdown
Contributor

fruffy commented Apr 18, 2026

I discovered that if I start relying on a VERSION file, we'd have two sources of truth

Can you elaborate? At least for BMv2 we should get rid of autotools soon.

@fruffy
Copy link
Copy Markdown
Contributor

fruffy commented Apr 18, 2026

Could you also add a form of this? https://github.com/p4lang/behavioral-model/blob/main/.github/release.yml

The automated release notes are useful

@chreekat
Copy link
Copy Markdown
Contributor Author

Whoa, I didn't know about .github/release.yml. I'll add it.

I was uncertain about configure.ac. I just noticed, mechanically, that it does refer to a version number. Seems safer to keep it up to date, even if autotools is going to get the boot. Unless you think I should just remove the file already?

@fruffy
Copy link
Copy Markdown
Contributor

fruffy commented Apr 25, 2026

Whoa, I didn't know about .github/release.yml. I'll add it.

I was uncertain about configure.ac. I just noticed, mechanically, that it does refer to a version number. Seems safer to keep it up to date, even if autotools is going to get the boot. Unless you think I should just remove the file already?

Sounds good to me

@chreekat chreekat force-pushed the b/automated-release branch from de3176d to 577794f Compare April 25, 2026 08:41
@chreekat chreekat marked this pull request as ready for review April 25, 2026 08:41
Signed-off-by: Bryan Richter <b@chreekat.net>
This is modeled after the machinery in behavioral-model and ptf, with
some internal cleanups.

Signed-off-by: Bryan Richter <b@chreekat.net>
Modeled on the configuration in behavioral-model.

Signed-off-by: Bryan Richter <b@chreekat.net>
@chreekat chreekat force-pushed the b/automated-release branch from 577794f to e0604a9 Compare April 25, 2026 08:42
@chreekat
Copy link
Copy Markdown
Contributor Author

I decided to simply not touch configure.ac. Let's remove all the autoconf stuff in a dedicated PR.

For release.yml, I copied the one over from behavioral-model, then removed stuff that didn't look relevant to PI.

NB: The labels don't exist yet in this repo!

@fruffy fruffy added the infrastructure Topics related to code style and build and test infrastructure. label Apr 25, 2026
@chreekat chreekat merged commit 8eb7452 into main May 5, 2026
5 of 6 checks passed
@chreekat chreekat deleted the b/automated-release branch May 5, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Topics related to code style and build and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants