Skip to content

CI cleanups#633

Open
tavip wants to merge 6 commits intolkl:masterfrom
tavip:ci-cleanups
Open

CI cleanups#633
tavip wants to merge 6 commits intolkl:masterfrom
tavip:ci-cleanups

Conversation

@tavip
Copy link
Copy Markdown
Member

@tavip tavip commented May 7, 2026

Add support for running the PCI VFIO test from github actions. With that we can now remove the x86_64, x86_64_qemu and mingw32 jobs from CircleCI since we now have test parity in github actions.

DMA_OPS was renamed to ARCH_HAS_DMA_OPS in Linux 6.12. This breaks DMA
and PCI support. We did not catch this issue because we were using an
older qemu in CI which did not route NVME requests through the iommu.

Signed-off-by: Octavian Purdila <tavip@google.com>
@tavip tavip marked this pull request as ready for review May 8, 2026 05:58
@tavip tavip requested review from ddiss and thehajime May 8, 2026 05:59
Copy link
Copy Markdown

@ddiss ddiss left a comment

Choose a reason for hiding this comment

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

looks good, thanks! a few minor comments (feel free to ignore).

Comment thread mm/kasan/kasan_test_c.c Outdated
Comment thread tools/lkl/tests/disk-vfio-pci.c
Comment thread tools/lkl/tests/disk-vfio-pci.sh Outdated
Comment thread tools/lkl/tests/test.c
char last;

printf(" log: |\n");
printf(" log: |1\n");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, this tells the yaml parser to expect 1 space. Otherwise, if the kernel log is overflow and the first line has multiple spaces, it will confuse the parser. See the commit description.

@tavip tavip force-pushed the ci-cleanups branch 2 times, most recently from 633c509 to 2bdaa6c Compare May 8, 2026 16:02
Instead of mounting a filesystem to test PCI VFIO just open the NVME
block device and read it.

Signed-off-by: Octavian Purdila <tavip@google.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Test Results

106 files   - 15  106 suites   - 15   7m 6s ⏱️ +20s
265 tests + 6  254 ✅ + 6  11 💤 ±0  0 ❌ ±0 
821 runs  + 6  765 ✅ + 6  56 💤 ±0  0 ❌ ±0 

Results for commit 860c7bd. ± Comparison against base commit 2550325.

This pull request removes 81 and adds 87 tests. Note that renamed tests count towards both.
disk btrfs ‑ cleanfs disk-8XLW
disk btrfs ‑ cleanfs disk-Nit4
disk btrfs ‑ cleanfs disk-YO49
disk btrfs ‑ cleanfs disk-jjQ2
disk ext4 ‑ cleanfs disk-1Ibl
disk ext4 ‑ cleanfs disk-5VbV
disk ext4 ‑ cleanfs disk-7Qr7
disk ext4 ‑ cleanfs disk-lkTM
disk vfat ‑ cleanfs disk-3YpC
disk vfat ‑ cleanfs disk-NpLC
…
disk btrfs ‑ cleanfs disk-ISCq
disk btrfs ‑ cleanfs disk-XLLb
disk btrfs ‑ cleanfs disk-knzs
disk btrfs ‑ cleanfs disk-qLMy
disk ext4 ‑ cleanfs disk-5fmP
disk ext4 ‑ cleanfs disk-HD6n
disk ext4 ‑ cleanfs disk-HR1n
disk ext4 ‑ cleanfs disk-ysAM
disk vfat ‑ cleanfs disk-0v1B
disk vfat ‑ cleanfs disk-4nnN
…

♻️ This comment has been updated with latest results.

tavip added 4 commits May 8, 2026 18:57
Add support for running qemu on github and run the PCI VFIO test. Also
add a couple of scripts to make it easier to run the test locally:

  ./tools/lkl/scripts/qemu-x86_64-make-images.sh
  . ./tools/lkl/scripts/qemu-x86_64-start-and-set-env.sh
  LKL_QEMU_TEST=1 make -C tools/lkl run-tests

Signed-off-by: Octavian Purdila <tavip@google.com>
To simplify CI management remove circleci jobs that already exists on
github.

Signed-off-by: Octavian Purdila <tavip@google.com>
Explicitly tell the yaml parser how many spaces to expect for
indentation. This avoids issues when the kernel buffer is truncated
(because it overflows) and the first line contains more spaces.

Signed-off-by: Octavian Purdila <tavip@google.com>
Otherwise host memcpy can be used and bypasses kasan
interceptors. Unclear why the tests are passing in CI most of the time
without this fix. They do fail reliably on my local environment.

Signed-off-by: Octavian Purdila <tavip@google.com>
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