Skip to content

lkl tests: avoid variable test names in lklfuse.sh#636

Open
clingfei wants to merge 1 commit into
lkl:masterfrom
clingfei:fix
Open

lkl tests: avoid variable test names in lklfuse.sh#636
clingfei wants to merge 1 commit into
lkl:masterfrom
clingfei:fix

Conversation

@clingfei
Copy link
Copy Markdown

Same issue 8b61f60 ("lkl tests: avoid variable test names") fixed for disk.sh: lklfuse.sh passes the random mktemp paths $file/$dir/ $lock_file as arguments to lkl_test_run, which embeds them into the test name. The GitHub test reporter then sees 64 "removed" and 64 "added" tests on every CI run because the temp paths differ run to run. See #635 (comment).

Drop the random-path arguments from lkl_test_run calls and reference the outer-scope $file/$dir/$lock_file directly inside each function. $fstype stays as an argument since it is stable across runs.

Also update the commented-out stress-ng call so a future uncomment does not re-introduce the issue.

Same issue commit 8b61f60 ("lkl tests: avoid variable test names")
fixed for disk.sh: lklfuse.sh passes the random mktemp paths $file/$dir
/$lock_file as arguments to lkl_test_run, which embeds them into the test
name. The GitHub test reporter then sees 64 "removed" and 64 "added"
tests on every CI run because the temp paths differ run to run.
See lkl#635 (comment).

Drop the random-path arguments from lkl_test_run calls and reference
the outer-scope $file/$dir/$lock_file directly inside each function.
$fstype stays as an argument since it is stable across runs.

Also update the commented-out stress-ng call so a future uncomment
does not re-introduce the issue.

Signed-off-by: Cheng Lingfei <1599101385@qq.com>
@github-actions
Copy link
Copy Markdown

Test Results

106 files  ± 0  106 suites  ±0   7m 13s ⏱️ +16s
204 tests  - 48  193 ✅  - 48  11 💤 ±0  0 ❌ ±0 
821 runs  ± 0  765 ✅ ± 0  56 💤 ±0  0 ❌ ±0 

Results for commit 715196f. ± Comparison against base commit 0d3712a.

This pull request removes 64 and adds 16 tests. Note that renamed tests count towards both.
lklfuse btrfs ‑ lklfuse_basic /tmp/tmp.F4N0EPT13y
lklfuse btrfs ‑ lklfuse_basic /tmp/tmp.JPoQXJ6VlR
lklfuse btrfs ‑ lklfuse_basic /tmp/tmp.MMQLXAB78Y
lklfuse btrfs ‑ lklfuse_basic /tmp/tmp.WfHBsdtOyP
lklfuse btrfs ‑ lklfuse_lock_conflict /tmp/tmp.0iVKkQXcAt btrfs /tmp/tmp.0iVKkQXcAt
lklfuse btrfs ‑ lklfuse_lock_conflict /tmp/tmp.KweflCXt92 btrfs /tmp/tmp.KweflCXt92
lklfuse btrfs ‑ lklfuse_lock_conflict /tmp/tmp.qfhani4GZq btrfs /tmp/tmp.qfhani4GZq
lklfuse btrfs ‑ lklfuse_lock_conflict /tmp/tmp.wv1YYbfrdP btrfs /tmp/tmp.wv1YYbfrdP
lklfuse btrfs ‑ lklfuse_mount /tmp/tmp.0iVKkQXcAt /tmp/tmp.MMQLXAB78Y btrfs /tmp/tmp.0iVKkQXcAt
lklfuse btrfs ‑ lklfuse_mount /tmp/tmp.KweflCXt92 /tmp/tmp.JPoQXJ6VlR btrfs /tmp/tmp.KweflCXt92
…
lklfuse btrfs ‑ lklfuse_basic
lklfuse btrfs ‑ lklfuse_lock_conflict btrfs
lklfuse btrfs ‑ lklfuse_mount btrfs
lklfuse btrfs ‑ prepfs btrfs
lklfuse ext4 ‑ lklfuse_basic
lklfuse ext4 ‑ lklfuse_lock_conflict ext4
lklfuse ext4 ‑ lklfuse_mount ext4
lklfuse ext4 ‑ prepfs ext4
lklfuse vfat ‑ lklfuse_basic
lklfuse vfat ‑ lklfuse_lock_conflict vfat
…

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.

1 participant