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

chore(ci): build Falco in RelWithDebInfo, and upload Falco debug symbols as github artifacts #3452

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Jan 16, 2025

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area CI

What this PR does / why we need it:

#3440 allows us to build Falco in RelWithDebInfo target.
Use the new target and upload the debug symbols as github artifacts.
Then, as part of the release CI, use these artifacts and upload them as github assets.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

chore(ci): build Falco in RelWithDebInfo, and upload Falco debug symbols as github artifacts

…ols as github artifacts.

Then, upload these artifacts as release assets.

Signed-off-by: Federico Di Pierro <[email protected]>
@FedeDP
Copy link
Contributor Author

FedeDP commented Jan 16, 2025

/milestone 0.40.0

@poiana poiana added this to the 0.40.0 milestone Jan 16, 2025
@poiana
Copy link
Contributor

poiana commented Jan 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@FedeDP
Copy link
Contributor Author

FedeDP commented Jan 16, 2025

Ok PR tested:

  • downloaded x86_64 tar.gz (release build) from the workflow artifacts
  • dowloaded x86_64 debug symbols from the release artifacts
  • extracted both
  • moved falco.debug near to falco executable
  • run gdb ./falco and you will be prompted with:

Reading symbols from ./falco...
Reading symbols from /home/federico/Scaricati/falco-0.40.0-113+3ccd084-x86_64/usr/bin/falco.debug...

Also:

file falco
falco: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.0.0, BuildID[xxHash]=d425e7ff0ec684c0, stripped

file falco.debug 
falco.debug: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter *empty*, for GNU/Linux 2.0.0, BuildID[xxHash]=d425e7ff0ec684c0, with debug_info, not stripped

leogr
leogr previously approved these changes Jan 16, 2025
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

whoa!

@FedeDP
Copy link
Contributor Author

FedeDP commented Jan 16, 2025

Also, thanks to @shane-lawrence for the RelWithDebInfo cmake target support!!

@poiana poiana merged commit 437ec76 into master Jan 16, 2025
33 checks passed
@poiana poiana deleted the chore/release_debug_symbols branch January 16, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants