Skip to content
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

Bug 1805070 - Update detekt to v1.22.0 in A-C #292

Merged
merged 6 commits into from
May 19, 2023

Merge branch 'main' into 1805070-update-detekt-in-ac

ea3fd8f
Select commit
Failed to load commit list.
Merged

Bug 1805070 - Update detekt to v1.22.0 in A-C #292

Merge branch 'main' into 1805070-update-detekt-in-ac
ea3fd8f
Select commit
Failed to load commit list.
firefoxci-taskcluster / external-gradle-dependencies-lib-jexl succeeded May 19, 2023 in 8m 39s

FirefoxCI (pull_request)

External Gradle dependencies toolchain task (Treeherder push)

Details

View task in Taskcluster
View logs in Taskcluster


[task 2023-05-19T00:33:20.364Z]     consequent = < 1 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < 3 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should parse math expression
[task 2023-05-19T00:33:20.364Z]     [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 42 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 23 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle whitespace in an expression
[task 2023-05-19T00:33:20.364Z]     [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 3 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should apply filters to identifiers
[task 2023-05-19T00:33:20.364Z]     < baz > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     from = [ . ] ( FILTER_EXPRESSION ) [ relative = true ]
[task 2023-05-19T00:33:20.364Z]     expression = [ == ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ . ] ( FILTER_EXPRESSION ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     expression = < 0 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     subject = < bar > ( IDENTIFIER ) [ relative = true ]
[task 2023-05-19T00:33:20.364Z]     right = < tek > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     subject = [ . ] ( FILTER_EXPRESSION ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     expression = < 1 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     subject = < foo > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should parse expression following operator precedence
[task 2023-05-19T00:33:20.364Z]     [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 5 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = [ * ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 7 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]     [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ * ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 5 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 7 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle a ternary expression
[task 2023-05-19T00:33:20.364Z]     < ? > ( CONDITIONAL_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     test = < foo > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     consequent = < 1 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < 0 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle encapsulation of subtree
[task 2023-05-19T00:33:20.364Z]     [ == ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = [ * ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 3 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 4 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = [ - ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ / ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 5 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 6 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 7 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should throw on incomplete expression
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should allow dot notation for all operands
[task 2023-05-19T00:33:20.364Z]     [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < length > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     from = < foo > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < foo > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     from = <Object> ( OBJECT_LITERAL )
[task 2023-05-19T00:33:20.364Z]     foo : < bar > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle nested, non-grouped ternary expressions
[task 2023-05-19T00:33:20.364Z]     < ? > ( CONDITIONAL_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     test = < foo > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     consequent = < ? > ( CONDITIONAL_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     test = < bar > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     consequent = < 1 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < 3 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle a unary operator
[task 2023-05-19T00:33:20.364Z]     [ - ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ * ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 1 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = [ ! ] ( UNARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     right = [ ! ] ( UNARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     right = < true > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle ternary expression with objects
[task 2023-05-19T00:33:20.364Z]     < ? > ( CONDITIONAL_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     test = < foo > ( IDENTIFIER ) [ relative = false ]
[task 2023-05-19T00:33:20.364Z]     consequent = <Object> ( OBJECT_LITERAL )
[task 2023-05-19T00:33:20.364Z]     bar : < tek > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     alternate = < baz > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: Should handle nested subexpressions
[task 2023-05-19T00:33:20.364Z]     [ / ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = [ * ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 4 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = [ + ] ( BINARY_EXPRESSION )
[task 2023-05-19T00:33:20.364Z]     left = < 2 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 3 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     right = < 5 > ( LITERAL )
[task 2023-05-19T00:33:20.364Z]     
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z] SUITE: mozilla.components.lib.jexl.value.JexlValueTest
[task 2023-05-19T00:33:20.364Z]   TEST: array arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: integer arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: object arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: double arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: string arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z]   TEST: boolean arithmetic
[task 2023-05-19T00:33:20.364Z]   SUCCESS
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z] 
[task 2023-05-19T00:33:20.364Z] > Task :lib-jexl:jacocoDebugTestReport SKIPPED
[task 2023-05-19T00:33:20.364Z] > Task :lib-jexl:jacocoReleaseTestReport SKIPPED
[task 2023-05-19T00:33:20.364Z] > Task :lib-jexl:test
[task 2023-05-19T00:33:27.161Z] > Task :lib-jexl:lintReportRelease
[task 2023-05-19T00:33:27.261Z] > Task :lib-jexl:lintRelease
[task 2023-05-19T00:33:27.261Z] 
[task 2023-05-19T00:33:27.261Z] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[task 2023-05-19T00:33:27.261Z] 
[task 2023-05-19T00:33:27.261Z] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[task 2023-05-19T00:33:27.261Z] 
[task 2023-05-19T00:33:27.261Z] See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
[task 2023-05-19T00:33:27.261Z] 
[task 2023-05-19T00:33:27.261Z] BUILD SUCCESSFUL in 37s
[task 2023-05-19T00:33:27.261Z] 128 actionable tasks: 91 executed, 26 from cache, 11 up-to-date
[task 2023-05-19T00:33:27.679Z] 
[task 2023-05-19T00:33:27.679Z] . "$REPO_ROOT_DIR/taskcluster/scripts/toolchain/external-gradle-dependencies/after.sh"
[task 2023-05-19T00:33:27.679Z] + . /builds/worker/checkouts/vcs/taskcluster/scripts/toolchain/external-gradle-dependencies/after.sh
[task 2023-05-19T00:33:27.679Z] #!/bin/bash
[task 2023-05-19T00:33:27.679Z] 
[task 2023-05-19T00:33:27.679Z] # This Source Code Form is subject to the terms of the Mozilla Public
[task 2023-05-19T00:33:27.679Z] # License, v. 2.0. If a copy of the MPL was not distributed with this
[task 2023-05-19T00:33:27.679Z] # file, You can obtain one at http://mozilla.org/MPL/2.0/.
[task 2023-05-19T00:33:27.679Z] 
[task 2023-05-19T00:33:27.679Z] # This is inspired by
[task 2023-05-19T00:33:27.679Z] # https://searchfox.org/mozilla-central/rev/2cd2d511c0d94a34fb7fa3b746f54170ee759e35/taskcluster/scripts/misc/android-gradle-dependencies/after.sh.
[task 2023-05-19T00:33:27.679Z] # gradle-plugins was removed because it's not used in this project.
[task 2023-05-19T00:33:27.679Z] 
[task 2023-05-19T00:33:27.679Z] set -x -e -v
[task 2023-05-19T00:33:27.679Z] ++ set -x -e -v
[task 2023-05-19T00:33:27.679Z] 
[task 2023-05-19T00:33:27.679Z] echo "running as $(id)"
[task 2023-05-19T00:33:27.679Z] +++ id
[task 2023-05-19T00:33:27.680Z] ++ echo 'running as uid=1000(worker) gid=1000(worker) groups=1000(worker)'
[task 2023-05-19T00:33:27.680Z] running as uid=1000(worker) gid=1000(worker) groups=1000(worker)
[task 2023-05-19T00:33:27.680Z] 
[task 2023-05-19T00:33:27.680Z] : WORKSPACE "${WORKSPACE:=/builds/worker/workspace}"
[task 2023-05-19T00:33:27.680Z] ++ : WORKSPACE /builds/worker/workspace
[task 2023-05-19T00:33:27.680Z] ARTIFACTS_TARGET_DIR='/builds/worker/artifacts'
[task 2023-05-19T00:33:27.680Z] ++ ARTIFACTS_TARGET_DIR=/builds/worker/artifacts
[task 2023-05-19T00:33:27.680Z] EXTERNAL_DEPS='external-gradle-dependencies'
[task 2023-05-19T00:33:27.680Z] ++ EXTERNAL_DEPS=external-gradle-dependencies
[task 2023-05-19T00:33:27.680Z] NEXUS_STORAGE_DIR="$NEXUS_WORK/storage"
[task 2023-05-19T00:33:27.680Z] ++ NEXUS_STORAGE_DIR=/builds/worker/workspace/nexus/storage
[task 2023-05-19T00:33:27.680Z] NEXUS_DIRS="$NEXUS_STORAGE_DIR/google $NEXUS_STORAGE_DIR/central"
[task 2023-05-19T00:33:27.680Z] ++ NEXUS_DIRS='/builds/worker/workspace/nexus/storage/google /builds/worker/workspace/nexus/storage/central'
[task 2023-05-19T00:33:27.680Z] BAD_DOWNLOADS_FILE="$WORKSPACE/bad_downloads.txt"
[task 2023-05-19T00:33:27.681Z] ++ BAD_DOWNLOADS_FILE=/builds/worker/workspace/bad_downloads.txt
[task 2023-05-19T00:33:27.681Z] BAD_DOWNLOADS_EXIT_CODE=17
[task 2023-05-19T00:33:27.681Z] ++ BAD_DOWNLOADS_EXIT_CODE=17
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] function _package_artifacts_downloaded_by_nexus() {
[task 2023-05-19T00:33:27.681Z]     pushd "$WORKSPACE"
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z]     mkdir -p "$WORKSPACE/$EXTERNAL_DEPS" "$ARTIFACTS_TARGET_DIR"
[task 2023-05-19T00:33:27.681Z]     for nexus_dir in $NEXUS_DIRS; do
[task 2023-05-19T00:33:27.681Z]         cp -R "$nexus_dir" "$EXTERNAL_DEPS"
[task 2023-05-19T00:33:27.681Z]     done
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z]     tar cf - "$EXTERNAL_DEPS" | xz > "$ARTIFACTS_TARGET_DIR/$EXTERNAL_DEPS.tar.xz"
[task 2023-05-19T00:33:27.681Z]     popd
[task 2023-05-19T00:33:27.681Z] }
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] function _ensure_artifacts_are_sane() {
[task 2023-05-19T00:33:27.681Z]     # Let's find empty files or unfinished downloads
[task 2023-05-19T00:33:27.681Z]     find "$WORKSPACE/$EXTERNAL_DEPS" -size 0 -o -name '*.part' > "$BAD_DOWNLOADS_FILE"
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z]     if [ -s "$BAD_DOWNLOADS_FILE" ]; then
[task 2023-05-19T00:33:27.681Z]         echo "ERROR: Some artifacts were not correctly downloaded! Please look at:"
[task 2023-05-19T00:33:27.681Z]         cat "$BAD_DOWNLOADS_FILE"
[task 2023-05-19T00:33:27.681Z]         exit $BAD_DOWNLOADS_EXIT_CODE
[task 2023-05-19T00:33:27.681Z]     fi
[task 2023-05-19T00:33:27.681Z] }
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] 
[task 2023-05-19T00:33:27.681Z] _package_artifacts_downloaded_by_nexus
[task 2023-05-19T00:33:27.681Z] ++ _package_artifacts_downloaded_by_nexus
[task 2023-05-19T00:33:27.681Z] ++ pushd /builds/worker/workspace
[task 2023-05-19T00:33:27.681Z] ~/workspace ~/checkouts/vcs/android-components ~/checkouts
[task 2023-05-19T00:33:27.681Z] ++ mkdir -p /builds/worker/workspace/external-gradle-dependencies /builds/worker/artifacts
[task 2023-05-19T00:33:27.682Z] ++ for nexus_dir in $NEXUS_DIRS
[task 2023-05-19T00:33:27.682Z] ++ cp -R /builds/worker/workspace/nexus/storage/google external-gradle-dependencies
[task 2023-05-19T00:33:27.794Z] ++ for nexus_dir in $NEXUS_DIRS
[task 2023-05-19T00:33:27.794Z] ++ cp -R /builds/worker/workspace/nexus/storage/central external-gradle-dependencies
[task 2023-05-19T00:33:27.963Z] ++ tar cf - external-gradle-dependencies
[task 2023-05-19T00:33:27.963Z] ++ xz
[task 2023-05-19T00:35:32.091Z] ++ popd
[task 2023-05-19T00:35:32.091Z] ~/checkouts/vcs/android-components ~/checkouts
[task 2023-05-19T00:35:32.091Z] _ensure_artifacts_are_sane
[task 2023-05-19T00:35:32.091Z] ++ _ensure_artifacts_are_sane
[task 2023-05-19T00:35:32.091Z] ++ find /builds/worker/workspace/external-gradle-dependencies -size 0 -o -name '*.part'
[task 2023-05-19T00:35:32.110Z] ++ '[' -s /builds/worker/workspace/bad_downloads.txt ']'
[task 2023-05-19T00:35:32.110Z] 
[task 2023-05-19T00:35:32.110Z] popd
[task 2023-05-19T00:35:32.110Z] + popd
[task 2023-05-19T00:35:32.110Z] ~/checkouts
[fetches 2023-05-19T00:35:32.110Z] removing /builds/worker/fetches
[fetches 2023-05-19T00:35:32.799Z] finished
[taskcluster 2023-05-19 00:35:33.355Z] === Task Finished ===
[taskcluster 2023-05-19 00:35:41.946Z] Successful task run with exit code: 0 completed in 406.6 seconds