seL4 / camkes

Component Architecture test suite and example apps.
https://docs.sel4.systems/CAmkES/
Other
27 stars 37 forks source link

Change to allow aarch64 rust builds #10

Closed ridale closed 4 years ago

ridale commented 4 years ago

Added target for aarch64 rust build, tested on imx8mq-evk

kent-mcleod commented 4 years ago

@ssrg-bamboo test

ssrg-bamboo commented 4 years ago

Hello, I'm a bot! I'll bring this PR into Trustworthy Systems and run some tests

ssrg-bamboo commented 4 years ago

Test results for commit 6d65f8e79f4014b9af0af07c4c87c8ad96bdce6e

Summary

Test name Result
Code Quality - Check licenses - camkes - EXT-ridale-ridale-rust-targets-10 SUCCESSFUL
Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 FAILED

Detailed failure logs

Project Stage Result summary
Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 Style check on changed files 2 of 3 jobs failed

Job: gitlint Build logs

13-Nov-2019 07:13:16    Build Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 - gitlint #1 (CQ-CAMKESSTYLE41-CAMKESGITLINTPR-1) started building on agent A local agent 2
13-Nov-2019 07:13:16    I run on the Bamboo server!
13-Nov-2019 07:13:16    Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR
13-Nov-2019 07:13:16    Executing build Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 - gitlint #1 (CQ-CAMKESSTYLE41-CAMKESGITLINTPR-1)
13-Nov-2019 07:13:16    Preparing artifact 'code' for use at /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR/. (location: .)
13-Nov-2019 07:13:16    Artifact 'code' prepared in 25.05 ms at /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR/./code.tar.gz
13-Nov-2019 07:13:16    Running pre-build action: VCS Version Collector
13-Nov-2019 07:13:16    Starting task 'Untar code' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:16    + tar xf code.tar.gz --recursive-unlink
13-Nov-2019 07:13:16    Finished task 'Untar code' with result: Success
13-Nov-2019 07:13:16    Starting task 'Set permissions so Bamboo can cleanup' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:16    + chmod -R o+rwx /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR
13-Nov-2019 07:13:16    Finished task 'Set permissions so Bamboo can cleanup' with result: Success
13-Nov-2019 07:13:16    Starting task 'Lint commit messages' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:16    + cd camkes
13-Nov-2019 07:13:16    + gitlint --commits master..6d65f8e79f4014b9af0af07c4c87c8ad96bdce6e --config /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR/seL4_tools/misc/.gitlint
13-Nov-2019 07:13:21    Commit 6d65f8e79f:
13-Nov-2019 07:13:21    1: T1 Title exceeds max length (51>50): "couldn't find a aarch32 target that works for sabre"
13-Nov-2019 07:13:21    3: B6 Body message is missing
13-Nov-2019 07:13:21    
13-Nov-2019 07:13:21    Commit 4c6cc2e8ce:
13-Nov-2019 07:13:21    3: B6 Body message is missing
13-Nov-2019 07:13:21    Failing task since return code of [/var/atlassian/application-data/bamboo/temp/CQ-CAMKESSTYLE41-CAMKESGITLINTPR-1-ScriptBuildTask-4372789165843008709.sh] was 3 while expected 0
13-Nov-2019 07:13:21    Finished task 'Lint commit messages' with result: Failed
13-Nov-2019 07:13:21    Starting task 'Set permissions so Bamboo can cleanup' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:21    + chmod -R o+rwx /var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR
13-Nov-2019 07:13:21    Finished task 'Set permissions so Bamboo can cleanup' with result: Success
13-Nov-2019 07:13:21    Running post build plugin 'NCover Results Collector'
13-Nov-2019 07:13:21    Running post build plugin 'Artifact Copier'
13-Nov-2019 07:13:21    Running post build plugin 'npm Cache Cleanup'
13-Nov-2019 07:13:21    Running post build plugin 'Clover Results Collector'
13-Nov-2019 07:13:21    Running post build plugin 'Docker Container Cleanup'
13-Nov-2019 07:13:21    Successfully removed working directory at '/var/atlassian/application-data/bamboo/xml-data/build-dir/151224373/CQ-CAMKESSTYLE41-CAMKESGITLINTPR'
13-Nov-2019 07:13:21    Finalising the build...
13-Nov-2019 07:13:21    Stopping timer.
13-Nov-2019 07:13:21    Build CQ-CAMKESSTYLE41-CAMKESGITLINTPR-1 completed.
13-Nov-2019 07:13:21    Running on server: post build plugin 'NCover Results Collector'
13-Nov-2019 07:13:21    Running on server: post build plugin 'Build Hanging Detection Configuration'
13-Nov-2019 07:13:21    Running on server: post build plugin 'Clover Delta Calculator'
13-Nov-2019 07:13:21    Running on server: post build plugin 'Maven Dependencies Postprocessor'
13-Nov-2019 07:13:21    All post build plugins have finished
13-Nov-2019 07:13:21    Generating build results summary...
13-Nov-2019 07:13:21    Saving build results to disk...
13-Nov-2019 07:13:21    Logging substituted variables...
13-Nov-2019 07:13:21    Indexing build results...
13-Nov-2019 07:13:21    Finished building CQ-CAMKESSTYLE41-CAMKESGITLINTPR-1.

