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

Refactor the qemu kernel selector logic #1059

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Conversation

zasgar
Copy link
Member

@zasgar zasgar commented Mar 15, 2023

Summary: This cleans up the kernel import and selector logic to remove manual
config and copy/paste.

Relevant Issues: #709

Type of change: /kind test-infra

Test Plan: bazel test -c opt --config=qemu-bpf --cache_test_results=no --remote_download_outputs=all //src/stirling/source_connectors/socket_tracer:redis_trace_bpf_test --test_output=streamed --//bazel/test_runners/qemu_with_kernel:kernel_version=latest

Signed-off-by: Zain Asgar <zasgar@pixielabs.ai>
Copy link
Member

@vihangm vihangm left a comment

Choose a reason for hiding this comment

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

LGTM pending the fixes suggested.

for version, sha in kernel_catalog.items():
http_file(
name = kernel_version_to_name(version),
url = "https://storage.googleapis.com/pixie-dev-public/kernel-build/20230228151027/linux-build-{}.tar.gz".format(version),
Copy link
Member

Choose a reason for hiding this comment

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

you need to use kernel_build_date here instead of hardcoding the value

Copy link
Member

Choose a reason for hiding this comment

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

should we also reuse kernel_version_to_name here?

Signed-off-by: Zain Asgar <zasgar@pixielabs.ai>
@zasgar zasgar merged commit d6660e2 into pixie-io:main Mar 16, 2023
RagalahariP pushed a commit to RagalahariP/pixie that referenced this pull request Mar 23, 2023
Summary: This cleans up the kernel import and selector logic to remove
manual
config and copy/paste.

Relevant Issues: pixie-io#709

Type of change: /kind test-infra

Test Plan: `bazel test -c opt --config=qemu-bpf --cache_test_results=no
--remote_download_outputs=all
//src/stirling/source_connectors/socket_tracer:redis_trace_bpf_test
--test_output=streamed
--//bazel/test_runners/qemu_with_kernel:kernel_version=latest`

Signed-off-by: Zain Asgar <zasgar@pixielabs.ai>
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