-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use one upload to script #499
base: master
Are you sure you want to change the base?
Changes from all commits
2b81517
5a62579
ab4ccaa
96ef366
04afca7
9605d02
758fa25
c43b326
6937887
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,16 +27,13 @@ params: | |
APK_DIR: "./apks" | ||
BASE_URL: "http://testdata.validation.linaro.org/apks/" | ||
# Specify url and token for publishing artifacts. | ||
ARTIFACTORIAL_URL: "https://archive.validation.linaro.org/artifacts/team/qa/" | ||
# For safety reasons, please set 'ARTIFACTORIAL_TOKEN' variable in job definition with | ||
# For safety reasons, please set 'ARTIFACTORIAL_TOKEN' or | ||
# 'SQUAD_ARCHIVE_SUBMIT_TOKEN' variable in job definition with | ||
# 'secrets' dictionary, and set job visibility to personal or group. | ||
# Refer to https://validation.linaro.org/static/docs/v2/publishing-artifacts.html | ||
ARTIFACTORIAL_TOKEN: "" | ||
# The SQUAD url to be used to upload the result and log files. | ||
# see https://squad.readthedocs.io/en/latest/intro.html#submitting-results. | ||
# SQUAD_ARCHIVE_SUBMIT_TOKEN is used for uploading authentication, | ||
# and must be defined by the submitter as one profile managed token | ||
SQUAD_UPLOAD_URL: "" | ||
UPLOAD_URL: "https://archive.validation.linaro.org/artifacts/team/qa/" | ||
|
||
run: | ||
steps: | ||
|
@@ -45,7 +42,7 @@ run: | |
# Upload test output to artifactorial. | ||
- cp "./output/${TEST_NAME}/result.txt" "./output/result.txt" | ||
- tar caf "output-${TEST_NAME}.tar.xz" "./output" | ||
- if [ -n "${SQUAD_UPLOAD_URL}" ]; then ../../utils/upload-to-squad.sh -a "output-${TEST_NAME}.tar.xz" -u "${SQUAD_UPLOAD_URL}"; fi | ||
- if [ -z "${SQUAD_UPLOAD_URL}" ]; then ../../utils/upload-to-artifactorial.sh -a "output-${TEST_NAME}.tar.xz" -u "${ARTIFACTORIAL_URL}" -t "${ARTIFACTORIAL_TOKEN}"; fi | ||
- if [ -n "${SQUAD_UPLOAD_URL}" ]; then UPLOAD_URL="${SQUAD_UPLOAD_URL}"; fi | ||
- ../../utils/upload-artifacts.sh -a "output-${TEST_NAME}.tar.xz" -u "${UPLOAD_URL}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to support my concern, there could be done like this:
And after like several weeks or a month, drop the SQUAD_UPLOAD_URL line when no SQUAD_UPLOAD_URL jobs will be run. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make sense, to keep it around for a while. Good catch. |
||
# Send test result to LAVA. | ||
- ../../utils/send-to-lava.sh "./output/result.txt" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
upload-to-artifactorial.sh |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is related to the interface change, it would be better to support all of them for a while and drop them after that period.
Like the current status, there are jobs using ARTIFACTORIAL_URL(old jobs not working at the moment) and SQUAD_UPLOAD_URL(work now), and then will submit jobs to support "UPLOAD_URL" if we have this PR merged right now, then the jobs with SQUAD_UPLOAD_URL will fail, and it needs to resubmit them again. if both SQUAD_UPLOAD_URL and UPLOAD_URL are supported here, then the current jobs will be able to run, and it's possible to submit new jobs with UPLOAD_URL as well. ARTIFACTORIAL_URL support will be the similar.