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

Kata deploy ppc64le #2

Closed
wants to merge 2,883 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2883 commits
Select commit Hold shift + click to select a range
dfa1cce
Merge pull request #7860 from fidencio/topic/ci-add-k8s-devmapper-tes…
fidencio Sep 7, 2023
cd8c217
Merge pull request #6879 from openanolis/chao/update_upstream_upcall_…
studychao Sep 7, 2023
3a42779
metrics: Use TensorFlow optimized image
GabyCT Sep 7, 2023
34f5809
Merge pull request #7824 from dborquez/fix_memory_usage_initialization
dborquez Sep 7, 2023
028a97e
ci: k8s: Use the proper command for sleep
fidencio Sep 7, 2023
ad45ab5
ci: k8s: Ensure k3s is deploy with --write-kubeconfig-mode=644
fidencio Sep 7, 2023
ada65b9
ci: k8s: Use vanilla kubectl with k3s
fidencio Sep 7, 2023
369a8af
ci: k8s: Decrease k3s sleep from 4 to 2 minutes
fidencio Sep 7, 2023
2df183f
ci: k8s: Append, instead of overwrite, the devmapper config
fidencio Sep 7, 2023
adfea55
metrics: fix FIO test initialization
dborquez Sep 7, 2023
3de2303
ci: k8s: Wait some time after restarting k3s
fidencio Sep 7, 2023
8c9380a
ci: k8s: Install bats on GARM runners
fidencio Sep 8, 2023
fa62a4c
ci: k8s: Export KUBERNETES env var
fidencio Sep 8, 2023
27fa7d8
ci: k8s: Add a kata-deploy-garm target
fidencio Sep 8, 2023
aaec5a0
ci: k8s: devmapper tests should be using ubuntu 20.04
fidencio Sep 8, 2023
05e2e76
Merge pull request #7868 from fidencio/topic/ci-add-k8s-devmapper-tes…
fidencio Sep 8, 2023
b5bad3c
ci: k8s: Add clean-up-garm argument for gha-run.sh
fidencio Sep 8, 2023
3cc20b4
ci: k8s: Also check for "fc" (for firecracker)
fidencio Sep 8, 2023
f6cd393
ci: k8s: Remove useless skip statement from tests
fidencio Sep 8, 2023
9d74b7c
k8s: ci: Skip "Pod quota" test with firecracker
fidencio Sep 8, 2023
0b26a5d
Merge pull request #7871 from fidencio/topic/ci-add-k8s-devmapper-tes…
fidencio Sep 8, 2023
670a8e9
kata-deploy: Switch to an alpine image
fidencio Sep 7, 2023
68156d7
protocol: breaking lines to improve readability
beraldoleal Aug 17, 2023
8db84c1
protocol: force GOPATH to be set
beraldoleal Sep 1, 2023
711a7ed
protocol: remove mapping definitions
beraldoleal Aug 21, 2023
87accaa
protocol: use workdir during build
beraldoleal Sep 8, 2023
5e1106a
protocol: remove unused import_path
beraldoleal Sep 1, 2023
d8e4bb9
protocol: remove unused PROTO_FILE env
beraldoleal Aug 17, 2023
ead724b
protocol: removing gogo.nullable feature
beraldoleal Sep 8, 2023
72c510d
runtime/virtiofsd: Drop all references to "--cache=none"
gkurz Sep 6, 2023
dc7414f
Merge pull request #7870 from dborquez/metrics_fio_fix_clean_env_order
GabyCT Sep 8, 2023
bd24afc
gha: Manually rebase PR atop of the target branch before testing
fidencio Aug 31, 2023
fa818bf
Merge pull request #7867 from GabyCT/topic/optimizedimage
GabyCT Sep 8, 2023
470d065
agent: optimize the code of systemd cgroup manager
Yuan-Zhuo Sep 9, 2023
94f5a69
Merge pull request #7862 from fidencio/topic/kata-deploy-use-alpine-a…
fidencio Sep 9, 2023
139c7f0
kata-deploy: Fix aarch64 image build
fidencio Sep 9, 2023
8b4a0b3
kata-deploy: Remove curl after it's used
fidencio Sep 9, 2023
6cd5d83
Merge pull request #7865 from gkurz/fix-more-virtiofs-args
fidencio Sep 9, 2023
52f6449
kata-manager: Remove initcall_debug kernel option
jodh-intel Sep 11, 2023
dc6a458
versions: Bump kernel to the latest LTS release (6.1.52)
fidencio Sep 11, 2023
fde3461
kernel: Add erofs patches needed for CC related work
fidencio Sep 11, 2023
976d101
runtime-rs: hypervisor: Remove debug kernel options
jodh-intel Sep 11, 2023
93bad13
Merge pull request #7875 from fidencio/topic/kata-deploy-fix-arm64-im…
fidencio Sep 11, 2023
b03e497
dragonball: fix for non-deterministic builds
alex-matei Sep 11, 2023
c0f697f
runtime: Allow kernel_params annotation
jodh-intel Sep 11, 2023
46e73cf
Merge pull request #7884 from fidencio/topic/update-kernel-to-the-lat…
fidencio Sep 11, 2023
b384757
Merge pull request #7874 from fidencio/topic/manually-rebase-branches…
GabyCT Sep 11, 2023
060499d
metrics: Remove warning from metrics documentation
GabyCT Sep 11, 2023
8509c31
ci: Fix target-branch usage
fidencio Sep 11, 2023
d7f991d
Merge pull request #7151 from Yuan-Zhuo/fix-systemd-cgroup
fidencio Sep 11, 2023
07d0ad0
Merge pull request #7897 from fidencio/topic/ci-devmapper-do-the-reba…
fidencio Sep 11, 2023
6d795c0
ci: Add more target-branch related fixes
fidencio Sep 11, 2023
dc0b350
Merge pull request #7900 from fidencio/topic/ci-target-branch-fixes-f…
fidencio Sep 11, 2023
f811b06
ci: use github.ref_name instead of $GITHUB_REF_NAME
fidencio Sep 11, 2023
af29eeb
Merge pull request #7901 from fidencio/topic/ci-target-branch-fixes-f…
GabyCT Sep 11, 2023
e1f54f9
Merge pull request #7766 from Apokleos/wrap-vsock-virtiofs
Tim-0731-Hzt Sep 12, 2023
202049f
feat(runtime-rs): introduce huge page type to select VM RAM's backend
guixiongwei Apr 20, 2023
ca4b6b0
runtime: Naming conflict of network devices
Xuanqing-Shi Sep 12, 2023
c800d07
Merge pull request #7889 from UiPath/fix-dragonball-build
studychao Sep 12, 2023
a16b096
chore(cargo): update cargo lock
yipengyin Sep 12, 2023
4443950
versions: Bump rust version
stevenhorsman Aug 31, 2023
9e423bd
libs: Fix clippy unnecesary hashes error
stevenhorsman Sep 5, 2023
f3a0fd5
agent: config: Fix useles-vec warning
stevenhorsman Sep 5, 2023
75cfdd5
agent: config: Allow clippy lint
stevenhorsman Sep 5, 2023
bbf1919
dragonball: Resolve non-minimal-cfg warning
stevenhorsman Sep 5, 2023
16fbc27
dragonball: Allow ambiguous-glob-reexports
stevenhorsman Sep 11, 2023
99f3d69
runtime-rs: Remove mut
stevenhorsman Sep 11, 2023
1d8b789
runtime-rs: Fix useless-vec warning
stevenhorsman Sep 11, 2023
3eaf68d
agent-ctl: Allow clippy lint
stevenhorsman Sep 11, 2023
c8419fc
kata-ctl: Resolve non-minimal-cfg warning
stevenhorsman Sep 11, 2023
a31c145
kata-ctl: useless-vec warning
stevenhorsman Sep 11, 2023
a75fd5e
runk: Fix rust unecessary mut error
stevenhorsman Sep 11, 2023
348b864
ci: Add a very basic docker sanity test
fidencio Sep 12, 2023
b020912
Merge pull request #7913 from fidencio/topic/add-functional-docker-tests
fidencio Sep 12, 2023
be71a0a
Merge pull request #7811 from stevenhorsman/bump-rust-to-1.72
gkurz Sep 12, 2023
12d833d
ci: Add a very basic nerdctl sanity test
fidencio Sep 12, 2023
c83f167
ci: docker: Run the tests after the kata-static is created
fidencio Sep 12, 2023
f536ef5
ci: docker: Also run the smoke test with runc
fidencio Sep 12, 2023
7feb8de
Merge pull request #7887 from jodh-intel/hypervisor-remove-debug-kern…
jodh-intel Sep 12, 2023
2d8447f
Merge pull request #7916 from fidencio/topic/add-functional-nerdctl-t…
fidencio Sep 12, 2023
a58ea66
metrics: this PR skips the FIO test temprarily to fix issues
dborquez Sep 12, 2023
ad08321
metrics: Add Cassandra Metrics documentation
GabyCT Sep 12, 2023
c0d5024
Merge pull request #7921 from dborquez/metrics_disable_fio_test
GabyCT Sep 12, 2023
d53eb73
metrics: Ensure docker is running in init_env
GabyCT Sep 11, 2023
615c1cb
metrics: Add iperf bandwidth value for kata metrics
GabyCT Sep 12, 2023
c0ad914
tests: fix kernel and initrd annotations
danmihai1 Sep 12, 2023
0aa0739
metrics: Add iperf bandwidth value for qemu
GabyCT Sep 12, 2023
c2b2a00
Merge pull request #7899 from GabyCT/topic/startdocker
dborquez Sep 13, 2023
9766f90
Merge pull request #7719 from beraldoleal/nullable
bergwolf Sep 13, 2023
1636abb
runtime: issue with non-empty []Endpoint in RemoveEndpoints
Xuanqing-Shi Aug 23, 2023
e0c8116
ci: docker: Switch to tcp port 80 ping
fidencio Sep 13, 2023
13968aa
ci: nerdctl: Switch to tcp port 80 ping
fidencio Sep 13, 2023
46bc0b1
ci: nerdctl: Create the containerd config
fidencio Sep 13, 2023
813bfde
ci: docker: nerdtl: Use io.containerd.kata-${KATA_HYPERVISOR}.io
fidencio Sep 13, 2023
55ca7e8
Merge pull request #7907 from Xuanqing-Shi/7876/network-devices-namin…
bergwolf Sep 13, 2023
8b9df1d
Merge pull request #7929 from fidencio/topic/use-tcp-port-ping-on-doc…
fidencio Sep 13, 2023
c565053
Merge pull request #7895 from GabyCT/topic/removewarning
GabyCT Sep 13, 2023
0a24d3f
Merge pull request #7923 from GabyCT/topic/addcassandradoc
dborquez Sep 13, 2023
4923443
metrics: Increase value limit for jitter in clh
GabyCT Sep 13, 2023
49e2fa1
metrics: Increase jitter value for qemu
GabyCT Sep 13, 2023
1d33112
Merge pull request #7925 from GabyCT/topic/bandwidthlimit
GabyCT Sep 13, 2023
a1e3fa7
Merge pull request #7905 from microsoft/danmihai1/mariner-annotations
fidencio Sep 14, 2023
5a551a8
gha: vfio: Import jobs scripts from tests repo
jepio Aug 21, 2023
a92ddee
tests/vfio: Move dependency installation to gha-run.sh
jepio Aug 23, 2023
df81508
tests/vfio: Change to get the test working in GHA
jepio Aug 21, 2023
8fffdc8
tests/vfio: Capture journal from vm
jepio Aug 23, 2023
5f6475a
tests/vfio: Gather debug info and disable tdp_mmu
jepio Aug 24, 2023
509771e
runtime: clh: Add hot_plug_vfio entry to config
jepio Aug 30, 2023
fc51e4b
runtime: Check config for supported CLH (cold|hot)_plug_vfio values
jepio Aug 30, 2023
7c4e73b
runtime: Add test cases for checkPCIeConfig
jepio Sep 8, 2023
bfc9392
runtime: Remove redundant check in checkPCIeConfig
jepio Sep 8, 2023
b46b0ec
tests/vfio: Configure a value for 'hot_plug_vfio' for both vmms
jepio Aug 30, 2023
9f1a42c
tests/vfio: Give commands 30s to execute
jepio Aug 30, 2023
3a1db7a
runtime: clh: Support enabling iommu
jepio Aug 30, 2023
1b02f89
packaging: kernel: Enable VIRTIO_IOMMU on x86_64
jepio Aug 30, 2023
7211c3d
gha: vfio: Set test timeout to 15m
jepio Sep 5, 2023
df3dc11
tests/vfio: Get rid of sync's
jepio Sep 5, 2023
faee59b
tests/vfio: Accept single device in vfio group for CLH
jepio Sep 7, 2023
9d93036
tests/vfio: Bump VM image to Fedora 38
jepio Sep 7, 2023
a96050a
tests: Apply timeout to 'ctr t kill'
jepio Sep 8, 2023
b54dd8c
Merge pull request #7704 from jepio/vfio-part-1
jepio Sep 14, 2023
df5cd10
metrics: Add iperf value for cpu utilization
GabyCT Sep 13, 2023
cd4fd12
metrics: Add iperf cpu utilization limit for qemu
GabyCT Sep 13, 2023
6bd15a8
ci: cache: Export env vars needed to use ORAS
fidencio Sep 14, 2023
2e8b41f
Merge pull request #7954 from fidencio/topic/ci-cache-using-oras-part-0
fidencio Sep 14, 2023
c7a851e
ci: cache: Pass the exposed env vars to the kata-deploy binaries in d…
fidencio Sep 14, 2023
adc18ec
ci: cache: For consistency, read all used env vars
fidencio Sep 14, 2023
faf98c0
ci: Reduce the size of the AKS VMs
fidencio Sep 14, 2023
92fff12
ci: k8s: Don't set cpu limit request for k8s-inotofy test
fidencio Sep 14, 2023
3284182
ci: cri-containerd: Use a smaller / cheaper VM instance
fidencio Sep 14, 2023
4db4169
ci: docker: Use a smaller / cheaper VM instance
fidencio Sep 14, 2023
e60d81f
ci: nerdctl: Use a smaller / cheaper VM instance
fidencio Sep 14, 2023
1daf02f
ci: nydus: Use a smaller / cheaper VM instance
fidencio Sep 14, 2023
fb24fb0
ci: k8s: devmapper: Use a smaller / cheaper VM instance
fidencio Sep 14, 2023
be2eb7b
ci: cache: Install ORAS in the kata-deploy binaries builder container
fidencio Sep 14, 2023
108f1b6
kata-deploy: Generate latest_{artefact,image_builder} files
fidencio Sep 14, 2023
d0c257b
ci: cache: Push cached artefacts to ghcr.io
fidencio Sep 14, 2023
6fe5cd3
Merge pull request #7937 from GabyCT/topic/iperfbandwidth
GabyCT Sep 14, 2023
094b6b2
ci: k8s: Temporarily disable tests that require a bigger VM instance
fidencio Sep 14, 2023
241c355
clh:arm64: use arm AMBA uart for hypervisor debug
jongwu Aug 31, 2023
7f5e77b
kernel: enable Arm pl011 support
jongwu Aug 31, 2023
1b8f3fa
Merge pull request #7957 from fidencio/topic/ci-cache-using-oras-part-1
stevenhorsman Sep 15, 2023
6f30d00
Merge pull request #7956 from fidencio/topic/ci-reduce-the-machine-si…
jepio Sep 15, 2023
eccc76d
ci: cache: Use the cached artefacts from ORAS
fidencio Sep 15, 2023
4533a7a
ci: cache: Also store the ${component} sha256sum
fidencio Sep 15, 2023
460988c
ci: cache: Remove the script used to cache artefacts on Jenkins
fidencio Sep 15, 2023
2fe0b49
Merge pull request #7959 from fidencio/topic/ci-run-on-smaller-garm-i…
fidencio Sep 15, 2023
f5e52d0
Merge pull request #7964 from fidencio/topic/ci-cache-using-oras-part-2
fidencio Sep 15, 2023
86c4107
ci: cache: Check the sha256sum of the component
fidencio Sep 15, 2023
eecd5bf
ci: cache: Fix ovmf-sev cache
fidencio Sep 15, 2023
79c494e
Merge pull request #7969 from fidencio/topic/ci-cache-using-oras-part-3
gkurz Sep 15, 2023
9049d31
runtime-rs: Add network support for cloud-hypervisor
amshinde Sep 15, 2023
c69a1e3
ci: Use variable size of VMs depending on the tests running
fidencio Sep 15, 2023
9c233bb
test: Add test to verify try_from for clh Netconfig
amshinde Sep 16, 2023
75c974c
ci: static-checks: Move kernel config check to its own job
fidencio Sep 15, 2023
11dff73
tests: Move functions from kata_arch script here
fidencio Sep 15, 2023
e64508c
tests: install_go: Remove tests repo dependency
fidencio Sep 15, 2023
6794d4c
tests: Move install_rust.sh from the tests repo
fidencio Sep 15, 2023
e2c61a1
ci: static-checks: Move vendor check to its own job
fidencio Sep 15, 2023
e125775
tests: install_rust: Also install clippy
fidencio Sep 15, 2023
ea19549
kata-ctl: Ensure GENERATED_CODE is a dep of `make check`
fidencio Sep 15, 2023
473ec87
kata-ctl: Add `kata-types` to the Cargo.lock file
fidencio Sep 15, 2023
bf888b9
ci: static-checks: Move "make check" to the new test matrix
fidencio Sep 15, 2023
1d32410
ci: install_libseccomp: Do not depend on the tests repo
fidencio Sep 15, 2023
ec826f3
agent: Ensure GENERATED_CODE is a dep of `make test`
fidencio Sep 15, 2023
46daddc
kata-ctl: Ensure GENERATED_CODE is a dep of `make test`
fidencio Sep 15, 2023
2bc3a61
kata-ctl: Use `loop` instead of `kvm` module in tests
fidencio Sep 16, 2023
08f2e5a
runtime-rs: Ensure static-checks-build is a dep of `make test`
fidencio Sep 15, 2023
4e963ce
ci: static-checks: Move "make test" to the new test matrix
fidencio Sep 15, 2023
509c309
ci: static-checks: Move "sudo make test" to the new test matrix
fidencio Sep 15, 2023
2c5ca2e
ci: static-checks: Run tests depending on KVM
fidencio Sep 15, 2023
8b1e9b0
ci: static-checks: Clean up static-checks job
fidencio Sep 15, 2023
6eedd9b
Merge pull request #7738 from Xuanqing-Shi/7732/handle-non-empty-endp…
bergwolf Sep 18, 2023
0e3bfac
Merge pull request #7976 from fidencio/topic/ci-static-checks-rework-…
fidencio Sep 18, 2023
cab46c9
Merge pull request #7973 from fidencio/topic/ci-use-bigger-machine-si…
gkurz Sep 18, 2023
1f16b66
runtime/qemu: Rework QMP/HMP support
gkurz Sep 7, 2023
dfa6af5
Merge pull request #7806 from jongwu/clh_serial
jepio Sep 18, 2023
72599f1
clh: arm: Use static_sandbox_resource_mgmt=true
fidencio Sep 18, 2023
b656378
tests: common: Add install_nydus()
fidencio Aug 16, 2023
56a14b3
tests: common: Add install_nydus_snapshotter()
fidencio Aug 16, 2023
a84efa3
tests: nydus: Adapt check to "clh" instead "cloud-hypervisor"
fidencio Aug 16, 2023
4290fd4
tests: nydus: Adapt "source ..." to GHA
fidencio Aug 16, 2023
376574a
tests: nydus: Decorate some calls with `sudo`
fidencio Aug 16, 2023
5ac3b76
tests: nydus: Add uid / namespace to the nydus container / sandbox
fidencio Aug 16, 2023
568439c
tests: nydus: Add timeout to the crictl calls
fidencio Aug 16, 2023
0ec00ad
gha: nydus: Get rid of nydus{,-snapshotter} install from nydus_test.sh
fidencio Aug 16, 2023
d2b3b67
gha: nydus: Actually install kata when `install-kata` is called
fidencio Aug 16, 2023
b3904a1
gha: nydus: Populate install_dependencies()
fidencio Aug 16, 2023
b73bde3
gha: nydus: Populate run()
fidencio Aug 16, 2023
c9a4e7e
versions: Bump nydus and nydus-snapshotter to its latest release
fidencio Sep 13, 2023
2f9c9e2
tests: nydus: Update nydus tests
Sep 14, 2023
f6df3d6
static-build: Fix arch error on nydus build
Sep 17, 2023
b8a8dfc
nydus: Use `kata-${KATA_HYPERVISOR}` instead of `kata`
fidencio Sep 18, 2023
aba36ab
nydus: Temporarily skip tests on dragonball
fidencio Sep 18, 2023
af59d4b
metrics: Enable parallel bandwidth iperf limit
GabyCT Sep 18, 2023
c3ee913
Merge pull request #7953 from gkurz/extra-monitor-socket
fidencio Sep 18, 2023
5f8e210
Merge pull request #7961 from ChengyuZhu6/update_nydus
fidencio Sep 18, 2023
44c7c08
versions: Bump virtiofsd to v1.8.0
skaegi Sep 18, 2023
9aa8d1c
metrics: Add parallel bandwidth limit for qemu
GabyCT Sep 18, 2023
84c0d59
Merge pull request #7985 from fidencio/topic/clh-use-static_sandbox_r…
fidencio Sep 19, 2023
68267a3
ci: Create clusters in individual resource groups
sprt Sep 18, 2023
d9ef135
ci: Add first letter of the K8S_TEST_HOST_TYPE to resource group name
sprt Sep 18, 2023
486fe14
ci: Properly set K8S_TEST_UNION
fidencio Sep 18, 2023
1829f5c
Merge pull request #7992 from skaegi/virtiofsd-1.8.0
fidencio Sep 19, 2023
09cc0ed
ci: Move deploy_k8s() to gha-run-k8s-common.sh
fidencio Sep 11, 2023
9e1fb8a
ci: kata-deploy: Export KUBERNETES env var
fidencio Sep 11, 2023
b12b9e1
ci: kata-deploy: Add placeholder for tests on GARM
fidencio Sep 11, 2023
6d5d844
Merge pull request #7983 from sprt/resource-group-naming
fidencio Sep 19, 2023
bf2cb02
ci: kata-deploy: Expland tests to run on k0s / rke2
fidencio Sep 11, 2023
0015257
ci: kata-deploy: Add deploy-k8s argument to gha-run.sh
fidencio Sep 11, 2023
eaf6164
ci: kata-deploy: Add the ability to deploy k0s
fidencio Sep 11, 2023
2c908b5
ci: kata-deploy: Add the ability to deploy rke2
fidencio Sep 11, 2023
f7fa7f6
ci: Enable kata-deploy tests for all the supported k8s flavours
fidencio Sep 11, 2023
5560e72
Merge pull request #7896 from fidencio/topic/ground-work-for-testing-…
fidencio Sep 19, 2023
604a9dd
protocol: remove gogoprotobuff tests
beraldoleal Sep 15, 2023
82ff2db
runtime: support kernel params including spaces
danmihai1 Sep 19, 2023
3a2c83d
ci: kata-deploy: Fix runner name
fidencio Sep 19, 2023
6111ef6
Merge pull request #7990 from GabyCT/topic/parallelbandwidth
GabyCT Sep 19, 2023
730ef51
deps: updating dependencies
beraldoleal Sep 15, 2023
31ef646
Merge pull request #8007 from fidencio/topic/ci-kata-deploy-fix-garm-…
fidencio Sep 19, 2023
54c0a47
ci: k8s: k0s: Allow passing parameters to the k0s installer
fidencio Sep 19, 2023
d7105cf
ci: k8s: Add a method to install CRI-O
fidencio Sep 19, 2023
03b82e8
ci: k8s: Add a CRI-O test
fidencio Sep 19, 2023
07a6e63
ci: k8s: rke2: Use sudo to call systemd
fidencio Sep 20, 2023
3a6510a
osbuild: Reduce guest components binary size with strip
arronwy Sep 20, 2023
c6a9e50
Merge pull request #8004 from microsoft/danmihai1/quoted-spaces
fidencio Sep 20, 2023
03554c7
Merge pull request #8006 from fidencio/topic/ci-test-with-crio-part-0
dborquez Sep 20, 2023
8c3c50c
ci: Actually enable the CRI-O tests
fidencio Sep 20, 2023
87a8616
gha: Install hunspell for static checks
GabyCT Sep 20, 2023
87e64a0
Merge pull request #7979 from beraldoleal/gogo-removal
wainersm Sep 21, 2023
21f6f9a
Merge pull request #8016 from fidencio/topic/ci-test-with-crio-part-1
fidencio Sep 21, 2023
28cbc3b
ci: rootfs-image build-asset is failing
portersrc Sep 21, 2023
0c95697
ci: Trigger payload-after-push on workflow_dispatch
fidencio Sep 21, 2023
dd27912
Merge pull request #8032 from fidencio/topic/ci-make-push-after-build…
fidencio Sep 21, 2023
2ca7815
clh: Direct IO support for block devices
alex-matei Aug 30, 2023
d507d18
fc: Add support for noflush cache option
alex-matei Sep 1, 2023
6776b55
metrics: Enable latency test in gha run script
GabyCT Sep 21, 2023
08bc8e4
metrics: Add latency benchmark for gha
GabyCT Sep 21, 2023
6de9f39
Merge pull request #8020 from GabyCT/topic/fixhunspell
dborquez Sep 21, 2023
28dd5ae
Merge pull request #7799 from UiPath/clh-directio-support
jepio Sep 21, 2023
13ca7d9
gha: Add pandoc as a dependency for static checks
GabyCT Sep 21, 2023
6f98fba
Merge pull request #6706 from guixiongwei/feat/thp
studychao Sep 22, 2023
a5338e8
Merge pull request #8030 from portersrc/8027-ci-rootfs-image-build-as…
jepio Sep 22, 2023
15425a2
local-build: Fix .docker ownership before build-payload
jepio Sep 22, 2023
9d190f2
Merge pull request #8042 from GabyCT/topic/pandoc
fidencio Sep 22, 2023
c5a5a0c
Merge pull request #8012 from arronwy/strip
fidencio Sep 22, 2023
9bb9a3e
Merge pull request #7966 from amshinde/runtime-rs-network-clh
amshinde Sep 22, 2023
3ef57b3
Merge pull request #8045 from jepio/fix-docker-ownership
GabyCT Sep 22, 2023
11cf0e2
Merge pull request #8038 from GabyCT/topic/latency
GabyCT Sep 22, 2023
28972f3
github: add support for building kata-static-tarball for ppc64le
Amulyam24 Sep 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/cargo-deny-composite-action/cargo-deny-generator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
#
# Copyright (c) 2022 Red Hat
#
# SPDX-License-Identifier: Apache-2.0
#

script_dir=$(dirname "$(readlink -f "$0")")
parent_dir=$(realpath "${script_dir}/../..")
cidir="${parent_dir}/ci"
source "${cidir}/lib.sh"

cargo_deny_file="${script_dir}/action.yaml"

cat cargo-deny-skeleton.yaml.in > "${cargo_deny_file}"

changed_files_status=$(run_get_pr_changed_file_details)
changed_files_status=$(echo "$changed_files_status" | grep "Cargo\.toml$" || true)
changed_files=$(echo "$changed_files_status" | awk '{print $NF}' || true)

if [ -z "$changed_files" ]; then
cat >> "${cargo_deny_file}" << EOF
- run: echo "No Cargo.toml files to check"
shell: bash
EOF
fi

for path in $changed_files
do
cat >> "${cargo_deny_file}" << EOF

- name: ${path}
continue-on-error: true
shell: bash
run: |
pushd $(dirname ${path})
cargo deny check
popd
EOF
done
30 changes: 30 additions & 0 deletions .github/cargo-deny-composite-action/cargo-deny-skeleton.yaml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Copyright (c) 2022 Red Hat
#
# SPDX-License-Identifier: Apache-2.0
#

name: 'Cargo Crates Check'
description: 'Checks every Cargo.toml file using cargo-deny'

