summaryrefslogtreecommitdiff
path: root/tsp/scripts
AgeCommit message (Collapse)AuthorFilesLines
2017-10-25Do not log execution times of jobs shorter than 8sAleksander Mistewicz1-1/+1
Change-Id: I924fa2f8b6c014fbd0d5d01039289699b38608f6
2017-09-27[TRE-1496] Rename selected Artik and RPi3 imagesAleksander Mistewicz1-0/+1
Relevant issue: https://bugs.tizen.org/browse/TRE-1496 Change-Id: Ied7838122d49afa47fe4dbb2f143689aa7a5c74e
2017-09-27Fix removal of files from MD5SUMSAleksander Mistewicz1-2/+7
Change-Id: I50c60113fcda7a1bd1fc11f188a891ef9f6a500a
2017-08-08Add finished job logging to PrometheusAleksander Mistewicz1-0/+31
Skip jobs which has sub 1s execution time as these jobs are of no interest to us. Change-Id: Ibd4fd6e33a53cb65bed0046979430cba2a85cdb2
2017-08-08Move free_diskspace to proper locationAleksander Mistewicz1-38/+0
Change-Id: Icb342b57a4366b1ad23f89999c5fc1a9e47c9321
2017-08-08Fix free_diskspace docs and removalAleksander Mistewicz1-2/+3
Change-Id: I60909d759f740a636589dc6cf02c7c3c345926c1
2017-08-08Add new images for RaspberryPi 3Aleksander Mistewicz1-0/+1
Change-Id: I2ca321b3d199f87230cc93d2dcf2002e0a2ff763
2017-08-08Add RaspberryPi 3 to TITSAleksander Mistewicz1-1/+9
Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I220f060a7186b047a2d55271beab1aafc4398863
2017-05-24Split odroid into tv-, ivi-, common- odroidAleksander Mistewicz2-2/+3
Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I0724b4b7529ff54e136441e7f9cdba7f5a471593
2017-03-29Workaround download_all missing md5sumAleksander Mistewicz1-9/+12
Change-Id: Iac3704084632658c5d0990fed43f3993a4b06a82
2017-03-29Do not try to test target if flash failedAleksander Mistewicz1-17/+28
Change-Id: If6566029affbbcba4013858cdbf7e2e9109a2f7b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-03-29Overall adjustmentsAleksander Mistewicz1-0/+2
Change-Id: I15b9f8b2b8044528a90ce1366fc4b314ed368622
2017-03-29Check if file is available before md5sums checkAleksander Mistewicz1-1/+8
It breaks requirement: download until image will be available. Disappearing images should be covered by crawler. Change-Id: I469795c1c7b0c550f73b7e3d546da93acba65b28 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-02-01Use HEAD request instead of GET for timestampsAleksander Mistewicz1-1/+1
Change-Id: I7112b0eebab7c1cb98819beaca5e562e0ed0079d Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-02-01Make results colorfulAleksander Mistewicz1-0/+10
Meaning of the colors in html results: * yellow - not modified in last 2h, but less than 6h and not in the final state * red - not modified for at least 6h and not in the final state Final state is one of OK, Unclear or Fail. Change-Id: Ie7a1bf4a391ff7db543a2b1d078e0dffb00057f0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-02-01Ignore missing MD5SUMS file, dispatch anywayAleksander Mistewicz1-1/+0
Change-Id: I59940944b11258d277ae00d8e51da5b8812b544d
2017-02-01Log failed devices in /var/tmp/failed_devices.logAleksander Mistewicz1-0/+2
Change-Id: I20378647806ac2fbf546823219d32034310516e9 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-02-01Publish results for Tizen 3.0 in separate fileAleksander Mistewicz1-4/+5
Use separate view for 3.0-common Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-schema.sql Change-Id: I092cd46f9b53f539e8be1ef3038c5eb01c001cf2 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Add --tizen3 argument to tsp/scripts/publish.pyAleksander Mistewicz1-2/+8
Change-Id: I7b2c8d9d10efcd82022f04d36b63619ac29ee99b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Remove obsolete tl-pwb mentionAleksander Mistewicz1-60/+0
Change-Id: Ied2057e664c665dc97aecd4cfc4727ef51725ec0
2017-01-16Add "--tree" argument to tsp/scripts/crawler.pyAleksander Mistewicz1-4/+17
Add tsp/tree.example Change-Id: Ic72e4e80812a56b18d606fc36e57096a84e205bd Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Add timestamp argument to tsp/scripts/crawler.pyAleksander Mistewicz1-2/+4
Change-Id: I9a1c51c024ea0b58b0e76b17e604743a30782065 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Make TITS profile independentAleksander Mistewicz2-16/+16
Overall TITS adjustments Change-Id: I8a9b1255a122efa50a8275a558c0bc01174ad4fa Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Make crawler universalAleksander Mistewicz1-14/+26
Directories, where MD5SUMS files should be, are now detected by crawl. If MD5SUMS file is missing prerelease will not be dispatched. If image directory is missing, prerelease will be dispatched. Change-Id: I98088af7073ba9a8708b084f6974cbea18d000cd Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Set request timeout in download_all.pyAleksander Mistewicz1-5/+5
Change-Id: I95d135eeac2e8a10f2352f6d626b250aa2ddd75e Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Add --map argument to tsp/scripts/download_all.pyAleksander Mistewicz1-6/+25
Add tsp/image_map.example Change-Id: Ic35154314076253696e20972835adb0e4d97a48b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-16Add tsp/scripts/download_all.pyAleksander Mistewicz1-0/+319
Change-Id: I7125d71ac3be8607a97a5aeecdf6bca83667f8fa Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-10Replace urllib2 with requests in crawler.pyAleksander Mistewicz1-22/+21
It uses urllib3 connection pooling what dramatically increases performance. Also changed link discovery to follow latest guide. Package "python-requests" is now required. Change-Id: Ide3e3c9dd290c2ce01137c00fa2f01cd29e35712 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-10Link screenshot only if in a set of screenshotableAleksander Mistewicz1-3/+4
Change-Id: Ica1f8f443bf02ed4a6e9719df4a20a20b10b2147 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-10Alternate row colors in html resultsAleksander Mistewicz1-4/+14
Change-Id: Ia95bc0578628bbd2da4eaee3c07b201983f326b4 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add artik target supportAleksander Mistewicz2-5/+17
Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I687cd0435ff0a9f5470a0cc5b9178e9b615ef44c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add mbr64 target supportAleksander Mistewicz2-1/+52
mbr64 is a minimal generic x86_64 image. Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I7f4e45b0da4afa06d662c3a6a378076a933a3130 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add "--dry-run" argument to download_image.pyAleksander Mistewicz1-2/+13
Images will not be downloaded and project.conf file not created. Change-Id: Ibb5682b8167f273cc0adb1616afce87ca55efe60 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Simplify tsp/scripts/download_image.py codeAleksander Mistewicz1-71/+61
It makes it easier to add support for new target devices. Change-Id: I082686f3a55453677094b7a2559802a1bd0481d7 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Fix set operation in tsp/scripts/download_image.pyAleksander Mistewicz1-2/+2
Change-Id: I6afb5259018f14238880fce2ce9d15f0cb8c543c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-09Add screenshots to tests on odroid imagesAleksander Mistewicz1-3/+11
Link to snapshot's screenshot is created and updated. It will be used for comparison, eventually. Change-Id: I16e70d1a1a746362ff7a43705ee722db608d930a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2017-01-03Link results only when availableAleksander Mistewicz1-1/+1
Change-Id: I20ef9afde0b1b27fe6c8b58b81f1eee3447a3e6c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Move "run" section to separate file for minnowAleksander Mistewicz1-0/+1
Change-Id: I56ed1b7142ea80397af7653131d7d89587a126e0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Move "run" section to separate file for odroidAleksander Mistewicz1-0/+1
Change-Id: Ia905a23c3975cde0cfadea484db39b1816c711e0 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add tsp/scripts/publish_cmp.pyAleksander Mistewicz1-0/+96
"Unclear" is printed in case: * number of tests run is different * prerelease's result is not 'PASS', but snapshot's is "OK" is printed otherwise. Change-Id: Ic01e7652808f62e5d3c63925d1ea4326a2eeef2c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add avocado to resultsAleksander Mistewicz1-4/+4
Change-Id: I9c2bf74874bc59f4bb10e2151cac02f70d5c89a1 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Remove unused variable FAIL_CNTAleksander Mistewicz1-1/+1
Change-Id: Ib257fd31f2d7e7988479e0e56d90a988d62a9418 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Add artik support to tsp/scripts/download_image.pyAleksander Mistewicz1-23/+44
Supported target configurations: * odroid, minnow32, minnow64 (unchanged) * headless-artik5, artik5, headless-artik10, artik10 (new) Change-Id: Idf46f15e633fab34ed8bd9de71934ac2fd3293b8 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06New version of tsp/scripts/download_image.pyAleksander Mistewicz1-85/+75
It breaks backward-compatibility with arguments and results. TSP scripts are adjusted. Supported target configurations (unchanged): odroid, minnow32, minnow64 Changes: * now uses target name for project-$target.conf and diff-$target.report * old arguments are replaced by one "-t TARGET" Change-Id: I0d503717c09073d72cb742fcc024247ec807896a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Fix issues reported by ShellCheck in tspAleksander Mistewicz5-22/+24
Move check_diff() to tsp/jobs/img_test_common.sh Add newline at the end of 'modifed_paths' in tsp/scripts/crawler.py so that whole lines instead of words can be read. ShellCheck: https://github.com/koalaman/shellcheck shellcheck -e SC1090,SC2155,SC2068,SC2145,SC2164 `find tsp -name "*.sh"` output should report following problems only: tsp/common.sh: SC2148, SC2034, SC2139 tsp/jobs/trigger_downloads.sh: SC2115 tsp/jobs/common_prep_flash_conf.sh: SC2029 tsp/jobs/publish.sh: SC2046, SC2029 Change-Id: I7791769a0d653c784715cdd1a8b1446fafcba1e9 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Check for ssh errors in common_prep_flash_conf.shAleksander Mistewicz1-1/+9
Change-Id: I3850233b5459d5d4bf075cdad37f94020ca7641c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-12-06Update tsp/scripts/free_diskspace.shAleksander Mistewicz1-4/+10
Only directories, modified at least 2 days ago, in WS_DOWNLOAD are processed. All non-snapshot directories are verbosely removed. Change-Id: Ibabb7d874e1e75453c8f348725b99346007e1908 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-11-08Add tsp/scripts/publish.pyAleksander Mistewicz1-0/+82
This script requires jinja2 templating library. Change-Id: Icd30ab726bc98a7e6556363c4a3bf8eccbdfa7a7 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-11-02Dump variable name and value to sysctl.result fileAleksander Mistewicz1-0/+3
tct/run/smoke_tests.sh produces some numerical output. This patch makes it easy to store and retreive values as in line below: awk -v KEY="${KEY}" '$1 == KEY {print $2}' $DICT where $KEY is variable name and $DICT is sysctl.result file. Change-Id: I3eee61152a189ad443fa641f5160f516567506f1 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2016-10-07Update md5sums logic in tsp/scripts/crawler.pyAleksander Mistewicz1-7/+13
If any of the md5sums_url is missing (http error code 404 was returned) from md5sums_urls list then it will be skipped and not dispatched. It saves http requests so that it won't timeout if the server is busy. For url to be added to dispatched_urls it must: * have every md5sums_url from md5sums_urls list available (no 404 error returned) * have any of the md5sums_urls modified since last timestamp Change-Id: Ie790f1039e91003b0da85c19d7db11ac160007da Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>