Job: style Build logs

13-Nov-2019 07:13:17    Build Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 - style #1 (CQ-CAMKESSTYLE41-CAMKESSTYLEPR-1) started building on agent A local agent 1
13-Nov-2019 07:13:17    I run on the Bamboo server!
13-Nov-2019 07:13:17    Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR
13-Nov-2019 07:13:17    Executing build Code Quality - Style - camkes - EXT-ridale-ridale-rust-targets-10 - style #1 (CQ-CAMKESSTYLE41-CAMKESSTYLEPR-1)
13-Nov-2019 07:13:17    Preparing artifact 'code' for use at /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR/. (location: .)
13-Nov-2019 07:13:17    Artifact 'code' prepared in 23.02 ms at /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR/./code.tar.gz
13-Nov-2019 07:13:17    Running pre-build action: VCS Version Collector
13-Nov-2019 07:13:17    Starting task 'Untar code' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:17    + tar xf code.tar.gz --recursive-unlink
13-Nov-2019 07:13:17    Finished task 'Untar code' with result: Success
13-Nov-2019 07:13:17    Starting task 'Set permissions so Bamboo can cleanup' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:17    + chmod -R o+rwx /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR
13-Nov-2019 07:13:17    Finished task 'Set permissions so Bamboo can cleanup' with result: Success
13-Nov-2019 07:13:17    Starting task 'Check style of changed files' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:17    + cd camkes
13-Nov-2019 07:13:17    + xargs -d '\n' /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR/seL4_tools/misc/style.sh
13-Nov-2019 07:13:17    ++ git merge-base 6d65f8e79f4014b9af0af07c4c87c8ad96bdce6e master
13-Nov-2019 07:13:17    + git diff --name-only 6d65f8e79f4014b9af0af07c4c87c8ad96bdce6e 0cdc48bce7e9ee0edb1823ee2279ae97661e5860
13-Nov-2019 07:13:19    + git diff --exit-code
13-Nov-2019 07:13:19    diff --git a/apps/hellorust/CMakeLists.txt b/apps/hellorust/CMakeLists.txt
13-Nov-2019 07:13:19    index 26aec23..5144cc5 100644
13-Nov-2019 07:13:19    --- a/apps/hellorust/CMakeLists.txt
13-Nov-2019 07:13:19    +++ b/apps/hellorust/CMakeLists.txt
13-Nov-2019 07:13:19    @@ -16,7 +16,7 @@ project(hellorust C)
13-Nov-2019 07:13:19     
13-Nov-2019 07:13:19     include(rust)
13-Nov-2019 07:13:19     
13-Nov-2019 07:13:19    -if ("${KernelSel4Arch}" STREQUAL "x86_64")
13-Nov-2019 07:13:19    +if("${KernelSel4Arch}" STREQUAL "x86_64")
13-Nov-2019 07:13:19         set(RUST_ARCH "x86_64-sel4-none")
13-Nov-2019 07:13:19     elseif("${KernelSel4Arch}" STREQUAL "aarch64")
13-Nov-2019 07:13:19         set(RUST_ARCH "aarch64-sel4-none")
13-Nov-2019 07:13:19    Failing task since return code of [/var/atlassian/application-data/bamboo/temp/CQ-CAMKESSTYLE41-CAMKESSTYLEPR-1-ScriptBuildTask-5430549275118875319.sh] was 1 while expected 0
13-Nov-2019 07:13:19    Finished task 'Check style of changed files' with result: Failed
13-Nov-2019 07:13:19    Starting task 'Set permissions so Bamboo can cleanup' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:19    + chmod -R o+rwx /var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR
13-Nov-2019 07:13:19    Finished task 'Set permissions so Bamboo can cleanup' with result: Success
13-Nov-2019 07:13:19    Starting task 'Run astyle code insights' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
13-Nov-2019 07:13:19    + cd camkes
13-Nov-2019 07:13:19    ++ echo ssh://git@bitbucket.ts.data61.csiro.au:7999/sel4/camkes.git
13-Nov-2019 07:13:19    ++ cut -d/ -f4
13-Nov-2019 07:13:19    + bb_proj=sel4
13-Nov-2019 07:13:19    + /scripts/bb_code_insights/create_code_insights.sh astyle sel4 camkes
13-Nov-2019 07:13:19    ++ dirname /scripts/bb_code_insights/create_code_insights.sh
13-Nov-2019 07:13:19    + SCRIPT_DIR=/scripts/bb_code_insights
13-Nov-2019 07:13:19    + BBS_URL=https://bitbucket.ts.data61.csiro.au
13-Nov-2019 07:13:19    + BBS_PROJECT=sel4
13-Nov-2019 07:13:19    + BBS_REPO=camkes
13-Nov-2019 07:13:19    + REPORT_TO_RUN=astyle
13-Nov-2019 07:13:19    ++ git rev-parse HEAD
13-Nov-2019 07:13:19    + COMMIT_ID=6d65f8e79f4014b9af0af07c4c87c8ad96bdce6e
13-Nov-2019 07:13:19    + REPORT_KEY=camkes.astyle.report
13-Nov-2019 07:13:19    + set +x
13-Nov-2019 07:13:19    + report_file=astyle_report.json
13-Nov-2019 07:13:19    + annotations_file=astyle_annotations.json
13-Nov-2019 07:13:19    + rm -f astyle_report.json astyle_annotations.json
13-Nov-2019 07:13:19    + /scripts/bb_code_insights/astyle
13-Nov-2019 07:13:21    Reporting on these files:  ['apps/hellorust/CMakeLists.txt']
13-Nov-2019 07:13:21    + set +x
13-Nov-2019 07:13:22    + '[' -f astyle_report.json ']'
13-Nov-2019 07:13:22    + cat astyle_report.json
13-Nov-2019 07:13:22    + '[' -f astyle_annotations.json ']'
13-Nov-2019 07:13:22    + cat astyle_annotations.json
13-Nov-2019 07:13:22    {"data":[{"title":"Total number of files with incorrect style","value":1},{"title":"Total number of lines with incorrect style","value":1}],"createdDate":1573589601896,"key":"camkes.astyle.report","title":"Code style"}{"title": "Code style", "data": [{"title": "Total number of files with incorrect style", "value": 1}, {"title": "Total number of lines with incorrect style", "value": 1}]}{"annotations": [{"path": "apps/hellorust/CMakeLists.txt", "line": 19, "message": "There are 1 line(s) of incorrect style here.", "severity": "HIGH"}]}
13-Nov-2019 07:13:22    Finished task 'Run astyle code insights' with result: Success
13-Nov-2019 07:13:22    Running post build plugin 'NCover Results Collector'
13-Nov-2019 07:13:22    Running post build plugin 'Artifact Copier'
13-Nov-2019 07:13:22    Running post build plugin 'npm Cache Cleanup'
13-Nov-2019 07:13:22    Running post build plugin 'Clover Results Collector'
13-Nov-2019 07:13:22    Running post build plugin 'Docker Container Cleanup'
13-Nov-2019 07:13:22    Successfully removed working directory at '/var/atlassian/application-data/bamboo/xml-data/build-dir/140083221/CQ-CAMKESSTYLE41-CAMKESSTYLEPR'
13-Nov-2019 07:13:22    Finalising the build...
13-Nov-2019 07:13:22    Stopping timer.
13-Nov-2019 07:13:22    Build CQ-CAMKESSTYLE41-CAMKESSTYLEPR-1 completed.
13-Nov-2019 07:13:22    Running on server: post build plugin 'NCover Results Collector'
13-Nov-2019 07:13:22    Running on server: post build plugin 'Build Hanging Detection Configuration'
13-Nov-2019 07:13:22    Running on server: post build plugin 'Clover Delta Calculator'
13-Nov-2019 07:13:22    Running on server: post build plugin 'Maven Dependencies Postprocessor'
13-Nov-2019 07:13:22    All post build plugins have finished
13-Nov-2019 07:13:22    Generating build results summary...
13-Nov-2019 07:13:22    Saving build results to disk...
13-Nov-2019 07:13:22    Logging substituted variables...
13-Nov-2019 07:13:22    Indexing build results...
13-Nov-2019 07:13:22    Finished building CQ-CAMKESSTYLE41-CAMKESSTYLEPR-1.

This is the most I can report on right now, sorry!