env:
CARGO_TERM_COLOR: always

runs:
using: "composite"
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Install Cargo deny
shell: bash
run: |
which cargo
cargo install --locked cargo-deny || true
4 changes: 4 additions & 0 deletions .github/workflows/PR-wip-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- labeled
- unlabeled

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pr_wip_check:
runs-on: ubuntu-latest
Expand Down
104 changes: 104 additions & 0 deletions .github/workflows/add-backport-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Add backport label

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- labeled
- unlabeled

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check-issues:
if: ${{ github.event.label.name != 'auto-backport' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code to allow hub to communicate with the project
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
uses: actions/checkout@v3

- name: Install hub extension script
run: |
pushd $(mktemp -d) &>/dev/null
git clone --single-branch --depth 1 "https://github.com/kata-containers/.github" && cd .github/scripts
sudo install hub-util.sh /usr/local/bin
popd &>/dev/null

- name: Determine whether to add label
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTAINS_AUTO_BACKPORT: ${{ contains(github.event.pull_request.labels.*.name, 'auto-backport') }}
id: add_label
run: |
pr=${{ github.event.pull_request.number }}
linked_issue_urls=$(hub-util.sh \
list-issues-for-pr "$pr" |\
grep -v "^\#" |\
cut -d';' -f3 || true)
[ -z "$linked_issue_urls" ] && {
echo "::error::No linked issues for PR $pr"
exit 1
}
has_bug=false
for issue_url in $(echo "$linked_issue_urls")
do
issue=$(echo "$issue_url"| awk -F\/ '{print $NF}' || true)
[ -z "$issue" ] && {
echo "::error::Cannot determine issue number from $issue_url for PR $pr"
exit 1
}
labels=$(hub-util.sh list-labels-for-issue "$issue")

label_names=$(echo $labels | jq -r '.[].name' || true)
if [[ "$label_names" =~ "bug" ]]; then
has_bug=true
break
fi
done

has_backport_needed_label=${{ contains(github.event.pull_request.labels.*.name, 'needs-backport') }}
has_no_backport_needed_label=${{ contains(github.event.pull_request.labels.*.name, 'no-backport-needed') }}

echo "add_backport_label=false" >> $GITHUB_OUTPUT
if [ $has_backport_needed_label = true ] || [ $has_bug = true ]; then
if [[ $has_no_backport_needed_label = false ]]; then
echo "add_backport_label=true" >> $GITHUB_OUTPUT
fi
fi

# Do not spam comment, only if auto-backport label is going to be newly added.
echo "auto_backport_added=$CONTAINS_AUTO_BACKPORT" >> $GITHUB_OUTPUT

- name: Add comment
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && steps.add_label.outputs.add_backport_label == 'true' && steps.add_label.outputs.auto_backport_added == 'false' }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'This issue has been marked for auto-backporting. Add label(s) backport-to-BRANCHNAME to backport to them'
})

