-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: Make the built packages available to be downloaded #6772
CI: Make the built packages available to be downloaded #6772
Conversation
This is great! Heads up that there are still slight differences in the package names that CPack creates, and the ones we upload to S3. I think we should try to do the rename in CPack and failing that, rename them in the pipeline scripts here. I'll find the details shortly. |
Love it. |
Also add TGZ as a supported package format on macOS, since it's already used on the CI.
39d7af5
to
910083e
Compare
Rebased against master to resolve conflicts. |
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.
Just a heads up about the differences between how we store files in S3 and what our CPack output creates.
displayName: "Run DEB packaging" | ||
workingDirectory: $(BUILD_DIR) | ||
|
||
- script: | | ||
cmake -DPACKAGING_SYSTEM=RPM $(Build.SourcesDirectory) | ||
cmake --build . --target package -j 3 | ||
cp *.rpm $(Build.ArtifactStagingDirectory) |
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.
After building packages I run:
mv osquery-$VERSION-1.$ARCH.rpm osquery-$VERSION-1.linux.$ARCH.rpm
mv osquery-debuginfo-$VERSION-1.$ARCH.rpm osquery-debuginfo-$VERSION-1.linux.$ARCH.rpm
@@ -100,21 +100,31 @@ jobs: | |||
- script: | | |||
cmake -DPACKAGING_SYSTEM=DEB $(Build.SourcesDirectory) | |||
cmake --build . --target package -j 3 | |||
cp *.deb $(Build.ArtifactStagingDirectory) |
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.
After building packages I run:
mv osquery_$VERSION-1.linux_$ARCH.deb osquery_$VERSION_1.linux.$ARCH.deb
@@ -100,21 +100,31 @@ jobs: | |||
- script: | | |||
cmake -DPACKAGING_SYSTEM=DEB $(Build.SourcesDirectory) | |||
cmake --build . --target package -j 3 | |||
cp *.deb $(Build.ArtifactStagingDirectory) | |||
cp *.ddeb $(Build.ArtifactStagingDirectory) |
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.
After building packages I run:
mv osquery-dbgsym_$VERSION-1.linux_$ARCH.ddeb osquery-dbgsym_$VERSION_1.linux.$ARCH.deb
Curiosity, I see that is how we are still doing things, but is there a reason why we are not following the standard naming convention for each packaging format? |
I think the reason we have the current naming scheme is most likely we did not know better in 2015 and set a bad precedent. We could start following the standard. The downside is that some people's scripts might break. And the "ddeb" to "deb" rename is due to a limitation in freight (the tool used to create an apt repo). |
I see, so I would suggest to revert #6468 first then. |
I'll investigate. I think we can land this change and then follow up in subsequent PRs to revert and fix up the names. |
…0 to master * commit '2685844e7a4b1dbddd786f0ab3c1d26656deff28': (62 commits) CHANGELOG 4.6.0 (osquery#6809) Merge pull request from GHSA-4g56-2482-x7q8 cpack: Use CPACK_RPM_PACKAGE_RELEASE (osquery#6805) CMake: add max version limit to 3.18.0 on Linux (osquery#6801) libs: Update sqlite to version 3.34.0 (osquery#6804) Add indexed column support to Windows users table (osquery#6782) file_events: Add configuration flag (osquery#6663) CI: Make the built packages available to be downloaded (osquery#6772) Remove a Buck leftover (osquery#6799) CI: Update brew scripts (osquery#6794) CI: Python installation improvements on Windows (osquery#6764) BPF: Fix the tests (osquery#6783) libs: Update bzip2 to version 1.0.8 (osquery#6786) Update cmake_minum_required to 3.17.5 and pin version in CI (osquery#6770) CMake: Remove unused LTCG flag (osquery#6769) Remove boost workaround introduced in osquery#5591 for string_view (osquery#6771) libs: Update BPF libraries to support LLVM 11 (osquery#6775) BPF: Fix wrong d_type compare in fs classes (osquery#6774) startup_info: Fix memory leak in the dbus classes (osquery#6773) Change urls for submodules gpg-error, libgcrypt, libcap (osquery#6768) ...
Also add TGZ as a supported package format on macOS,
since it's already used on the CI.
NOTE, to download them:
Checks
tab or on the bottom of theConversation
tab where all the checks results are shown.Details
link of theosquery
check, thenView more details on Azure Pipelines
.Instead of a
0 artifacts
there's should be written something like6 published
, click on it.These are not meant to be used in production, but could be useful to test some features or debug issues that the CI build highlights.
The artifacts will remain available as long as the build run is available on the CI, which is 30 days.