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

ci: implement release verification #1264

Merged
merged 2 commits into from
Nov 8, 2023
Merged

ci: implement release verification #1264

merged 2 commits into from
Nov 8, 2023

Conversation

matklad
Copy link
Member

@matklad matklad commented Nov 3, 2023

This adds last-mile testing of the thing that was actually released (GitHub release, nmp package, etc). This is too late to prevent issues, but helps to discover things otherwise impossible to discover (eg, some files were lost during upload to GitHub), and also helps with finding divergence of upstream dependencies (e.g., if something breaks on a new version of node js).

Comment on lines 129 to 130
// TODO: these two don't work yet
if (language == .go or language == .dotnet) continue;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these two are broken! Looking into fixing them, but want to do that independently from this work to add basic verification.

_ = try shell.project_root.statFile(tigerbeetle_exe);
};
// If tigerbeetle binary does not exist yet, build it.
// TODO: just run `zig build run` unconditionally here, when that doesn't do spurious rebuilds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matklad tidy.zig complaining about line length here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine now!

@matklad
Copy link
Member Author

matklad commented Nov 3, 2023

fix for go: #1265

matklad added a commit that referenced this pull request Nov 6, 2023
See

dotnet/sdk#12160 (comment)

I don't entirely understand what's happening here, but adding this flag
indeed results into native libraries included in the archive.

This should be caught by

#1264

in the future
@matklad
Copy link
Member Author

matklad commented Nov 6, 2023

and for .net!

#1267

@matklad matklad force-pushed the matklad/validate-release branch 2 times, most recently from 5a96d23 to e2bc88d Compare November 7, 2023 13:59
@matklad matklad requested a review from batiati November 7, 2023 14:02
\\ <dependency>
\\ <groupId>com.tigerbeetle</groupId>
\\ <artifactId>tigerbeetle-java</artifactId>
\\ <version>0.14.158</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use the targetted version here?

Suggested change
\\ <version>0.14.158</version>
\\ <version>{version}</version>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most excellent catch, thanks!

Fun fact, when writing this code I've actually thought that options: struct pattern has a drawback that it doesn't warn about unused field, as I made a similar mistake for some other language!

@matklad matklad force-pushed the matklad/validate-release branch 3 times, most recently from 144379d to 65aeeb2 Compare November 8, 2023 20:06
This adds last-mile testing of the thing that was actually released
(GitHub release, nmp package, etc). This is too late to _prevent_
issues, but helps to discover things otherwise impossible to discover
(eg, some files were lost during upload to GitHub), and also helps with
finding divergence of upstream dependencies (e.g., if something breaks
on a new version of node js).
@matklad matklad added this pull request to the merge queue Nov 8, 2023
Merged via the queue into main with commit 37fdafe Nov 8, 2023
27 checks passed
@matklad matklad deleted the matklad/validate-release branch November 8, 2023 21:53
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.

None yet

3 participants