# Allow label to be removed by adding no-backport-needed label
- name: Remove auto-backport label
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && steps.add_label.outputs.add_backport_label == 'false' }}
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
remove-labels: "auto-backport"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Add auto-backport label
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') && steps.add_label.outputs.add_backport_label == 'true' }}
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
add-labels: "auto-backport"
repo-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/add-issues-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- opened
- reopened

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
add-new-issues-to-backlog:
runs-on: ubuntu-latest
Expand All @@ -35,7 +39,7 @@ jobs:
popd &>/dev/null

- name: Checkout code to allow hub to communicate with the project
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Add issue to issue backlog
env:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/add-pr-sizing-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,25 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
add-pr-size-label:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Rebase atop of the latest target branch
run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env:
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}

- name: Install PR sizing label script
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/auto-backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
pull_request_target:
types: ["labeled", "closed"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
backport:
name: Backport PR
runs-on: ubuntu-latest
if: |
github.event.pull_request.merged == true
&& contains(github.event.pull_request.labels.*.name, 'auto-backport')
&& (
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport')
|| (github.event.action == 'closed')
)
steps:
- name: Backport Action
uses: sqren/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-

- name: Info log
if: ${{ success() }}
run: cat /home/runner/.backport/backport.info.log

- name: Debug log
if: ${{ failure() }}
run: cat /home/runner/.backport/backport.debug.log
129 changes: 129 additions & 0 deletions .github/workflows/build-kata-static-tarball-amd64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
name: CI | Build kata-static tarball for amd64
on:
workflow_call:
inputs:
stage:
required: false
type: string
default: test
tarball-suffix:
required: false
type: string
push-to-registry:
required: false
type: string
default: no
commit-hash:
required: false
type: string
target-branch:
required: false
type: string
default: ""

jobs:
build-asset:
runs-on: ubuntu-latest
strategy:
matrix:
asset:
- cloud-hypervisor
- cloud-hypervisor-glibc
- firecracker
- kernel
- kernel-sev
- kernel-dragonball-experimental
- kernel-tdx-experimental
- kernel-nvidia-gpu
- kernel-nvidia-gpu-snp
- kernel-nvidia-gpu-tdx-experimental
- nydus
- ovmf
- ovmf-sev
- qemu
- qemu-snp-experimental
- qemu-tdx-experimental
- rootfs-image
- rootfs-image-tdx
- rootfs-initrd
- rootfs-initrd-mariner
- rootfs-initrd-sev
- shim-v2
- tdvf
- virtiofsd
stage:
- ${{ inputs.stage }}
exclude:
- asset: cloud-hypervisor-glibc
stage: release
steps:
- name: Login to Kata Containers quay.io
if: ${{ inputs.push-to-registry == 'yes' }}
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}

