Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • eclipse/oniro-core/oniro
  • landgraf/oniro
  • zyga/oniro
  • mrybczyn/oniro
  • agherzan/oniro
  • pcoval/oniro
  • tony3oo3/oniro
  • stefanschmidt/oniro
  • waykovalenko/oniro
  • bero/oniro
  • esben/oniro
  • robertd/oniro
  • pidge/oniro
  • shettygururaj/oniro
  • thierrye/oniro
  • sradakovi/oniro
  • dricci783/oniro
  • ektor5/oniro
  • fldn/oniro
  • lucafavaretto/oniro
  • lucazizolfi/oniro
  • artemkondratiuk/oniro
  • lucaseri/oniro
  • gwozdzcfs/oniro
  • kristis/oniro
  • brgl/oniro
  • heurtemattes/oniro
  • idlethread/oniro
  • lquach/oniro
  • ghassaneben/oniro
  • heurtemattes/oniro-bitbake
  • kzarka/oniro
  • heurtemattes/oniro-migration
  • pastanki/oniro
  • malowe/oniro
  • chaseqi/oniro
  • mrfrank/oniro
37 results
Show changes
Commits on Source (3)
...@@ -210,7 +210,7 @@ publish-seco-intel-b68: ...@@ -210,7 +210,7 @@ publish-seco-intel-b68:
rules: rules:
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"' - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
## ##
## Submit jobs to LAVA ## Submit jobs to LAVA
...@@ -631,7 +631,7 @@ build-npm-cspell: ...@@ -631,7 +631,7 @@ build-npm-cspell:
.oe-selftest-rules: .oe-selftest-rules:
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $OE_SELFTEST == "gcc" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "weekly" && $OE_SELFTEST == "gcc"
oe-selftest-gcc-qemu-linux-user: oe-selftest-gcc-qemu-linux-user:
extends: [.oe-selftest, .oe-selftest-rules] extends: [.oe-selftest, .oe-selftest-rules]
...@@ -701,6 +701,7 @@ oe-selftest-report: ...@@ -701,6 +701,7 @@ oe-selftest-report:
python3 $CI_PROJECT_DIR/gcc-result-parser.py $sum_file python3 $CI_PROJECT_DIR/gcc-result-parser.py $sum_file
done done
# Upload result to squad. # Upload result to squad.
gcc_version="$(cat gcc_version)"
for result_file in $(ls result_*.json); do for result_file in $(ls result_*.json); do
component="$(basename $result_file .json | cut -d'_' -f2-)" component="$(basename $result_file .json | cut -d'_' -f2-)"
job_id="$job-$component" job_id="$job-$component"
...@@ -708,7 +709,7 @@ oe-selftest-report: ...@@ -708,7 +709,7 @@ oe-selftest-report:
--header "Auth-Token: $CI_SQUAD_TOKEN" \ --header "Auth-Token: $CI_SQUAD_TOKEN" \
https://squadp.svc.ostc-eu.dev/api/submit/oniro-core/gcc-test/$CI_PIPELINE_ID/$test_env \ https://squadp.svc.ostc-eu.dev/api/submit/oniro-core/gcc-test/$CI_PIPELINE_ID/$test_env \
--form tests=@$result_file \ --form tests=@$result_file \
--form metadata='{"job_id": "'$job_id'"}' --form "metadata={\"job_id\": \"$job_id\", \"gcc_version\": \"$gcc_version\"}"
done done
) )
done done
......
...@@ -436,6 +436,8 @@ ...@@ -436,6 +436,8 @@
paths: paths:
- docs/build - docs/build
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
# Build the docs when a merge request is created. # Build the docs when a merge request is created.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes: changes:
...@@ -485,6 +487,7 @@ ...@@ -485,6 +487,7 @@
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu" CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
CI_ONIRO_OE_SELFTESTS: "" CI_ONIRO_OE_SELFTESTS: ""
CI_ONIRO_OE_SEFLTEST_SKIPS: "" CI_ONIRO_OE_SEFLTEST_SKIPS: ""
CI_SQUAD_INSTANCE: "https://squadp.svc.ostc-eu.dev"
# The USER variable is required by oe-selftest but missing in env. # The USER variable is required by oe-selftest but missing in env.
USER: "builder" USER: "builder"
ARTIFACTS_DIR: "$CI_PROJECT_DIR/artifacts/$CI_JOB_NAME" ARTIFACTS_DIR: "$CI_PROJECT_DIR/artifacts/$CI_JOB_NAME"
...@@ -493,6 +496,19 @@ ...@@ -493,6 +496,19 @@
echo "nothing to test - CI_ONIRO_OE_SELFTESTS is empty" echo "nothing to test - CI_ONIRO_OE_SELFTESTS is empty"
&& exit 1 ) && exit 1 )
- !reference [.bitbake-workspace, script] - !reference [.bitbake-workspace, script]
# Only run tests when gcc version changed.
- gcc_version="$(bitbake -s | grep '^gcc-runtime' | awk -F':' '{print $NF}' | head -1 | awk '{$1=$1;print}')"
- echo "Current GCC version $gcc_version"
- last_build_id="$(curl --silent $CI_SQUAD_INSTANCE/api/projects/5/builds/ | jq -r '.results | .[] | .id' | head -1)"
- last_tested_gcc_version="$(curl --silent $CI_SQUAD_INSTANCE/api/builds/$last_build_id/metadata/ | jq -r '.gcc_version')"
- echo "The last tested GCC version $last_tested_gcc_version"
- |
if [ "$gcc_version" != "$last_tested_gcc_version" ]; then
echo "GCC verion changed, about to test the new version ..."
else
echo "GCC verion not changed, skipping gcc tests ..."
exit 0
fi
# oe-selftest inherits the current 'build/conf/local.conf' to create # oe-selftest inherits the current 'build/conf/local.conf' to create
# '../build-st/conf/local.conf' for qemu image building. Adding the # '../build-st/conf/local.conf' for qemu image building. Adding the
# MACHINE variable to the current local conf allows test job to customize # MACHINE variable to the current local conf allows test job to customize
...@@ -504,6 +520,7 @@ ...@@ -504,6 +520,7 @@
- find ../build-st \( -name "*.sum" -o -name "*.log" \) \( -path "*/gcc-runtime/*testsuite*" \) - find ../build-st \( -name "*.sum" -o -name "*.log" \) \( -path "*/gcc-runtime/*testsuite*" \)
-exec cp --verbose {} "$ARTIFACTS_DIR" \; -exec cp --verbose {} "$ARTIFACTS_DIR" \;
- for file in $(find "$ARTIFACTS_DIR" -type f); do xz $file; done - for file in $(find "$ARTIFACTS_DIR" -type f); do xz $file; done
- echo "$gcc_version" > $ARTIFACTS_DIR/gcc_version
- rm -rf ../build-st - rm -rf ../build-st
artifacts: artifacts:
paths: paths:
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
# Run the build when it is scheduled. # Run the build when it is scheduled.
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
# Do not run pipelines for draft merge requests unless manually triggered. # Do not run pipelines for draft merge requests unless manually triggered.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual when: manual
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
- if: '$CI_SQUAD_TOKEN == null' - if: '$CI_SQUAD_TOKEN == null'
when: never when: never
# Run the build when it is scheduled. # Run the build when it is scheduled.
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
when: manual when: manual
# Do not run pipelines for draft merge requests unless manually triggered. # Do not run pipelines for draft merge requests unless manually triggered.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
- lava-test.svg - lava-test.svg
rules: rules:
# Run the build when it is scheduled. # Run the build when it is scheduled.
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TYPE == "daily"
# Do not run pipelines for draft merge requests unless manually triggered. # Do not run pipelines for draft merge requests unless manually triggered.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual when: manual