Skip to content

Print checksum of drivers being used #1242

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

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Print checksum of drivers being used #1242

merged 3 commits into from
Jul 18, 2023

Conversation

Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Jul 13, 2023

Description

Have collector print the sha256 checksum for the driver it uses. Same as #1237, this is part of the groundwork for unifying the upstream and downstream built drivers. By printing the checksum for a driver being used it'll be easier for us to check where the driver comes from in case a user reports an issue.

A small script for downloading drivers from GCP and validating checksums is also provided, in hopes that if we ever need to validate the source of a driver it will make the work somewhat easier.

Checklist

  • Investigated and inspected CI test results

Automated testing

  • Added unit tests

Testing Performed

  • Manually checked driver-checksum.sh properly validates files and cleans up after itself.

Molter73 added 2 commits July 13, 2023 12:31
Providing this hash is meant for us to be able to properly identify a
driver. This is a byproduct of us building drivers in 2 separate CI
systems, since we'll eventually unify the systems, I'd expect this
mechanism to be deprecated at some point. However, printing the sha256
to the logs could also prove a useful resource for users if we decide to
provide individual checksums for the drivers in the future.
@openshift-ci
Copy link

openshift-ci bot commented Jul 13, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@github-actions
Copy link

github-actions bot commented Jul 13, 2023

Kernel Method Without Collector Time (secs) With Collector Time (secs) Baseline median (secs) Collector median (secs) PValue
rhel.rhel-8 ebpf 222.472 231.148 204.92 213.7 🟢
ubuntu-os.ubuntu-2004-lts ebpf 236.773 236.136 236.1 234.97 🟢
ubuntu-os.ubuntu-2204-lts ebpf 255.066 245.933 222.56 229.05 🟢

@Molter73 Molter73 marked this pull request as ready for review July 13, 2023 16:08
@Molter73 Molter73 requested a review from a team as a code owner July 13, 2023 16:08
Copy link
Contributor

@JoukoVirtanen JoukoVirtanen left a comment

Choose a reason for hiding this comment

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

LGTM! You could a couple of comments to the script file to explain what it does.

@Molter73 Molter73 merged commit ea8dc61 into master Jul 18, 2023
@Molter73 Molter73 deleted the mauro/hash-drivers branch July 18, 2023 14:47
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