Skip to content

kata.runtime-rs: init#1909

Open
katexochen wants to merge 11 commits intomainfrom
p/runtime-rs
Open

kata.runtime-rs: init#1909
katexochen wants to merge 11 commits intomainfrom
p/runtime-rs

Conversation

@katexochen
Copy link
Copy Markdown
Member

No description provided.

@katexochen katexochen added the no changelog PRs not listed in the release notes label Nov 10, 2025
@katexochen katexochen force-pushed the p/runtime-rs branch 4 times, most recently from 642e71f to 6a88531 Compare March 31, 2026 10:16
@katexochen katexochen marked this pull request as ready for review March 31, 2026 10:40
@burgerdev burgerdev self-assigned this Mar 31, 2026
Comment on lines +58 to +64
checkFlags = [
"--skip=device::device_manager::tests::test_new_block_device"
"--skip=network::endpoint::endpoints_test::tests::test_ipvlan_construction"
"--skip=network::endpoint::endpoints_test::tests::test_macvlan_construction"
"--skip=network::endpoint::endpoints_test::tests::test_vlan_construction"
"--skip=test::test_new_hypervisor"
];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe add a comment that these require root privs (or why they can't be run otherwise).

# as the node-installer is configured to install this file.
# TODO(katexochen): Remove when switching to runtime-rs.
postInstall = ''
touch $out/bin/kata-runtime
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will probably be wondering what that 0-length file is supposed to be a few months down the road. How about populating it with the reason for its absence?

Comment on lines +135 to +136

./0020-runtime-rs-allow-initrd-AND-image-to-be-set.patch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This patch is referenced in 61b7843, but the patch file is only added in a later commit, and with a different index.

./0020-shim-guess-CDI-devices-without-direct-match.patch

# Deny unknown fields where possible to ease migration. This isn't possible where flatten is used.
# TODO: upstream.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suppose you could link kata-containers/kata-containers#12756 now?

# Use virtio-blk with serial name for initdata
# Our initdata-processor expects the initdata device to be present at /dev/disks/by-label/initdata,
# which requires the device to have a stable name. Using virtio-blk with a serial number achieves this.
# TODO: check if we can improve the situation upstream or implement a fallback in the initdata-processor.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

config.Runtime["experimental"] = []string{"force_guest_pull"}

config.Agent["kata"]["dial_timeout_ms"] = 1000
config.Agent["kata"]["reconnect_timeout_ms"] = 600000
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is likely a debug leftover, right? If not, please leave a comment for why it needs to be that high.

Comment on lines +32 to +39
uses: ./.github/workflows/e2e.yml
with:
skip-undeploy: false
test-name: ${{ matrix.test-name }}
platform: ${{ matrix.platform.name }}
runner: ${{ matrix.platform.runner }}
self-hosted: ${{ matrix.platform.self-hosted }}
debug-shell: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we need to change the SET?

SET: >-
${{
(inputs.test-name == 'badaml-sandbox' && 'badaml-sandbox') ||
(inputs.test-name == 'badaml-vuln' && 'badaml-vuln') ||
'base'
}}

toml parsing in runtime-go and node-installer is case-insensitive, but the crate used in runtime-rs is case sensitive and expects lower-case keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants