Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
66 changes: 66 additions & 0 deletions lava/rb3g2/invalid.yaml
Original file line number Diff line number Diff line change
@@ -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

10 changes: 9 additions & 1 deletion schemacheck.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import sys
import yaml
import voluptuous
from lava_common.schemas import validate

exitcode = 0
Expand All @@ -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)
Expand Down
Loading