diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 4cfd9b3..75d7131 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -19,5 +19,7 @@ jobs: with: name: Event File path: ${{ github.event_path }} + schema-check: + uses: ./.github/workflows/lava-sanity.yml nightly: uses: ./.github/workflows/build.yml diff --git a/lava/rb3g2/invalid.yaml b/lava/rb3g2/invalid.yaml new file mode 100644 index 0000000..7303153 --- /dev/null +++ b/lava/rb3g2/invalid.yaml @@ -0,0 +1,66 @@ +actions: +- deploy: + images: + image: + headers: + Authentication: Q_GITHUB_TOKEN + url: "https://quic-yocto-fileserver-1029608027416.us-central1.run.app/12591501185/qcs6490-rb3gen2-core-kit/core-image-base-qcs6490-rb3gen2-core-kit.rootfs.qcomflash.tar.gz" + postprocess: + docker: + image: ghcr.io/foundriesio/lava-lmp-sign:main + steps: + - export IMAGE_PATH=$PWD + - cp overlay*.tar.gz overlay.tar.gz + - echo "OVERLAY=overlay.tar.gz" >> $IMAGE_PATH/flash.settings + - echo "OVERLAY_PATH=/home/" >> $IMAGE_PATH/flash.settings + - echo "DEVICE_TYPE=qcs6490-rb3gen2" >> $IMAGE_PATH/flash.settings + - cat $IMAGE_PATH/flash.settings + timeout: + minutes: 5 + to: downloads +- deploy: + images: + image: + url: downloads://core-image-base-qcs6490-rb3gen2-core-kit.rootfs.qcomflash.tar.gz + settings: + url: downloads://flash.settings + overlay: + url: downloads://overlay.tar.gz + timeout: + minutes: 5 + to: flasher +- boot: + auto_login: + login_prompt: 'login:' + username: root + method: minimal + prompts: + - root@qcs6490-rb3gen2-core-kit + timeout: + minutes: 3 +- command: + name: network_turn_on +- test: + definitionssss: + - from: git + name: "{{ MACHINE }}-smoke-test" + path: automated/linux/smoke/smoke.yaml + repository: https://github.com/linaro/test-definitions.git + parameters: + SKIP_INSTALL: "True" + TESTS: "pwd, uname -a, ip a" +context: + lava_test_results_dir: /home/lava-%s + test_character_delay: 10 +device_type: qcs6490-rb3gen2-core-kit +job_name: boot test {{ ABC }} (qcs6490-rb3gen2-core-kit) 12591501185 +metadata: + downloads-url: "{{ DOWNLOADS_URL }}" +priority: 50 +tags: +- cambridge-lab +timeouts: + job: + minutes: 15 +visibility: public + diff --git a/schemacheck.py b/schemacheck.py index b8e5944..925c7d2 100644 --- a/schemacheck.py +++ b/schemacheck.py @@ -1,6 +1,7 @@ import os import sys import yaml +import voluptuous from lava_common.schemas import validate exitcode = 0 @@ -15,8 +16,15 @@ y = yaml.safe_load(f) f.close() validate(y) - except: + except voluptuous.Invalid as e1: print(f"{filename} is invalid") + print(e1.msg) + print(e1.path) + exitcode += 1 + except yaml.parser.ParserError as e2: + print(f"{filename} is invalid") + print(e2.problem) + print(e2.problem_mark) exitcode += 1 print(f"{filename} is valid") sys.exit(exitcode)