- uses: actions/checkout@v3
with:
ref: ${{ inputs.commit-hash }}
fetch-depth: 0 # This is needed in order to keep the commit ids history

- name: Rebase atop of the latest target branch
run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env:
TARGET_BRANCH: ${{ inputs.target-branch }}

- name: Build ${{ matrix.asset }}
run: |
make "${KATA_ASSET}-tarball"
build_dir=$(readlink -f build)
# store-artifact does not work with symlink
sudo cp -r "${build_dir}" "kata-build"
env:
KATA_ASSET: ${{ matrix.asset }}
TAR_OUTPUT: ${{ matrix.asset }}.tar.gz
PUSH_TO_REGISTRY: ${{ inputs.push-to-registry }}
ARTEFACT_REGISTRY: ghcr.io
ARTEFACT_REGISTRY_USERNAME: ${{ github.actor }}
ARTEFACT_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
TARGET_BRANCH: ${{ inputs.target-branch }}

- name: store-artifact ${{ matrix.asset }}
uses: actions/upload-artifact@v3
with:
name: kata-artifacts-amd64${{ inputs.tarball-suffix }}
path: kata-build/kata-static-${{ matrix.asset }}.tar.xz
retention-days: 1
if-no-files-found: error

create-kata-tarball:
runs-on: ubuntu-latest
needs: build-asset
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.commit-hash }}
fetch-depth: 0
- name: Rebase atop of the latest target branch
run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env:
TARGET_BRANCH: ${{ inputs.target-branch }}
- name: get-artifacts
uses: actions/download-artifact@v3
with:
name: kata-artifacts-amd64${{ inputs.tarball-suffix }}
path: kata-artifacts
- name: merge-artifacts
run: |
./tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh kata-artifacts versions.yaml
- name: store-artifacts
uses: actions/upload-artifact@v3
with:
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
path: kata-static.tar.xz
retention-days: 1
if-no-files-found: error
Loading