@@ -408,6 +408,70 @@ jobs:
408
408
path : objdir-clone/
409
409
# objdirs are big; don't hold on to them too long.
410
410
retention-days : 5
411
+ java_tests_linux :
412
+ name : Java Tests - Linux
413
+ timeout-minutes : 130
414
+
415
+ env :
416
+ TSAN_OPTIONS : " halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
417
+ JAVA_PATH : /usr/lib/jvm/java-8-openjdk-amd64
418
+
419
+ if : github.actor != 'restyled-io[bot]'
420
+ runs-on : ubuntu-latest
421
+
422
+ container :
423
+ image : connectedhomeip/chip-build:0.6.06
424
+ options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
425
+ net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
426
+
427
+ steps :
428
+ - name : Checkout
429
+ uses : actions/checkout@v2
430
+ - name : Checkout submodules
431
+ run : scripts/checkout_submodules.py --shallow --platform linux
432
+ - name : Try to ensure the directories for core dumping exist and we
433
+ can write them.
434
+ run : |
435
+ mkdir /tmp/cores || true
436
+ sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
437
+ mkdir objdir-clone || true
438
+ - name : Bootstrap
439
+ timeout-minutes : 10
440
+ run : scripts/build/gn_bootstrap.sh
441
+ - name : Uploading bootstrap logs
442
+ uses : actions/upload-artifact@v3
443
+ if : ${{ always() && !env.ACT }}
444
+ with :
445
+ name : bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
446
+ path : |
447
+ .environment/gn_out/.ninja_log
448
+ .environment/pigweed-venv/*.log
449
+ - name : Build Java Mattter Controller and all clusters app
450
+ timeout-minutes : 50
451
+ run : |
452
+ scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env'
453
+ ./scripts/run_in_build_env.sh \
454
+ "./scripts/build/build_examples.py \
455
+ --target linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test \
456
+ --target linux-x64-java-matter-controller \
457
+ build \
458
+ "
459
+ - name : Uploading core files
460
+ uses : actions/upload-artifact@v3
461
+ if : ${{ failure() && !env.ACT }}
462
+ with :
463
+ name : crash-core-linux-python-repl
464
+ path : /tmp/cores/
465
+ # Cores are big; don't hold on to them too long.
466
+ retention-days : 5
467
+ - name : Uploading objdir for debugging
468
+ uses : actions/upload-artifact@v3
469
+ if : ${{ failure() && !env.ACT }}
470
+ with :
471
+ name : crash-objdir-linux-python-repl
472
+ path : objdir-clone/
473
+ # objdirs are big; don't hold on to them too long.
474
+ retention-days : 5
411
475
412
476
repl_tests_darwin :
413
477
name : REPL Tests - Darwin
0 commit comments