Merge ~alextu/pc-enablement/+git/prepare-checkbox-sanity:lp1909974-conf-in-checkbox-remote into ~oem-solutions-engineers/pc-enablement/+git/prepare-checkbox-sanity:master

Proposed by Alex Tu
Status: Merged
Merged at revision: 8b0d51ba64b1ed8edf238b8d226017467c2d7172
Proposed branch: ~alextu/pc-enablement/+git/prepare-checkbox-sanity:lp1909974-conf-in-checkbox-remote
Merge into: ~oem-solutions-engineers/pc-enablement/+git/prepare-checkbox-sanity:master
Diff against target: 44 lines (+3/-7)
2 files modified
usr/lib/prepare-checkbox-sanity/fall-back-checkbox.conf (+0/-4)
usr/sbin/checkbox-run-plan (+3/-3)
Reviewer Review Type Date Requested Status
OEM Solutions Group: Engineers Pending
Review via email: mp+395691@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alex Tu (alextu) wrote :
Revision history for this message
Alex Tu (alextu) wrote :

ubuntu@CANONICALID:~$ checkbox-run-plan -s test
== you selected test ==
do you want to set the path of checkbox.conf? (refer to https://checkbox.readthedocs.io/en/latest/launcher-tutorial.html)
/usr/sbin/checkbox-run-plan: line 103: read: `(Y/N):': not a valid identifier
Keep the checkbox.conf as default from /etc/default/prepare-checkbox-sanity.conf
--2021-01-04 17:44:47-- http://maasbridge.cctu.space:3000/alextu/internal-db/raw/branch/master/checkbox.conf
Resolving maasbridge.cctu.space (maasbridge.cctu.space)... 192.168.101.221
Connecting to maasbridge.cctu.space (maasbridge.cctu.space)|192.168.101.221|:3000... failed: Connection timed out.
Retrying.

--2021-01-04 17:44:53-- (try: 2) http://maasbridge.cctu.space:3000/alextu/internal-db/raw/branch/master/checkbox.conf
Connecting to maasbridge.cctu.space (maasbridge.cctu.space)|192.168.101.221|:3000... failed: Connection timed out.
Retrying.

--2021-01-04 17:45:00-- (try: 3) http://maasbridge.cctu.space:3000/alextu/internal-db/raw/branch/master/checkbox.conf
Connecting to maasbridge.cctu.space (maasbridge.cctu.space)|192.168.101.221|:3000... failed: Connection timed out.
Giving up.

========= the checkbox launcher will be run =========
#!/usr/bin/env checkbox-cli
[launcher]
launcher_version = 1

[test plan]
unit = com.canonical.certification::test
forced = yes

[test selection]
forced = yes
exclude =

[ui]
type = silent

[daemon]
normal_user = ubuntu

[transport:example_local_file]
type = file
path = /tmp/c3-local-submission.tar.xz

[exporter:example_tar]
unit = com.canonical.plainbox::tar

[report:report_example_file]
transport = example_local_file
exporter = example_tar
forced = yes

[environment]
ROUTERS = multiple
TRANSFER_SERVER = cdimage.ubuntu.com
=====================================================

Revision history for this message
Alex Tu (alextu) wrote :

passed pipline testing and local testing.
According to jeremyszu not yet have time to review it.
So, I will merge it directly.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/usr/lib/prepare-checkbox-sanity/fall-back-checkbox.conf b/usr/lib/prepare-checkbox-sanity/fall-back-checkbox.conf
2index f705efa..c72feee 100644
3--- a/usr/lib/prepare-checkbox-sanity/fall-back-checkbox.conf
4+++ b/usr/lib/prepare-checkbox-sanity/fall-back-checkbox.conf
5@@ -1,8 +1,4 @@
6 #!/usr/bin/env checkbox-cli
7-[launcher]
8-launcher_version = 1
9-stock_reports = text, submission_files
10-
11 [transport:example_local_file]
12 type = file
13 path = /tmp/c3-local-submission.tar.xz
14diff --git a/usr/sbin/checkbox-run-plan b/usr/sbin/checkbox-run-plan
15index bf125cd..395004e 100755
16--- a/usr/sbin/checkbox-run-plan
17+++ b/usr/sbin/checkbox-run-plan
18@@ -128,6 +128,7 @@ if [ -z "${PLAN##pc*}" ]; then
19 done
20 fi
21
22+external_conf="$(cat $CHECKBOX_CONF| grep -v 'checkbox-cli')"
23 # prepare needed user environment
24 mkdir -p "$HOME"/.local/share/plainbox
25 ln -sf /usr/lib/prepare-checkbox-sanity/machine-manifest.json "$HOME"/.local/share/plainbox
26@@ -137,9 +138,6 @@ cat <<EOF > "$HOME/generated_launcher"
27 [launcher]
28 launcher_version = 1
29
30-[config]
31-config_filename = $CHECKBOX_CONF
32-
33 [test plan]
34 unit = com.canonical.certification::$PLAN
35 forced = yes
36@@ -153,6 +151,8 @@ type = silent
37
38 [daemon]
39 normal_user = $USER
40+
41+$external_conf
42 EOF
43 echo "========= the checkbox launcher will be run ========="
44 cat "$HOME/generated_launcher"

Subscribers

People subscribed via source and target branches