Skip to content

Commit f9afce5

Browse files
Include system error logs with KCL samples tests (#7904)
* Include system error logs with KCL samples tests * Update snapshots * Update snapshots * Add comment to indicate the purpose of the error message --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3e2518b commit f9afce5

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/cargo-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ jobs:
8686
run: |
8787
set -euo pipefail
8888
cd rust
89-
cargo nextest run --workspace --features artifact-graph --retries=10 --no-fail-fast --profile ci simulation_tests::kcl_samples 2>&1 | tee /tmp/github-actions.log
89+
cargo nextest run \
90+
--workspace --features=artifact-graph --retries=10 --no-fail-fast --profile=ci \
91+
simulation_tests::kcl_samples \
92+
2>&1 | tee /tmp/github-actions.log
9093
env:
9194
KITTYCAD_API_TOKEN: ${{secrets.KITTYCAD_API_TOKEN_DEV}}
9295
ZOO_HOST: https://api.dev.zoo.dev
@@ -175,7 +178,6 @@ jobs:
175178
shell: bash
176179
run: |-
177180
cp nextest-archive.tar.zst rust/nextest-archive.tar.zst
178-
ls -lah
179181
cd rust
180182
cargo nextest run \
181183
--retries=10 --no-fail-fast --profile=ci --archive-file nextest-archive.tar.zst \
@@ -229,7 +231,7 @@ jobs:
229231
run: |-
230232
cd rust/kcl-lib
231233
cargo nextest run \
232-
--retries=10 --no-fail-fast --features artifact-graph --profile=ci \
234+
--retries=10 --no-fail-fast --features=artifact-graph --profile=ci \
233235
internal \
234236
2>&1 | tee /tmp/github-actions.log
235237
env:

.github/workflows/kcl-language-server.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
cd rust/kcl-language-server
6262
npm run build
6363
npm run test-compile
64-
ls -la dist
6564
xvfb-run -a npm run test
6665
if: runner.os == 'Linux'
6766
- name: Run tests
@@ -317,7 +316,6 @@ jobs:
317316
#with:
318317
#name: release-aarch64-pc-windows-msvc
319318
#path: rust/build
320-
- run: ls -al ./rust/build
321319
- name: Publish Release
322320
uses: ./.github/actions/github-release
323321
with:
-61 Bytes
Loading

rust/.config/nextest.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,13 @@ test-group = "after-engine"
5353
[profile.default.junit]
5454
path = "../../../../test-results/junit.xml"
5555

56+
[[profile.default.overrides]]
57+
filter = 'test(kcl_samples)'
58+
junit.store-success-output = true
59+
5660
[profile.ci.junit]
5761
path = "../../../../test-results/junit.xml"
62+
63+
[[profile.ci.overrides]]
64+
filter = 'test(kcl_samples)'
65+
junit.store-success-output = true

rust/kcl-lib/src/simulation_tests/kcl_samples.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ async fn unparse_test(test: &Test) {
7575
#[kcl_directory_test_macro::test_all_dirs("../public/kcl-samples")]
7676
async fn kcl_test_execute(dir_name: &str, dir_path: &Path) {
7777
if DISABLED_SAMPLES.contains(&dir_name) {
78+
// NOTE: Do not remove this line. The error message is included in the
79+
// JUnit XML report for the Test Analysis Bot to post-process results
80+
// and determine whether the test should be marked as skipped.
7881
eprintln!("Skipping disabled sample: {}", dir_name);
7982
return;
8083
}

0 commit comments

Comments
 (0)