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 Profiling precursor changes #14051

Merged
merged 15 commits into from
Sep 9, 2024
Merged

Conversation

tomponline
Copy link
Member

@tomponline tomponline commented Sep 6, 2024

This PR:

  1. Moves the building of the LXD binaries for the system tests into the code test stage and uses GH artifacts system in order to avoid building the LXD binaries multiple times for each concurrent runner.
  2. Adds functionality to build LXD binaries with code coverage support and uploads them to the GH artifact system for collection later (this will come in a future PR).
  3. Various Makefile improvements and cleanups.

@tomponline tomponline self-assigned this Sep 6, 2024
@tomponline tomponline force-pushed the tp-profiling branch 7 times, most recently from 2e936bf to 0fa25b0 Compare September 6, 2024 10:26
@tomponline tomponline changed the title WIP: Profiling WIP: CI profiling Sep 6, 2024
@tomponline tomponline force-pushed the tp-profiling branch 15 times, most recently from 74e7c57 to 7a7d5db Compare September 6, 2024 21:37
No need to run this repeatedly on every system test workflow.

Signed-off-by: Thomas Parrott <[email protected]>
@tomponline tomponline force-pushed the tp-profiling branch 3 times, most recently from af0cf2c to 94cbf89 Compare September 9, 2024 08:44
Build lxd project binaries only, and not all of the test and client binaries too.

Signed-off-by: Thomas Parrott <[email protected]>
Rather than build it all again.

Signed-off-by: Thomas Parrott <[email protected]>
We use the same dqlite built during the code tests now for consistency.

Also avoids delays with ppa being built.

Signed-off-by: Thomas Parrott <[email protected]>
Like its done in snap.

Signed-off-by: Thomas Parrott <[email protected]>
As doesn't link against sqlite3.

Signed-off-by: Thomas Parrott <[email protected]>
So errors are more visible.

Signed-off-by: Thomas Parrott <[email protected]>
Like its done in snap.

Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
@tomponline tomponline force-pushed the tp-profiling branch 7 times, most recently from ff04671 to 0427f63 Compare September 9, 2024 15:21
@tomponline tomponline changed the title WIP: CI profiling CI Profiling Sep 9, 2024
@tomponline tomponline marked this pull request as ready for review September 9, 2024 15:31
@tomponline tomponline changed the title CI Profiling CI Profiling precursor changes Sep 9, 2024
Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

LGTM thanks! There might be some things to further remove but those can wait till later.

One thing we lose with that is we are now only testing/building on Go 1.22. That said, maybe you wanted to have that done first and then we add another step to the Code job later on.

.github/workflows/tests.yml Show resolved Hide resolved
.github/workflows/tests.yml Show resolved Hide resolved
@tomponline tomponline merged commit 94110ee into canonical:main Sep 9, 2024
29 checks passed
@tomponline tomponline deleted the tp-profiling branch September 9, 2024 18:14
@tomponline
Copy link
Member Author

One thing we lose with that is we are now only testing/building on Go 1.22. That said, maybe you wanted to have that done first and then we add another step to the Code job later on.

Note, thanks for highlighting.

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.

2 participants