Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Merge branch 'main' into bug-1882404

firefoxci-taskcluster / lint-detekt-android-components succeeded Mar 14, 2024 in 5m 55s

FirefoxCI (pull_request)

Run detekt over all modules (Treeherder push)

Details

View task in Taskcluster
View logs in Taskcluster

Detekt Results Android-Components

(404 if compilation failed)


[taskcluster 2024-03-14 19:22:56.442Z] Task ID: NNiWq_GpS9W34pYO8HR0Hw
[taskcluster 2024-03-14 19:22:56.442Z] Worker ID: 4979897209989296303
[taskcluster 2024-03-14 19:22:56.442Z] Worker Group: us-central1
[taskcluster 2024-03-14 19:22:56.442Z] Worker Node Type: projects/887720501152/machineTypes/n2-standard-4
[taskcluster 2024-03-14 19:22:56.442Z] Worker Pool: mobile-1/b-linux-gcp
[taskcluster 2024-03-14 19:22:56.442Z] Worker Version: 38.0.5
[taskcluster 2024-03-14 19:22:56.442Z] Public IP: 34.42.248.69
[taskcluster 2024-03-14 19:22:56.442Z] Hostname: mobile-1-b-linux-gcp-eqa395fjrqafjnosj0x4xg

[taskcluster 2024-03-14 19:22:58.801Z] Downloading artifact "public/image.tar.zst" from task ID: Z9VHoD_CQdiql5d-ZW5fjg.
[taskcluster 2024-03-14 19:23:01.883Z] Downloaded artifact successfully.
[taskcluster 2024-03-14 19:23:01.884Z] Downloaded 393.321 mb
[taskcluster 2024-03-14 19:23:01.885Z] Decompressing downloaded image
[taskcluster 2024-03-14 19:23:04.940Z] Loading docker image from downloaded archive.
[taskcluster 2024-03-14 19:23:25.218Z] Image 'public/image.tar.zst' from task 'Z9VHoD_CQdiql5d-ZW5fjg' loaded.  Using image ID sha256:e47a60f7efceebf5ce8d806041ce000d40626292c962e5fd0c3d92cad20a1c38.
[taskcluster 2024-03-14 19:23:25.453Z] === Task Starting ===
[setup 2024-03-14T19:23:27.158Z] run-task started in /builds/worker
[setup 2024-03-14T19:23:27.158Z] Invoked by command: --mobile-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- bash -cx cd android-components && ./gradlew -PgoogleRepo=file:///builds/worker/fetches/external-gradle-dependencies/google -PcentralRepo=file:///builds/worker/fetches/external-gradle-dependencies/central listRepositories detekt githubLintDetektDetails
[setup 2024-03-14T19:23:27.158Z] Python version: 3.10.12
[volume 2024-03-14T19:23:27.160Z] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2024-03-14T19:23:27.161Z] changing ownership of volume /builds/worker/checkouts to 1000:1000
[setup 2024-03-14T19:23:27.161Z] running as worker:worker
[vcs 2024-03-14T19:23:27.161Z] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2024-03-14T19:23:27.163Z] executing ['git', 'clone', 'https://github.com/mozilla-mobile/firefox-android', '/builds/worker/checkouts/vcs']
[vcs 2024-03-14T19:23:27.165Z] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2024-03-14T19:23:48.280Z] executing ['git', 'fetch', '--no-tags', 'https://github.com/Amejia481/firefox-android', 'bug-1882404']
[vcs 2024-03-14T19:23:48.615Z] From https://github.com/Amejia481/firefox-android
[vcs 2024-03-14T19:23:48.615Z]  * branch                  bug-1882404 -> FETCH_HEAD
[vcs 2024-03-14T19:23:48.618Z] executing ['git', 'checkout', '-f', '-B', 'bug-1882404', '29e2288a3cce0bf7bd60d7f1fab63cc63746a234']
[vcs 2024-03-14T19:23:49.030Z] Switched to a new branch 'bug-1882404'
[vcs 2024-03-14T19:23:49.031Z] cleaning git checkout...
[vcs 2024-03-14T19:23:49.031Z] executing ['git', 'clean', '-nxdff']
[vcs 2024-03-14T19:23:49.119Z] removing []
[vcs 2024-03-14T19:23:49.119Z] successfully cleaned git checkout!
[vcs 2024-03-14T19:23:49.121Z] TinderboxPrint:<a href='https://github.com/Amejia481/firefox-android/commit/29e2288a3cce0bf7bd60d7f1fab63cc63746a234' title='Built from firefox-android commit 29e2288a3cce0bf7bd60d7f1fab63cc63746a234'>29e2288a3cce0bf7bd60d7f1fab63cc63746a234</a>
[setup 2024-03-14T19:23:49.121Z] MOZ_FETCHES_DIR is /builds/worker/fetches
[fetches 2024-03-14T19:23:49.121Z] fetching artifacts
[fetches 2024-03-14T19:23:49.121Z] executing ['/usr/bin/python3', '-u', '/usr/local/bin/fetch-content', 'task-artifacts']
attempt 1/5attempt 1/5
Downloading http://taskcluster/api/queue/v1/task/JzGafXX8SM2e-Rd5W4-gAQ/artifacts/mobile/android-sdk/android-sdk-linux.tar.xz to /builds/worker/fetches/android-sdk-linux.tar.xz

Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BASwHgXbRkuF5a3EX_7TgA/artifacts/public/build/external-gradle-dependencies.tar.xz to /builds/worker/fetches/external-gradle-dependencies.tar.xz
Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BASwHgXbRkuF5a3EX_7TgA/artifacts/public/build/external-gradle-dependencies.tar.xz
Downloading http://taskcluster/api/queue/v1/task/JzGafXX8SM2e-Rd5W4-gAQ/artifacts/mobile/android-sdk/android-sdk-linux.tar.xz
/usr/local/bin/fetch-content:192: DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom context instead.
  with urllib.request.urlopen(
http://taskcluster/api/queue/v1/task/JzGafXX8SM2e-Rd5W4-gAQ/artifacts/mobile/android-sdk/android-sdk-linux.tar.xz resolved to 129819888 bytes with sha256 4d8576fc19ce30bcc109daacf8181f8ee5d0587f46102097f9d4b4ede3f7459c in 1.875s
Extracting /builds/worker/fetches/android-sdk-linux.tar.xz to /builds/worker/fetches
https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BASwHgXbRkuF5a3EX_7TgA/artifacts/public/build/external-gradle-dependencies.tar.xz resolved to 644651304 bytes with sha256 1df16bb99cc793286bf97666b3dd76591763c3fb090222d404a8dffb3dec99ff in 7.906s
Extracting /builds/worker/fetches/external-gradle-dependencies.tar.xz to /builds/worker/fetches
/builds/worker/fetches/android-sdk-linux.tar.xz extracted in 11.102s
Removing /builds/worker/fetches/android-sdk-linux.tar.xz
/builds/worker/fetches/external-gradle-dependencies.tar.xz extracted in 35.359s
Removing /builds/worker/fetches/external-gradle-dependencies.tar.xz
PERFHERDER_DATA: {"framework": {"name": "build_metrics"}, "suites": [{"name": "fetch_content", "value": 43.32996770599999, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}]}
[fetches 2024-03-14T19:24:32.541Z] finished fetching artifacts
[task 2024-03-14T19:24:32.541Z] executing ['bash', '-cx', 'cd android-components && ./gradlew -PgoogleRepo=file:///builds/worker/fetches/external-gradle-dependencies/google -PcentralRepo=file:///builds/worker/fetches/external-gradle-dependencies/central listRepositories detekt githubLintDetektDetails']
[task 2024-03-14T19:24:32.542Z] + cd android-components
[task 2024-03-14T19:24:32.543Z] + ./gradlew -PgoogleRepo=file:///builds/worker/fetches/external-gradle-dependencies/google -PcentralRepo=file:///builds/worker/fetches/external-gradle-dependencies/central listRepositories detekt githubLintDetektDetails
[task 2024-03-14T19:24:32.627Z] Downloading https://services.gradle.org/distributions/gradle-8.6-bin.zip
[task 2024-03-14T19:24:34.441Z] ............10%.............20%............30%.............40%.............50%............60%.............70%.............80%............90%.............100%
[task 2024-03-14T19:24:35.813Z] 
[task 2024-03-14T19:24:35.813Z] Welcome to Gradle 8.6!
[task 2024-03-14T19:24:35.813Z] 
[task 2024-03-14T19:24:35.814Z] Here are the highlights of this release:
[task 2024-03-14T19:24:35.814Z]  - Configurable encryption key for configuration cache
[task 2024-03-14T19:24:35.814Z]  - Build init improvements
[task 2024-03-14T19:24:35.814Z]  - Build authoring improvements
[task 2024-03-14T19:24:35.814Z] 
[task 2024-03-14T19:24:35.814Z] For more details see https://docs.gradle.org/8.6/release-notes.html
[task 2024-03-14T19:24:35.814Z] 
[task 2024-03-14T19:24:35.912Z] To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.6/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
[task 2024-03-14T19:24:37.112Z] Daemon will be stopped at the end of the build 
[task 2024-03-14T19:24:37.512Z] Configuration on demand is an incubating feature.
[task 2024-03-14T19:25:07.815Z] > Task :dependencies:checkKotlinGradlePluginConfigurationErrors
[task 2024-03-14T19:25:15.013Z] > Task :dependencies:pluginDescriptors
[task 2024-03-14T19:25:15.112Z] > Task :dependencies:processResources
[task 2024-03-14T19:25:21.812Z] > Task :dependencies:compileKotlin
[task 2024-03-14T19:25:21.814Z] > Task :dependencies:compileJava NO-SOURCE
[task 2024-03-14T19:25:21.815Z] > Task :dependencies:classes
[task 2024-03-14T19:25:21.914Z] > Task :dependencies:jar
[task 2024-03-14T19:25:22.112Z] > Task :github:checkKotlinGradlePluginConfigurationErrors
[task 2024-03-14T19:25:25.012Z] > Task :github:pluginDescriptors
[task 2024-03-14T19:25:25.013Z] > Task :github:processResources
[task 2024-03-14T19:25:31.212Z] > Task :github:compileKotlin
[task 2024-03-14T19:25:31.212Z] > Task :github:compileJava NO-SOURCE
[task 2024-03-14T19:25:31.212Z] > Task :github:classes
[task 2024-03-14T19:25:31.212Z] > Task :github:jar
[task 2024-03-14T19:25:32.012Z] Local configuration: absent local.properties; proceeding as normal.
[task 2024-03-14T19:25:55.613Z] 
[task 2024-03-14T19:25:55.615Z] > Configure project :browser-engine-gecko
[task 2024-03-14T19:25:55.616Z] Requires glean_parser 13.0
[task 2024-03-14T19:25:55.617Z] [generate, --language, kotlin, --channel, debug, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/browser/engine-gecko/geckoview.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/browser/engine-gecko/build/generated/source/nimbus/debug/kotlin]
[task 2024-03-14T19:25:55.618Z] [generate, --language, kotlin, --channel, release, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/browser/engine-gecko/geckoview.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/browser/engine-gecko/build/generated/source/nimbus/release/kotlin]
[task 2024-03-14T19:26:04.012Z] 
[task 2024-03-14T19:26:04.013Z] > Configure project :feature-fxsuggest
[task 2024-03-14T19:26:04.013Z] [generate, --language, kotlin, --channel, debug, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/feature/fxsuggest/fxsuggest.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/feature/fxsuggest/build/generated/source/nimbus/debug/kotlin]
[task 2024-03-14T19:26:04.013Z] [generate, --language, kotlin, --channel, release, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/feature/fxsuggest/fxsuggest.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/feature/fxsuggest/build/generated/source/nimbus/release/kotlin]
[task 2024-03-14T19:26:10.312Z] 
[task 2024-03-14T19:26:10.312Z] > Configure project :lib-crash
[task 2024-03-14T19:26:10.312Z] Requires glean_parser 13.0
[task 2024-03-14T19:26:11.612Z] 
[task 2024-03-14T19:26:11.613Z] > Task :publicsuffixlist:checkKotlinGradlePluginConfigurationErrors
[task 2024-03-14T19:26:15.712Z] > Task :publicsuffixlist:pluginDescriptors
[task 2024-03-14T19:26:15.712Z] > Task :publicsuffixlist:processResources
[task 2024-03-14T19:26:18.412Z] > Task :publicsuffixlist:compileKotlin
[task 2024-03-14T19:26:18.412Z] > Task :publicsuffixlist:compileJava NO-SOURCE
[task 2024-03-14T19:26:18.413Z] > Task :publicsuffixlist:classes
[task 2024-03-14T19:26:18.413Z] > Task :publicsuffixlist:jar
[task 2024-03-14T19:26:20.712Z] 
[task 2024-03-14T19:26:20.712Z] > Configure project :samples-glean
[task 2024-03-14T19:26:20.712Z] Requires glean_parser 13.0
[task 2024-03-14T19:26:20.912Z] 
[task 2024-03-14T19:26:20.913Z] > Configure project :samples-glean-library
[task 2024-03-14T19:26:20.913Z] Requires glean_parser 13.0
[task 2024-03-14T19:26:22.612Z] 
[task 2024-03-14T19:26:22.612Z] > Configure project :service-nimbus
[task 2024-03-14T19:26:22.612Z] Requires glean_parser 13.0
[task 2024-03-14T19:26:22.612Z] [generate, --language, kotlin, --channel, debug, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/service/nimbus/messaging.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/service/nimbus/build/generated/source/nimbus/debug/kotlin]
[task 2024-03-14T19:26:22.612Z] [generate, --language, kotlin, --channel, release, --cache-dir, /builds/worker/checkouts/vcs/android-components/build/nimbus-cache, /builds/worker/checkouts/vcs/android-components/components/service/nimbus/messaging.fml.yaml, /builds/worker/checkouts/vcs/android-components/components/service/nimbus/build/generated/source/nimbus/release/kotlin]
[task 2024-03-14T19:26:27.012Z] HTML report location set on detekt {} extension will be ignored for detekt task. See https://detekt.dev/gradle.html#reports
[task 2024-03-14T19:26:27.413Z] 
[task 2024-03-14T19:26:27.414Z] > Task :listRepositories
[task 2024-03-14T19:26:27.415Z] Repositories:
[task 2024-03-14T19:26:27.416Z] Name: Google; url: file:/builds/worker/fetches/external-gradle-dependencies/google/
[task 2024-03-14T19:26:27.417Z] Name: MavenCentral; url: file:/builds/worker/fetches/external-gradle-dependencies/central/
[task 2024-03-14T19:26:27.418Z] Name: Mozilla; url: https://maven.mozilla.org/maven2
[task 2024-03-14T19:26:27.419Z] 
[task 2024-03-14T19:26:27.419Z] > Task :tooling-detekt:checkKotlinGradlePluginConfigurationErrors
[task 2024-03-14T19:26:36.413Z] > Task :tooling-detekt:processResources
[task 2024-03-14T19:26:36.413Z] > Task :githubLintDetektDetails
[task 2024-03-14T19:26:43.212Z] > Task :tooling-detekt:compileKotlin
[task 2024-03-14T19:26:43.212Z] > Task :tooling-detekt:compileJava NO-SOURCE
[task 2024-03-14T19:26:43.213Z] > Task :tooling-detekt:classes
[task 2024-03-14T19:26:43.213Z] > Task :tooling-detekt:jar
[task 2024-03-14T19:26:43.213Z] > Task :tooling-detekt:assemble
[task 2024-03-14T19:27:10.613Z] 
[task 2024-03-14T19:27:10.613Z] > Task :detekt
[task 2024-03-14T19:27:10.613Z] Complexity Report:
[task 2024-03-14T19:27:10.613Z] 	- 139,052 lines of code (loc)
[task 2024-03-14T19:27:10.613Z] 	- 88,687 source lines of code (sloc)
[task 2024-03-14T19:27:10.613Z] 	- 61,909 logical lines of code (lloc)
[task 2024-03-14T19:27:10.613Z] 	- 32,821 comment lines of code (cloc)
[task 2024-03-14T19:27:10.613Z] 	- 13,928 cyclomatic complexity (mcc)
[task 2024-03-14T19:27:10.613Z] 	- 6,570 cognitive complexity
[task 2024-03-14T19:27:10.613Z] 	- 0 number of total code smells
[task 2024-03-14T19:27:10.613Z] 	- 37% comment source ratio
[task 2024-03-14T19:27:10.613Z] 	- 224 mcc per 1,000 lloc
[task 2024-03-14T19:27:10.613Z] 	- 0 code smells per 1,000 lloc
[task 2024-03-14T19:27:10.613Z] 
[task 2024-03-14T19:27:10.613Z] Project Statistics:
[task 2024-03-14T19:27:10.613Z] 	- number of properties: 7329
[task 2024-03-14T19:27:10.613Z] 	- number of functions: 6577
[task 2024-03-14T19:27:10.613Z] 	- number of classes: 2607
[task 2024-03-14T19:27:10.613Z] 	- number of packages: 411
[task 2024-03-14T19:27:10.613Z] 	- number of kt files: 1224
[task 2024-03-14T19:27:10.613Z] 
[task 2024-03-14T19:27:10.613Z] Successfully generated SARIF: a standard format for the output of static analysis tools at file:///builds/worker/checkouts/vcs/android-components/build/reports/detekt/detekt.sarif
[task 2024-03-14T19:27:10.613Z] Successfully generated Checkstyle XML report at file:///builds/worker/checkouts/vcs/android-components/build/reports/detekt/detekt.xml
[task 2024-03-14T19:27:10.613Z] Successfully generated plain text report at file:///builds/worker/checkouts/vcs/android-components/build/reports/detekt/detekt.txt
[task 2024-03-14T19:27:10.615Z] Successfully generated HTML report at file:///builds/worker/checkouts/vcs/android-components/build/reports/detekt/detekt.html
[task 2024-03-14T19:27:10.615Z] Successfully generated Markdown report at file:///builds/worker/checkouts/vcs/android-components/build/reports/detekt/detekt.md
[task 2024-03-14T19:27:10.712Z] 
[task 2024-03-14T19:27:10.713Z] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[task 2024-03-14T19:27:10.713Z] 
[task 2024-03-14T19:27:10.713Z] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[task 2024-03-14T19:27:10.713Z] 
[task 2024-03-14T19:27:10.713Z] For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
[task 2024-03-14T19:27:10.713Z] 
[task 2024-03-14T19:27:10.713Z] BUILD SUCCESSFUL in 2m 38s
[task 2024-03-14T19:27:10.713Z] 22 actionable tasks: 22 executed
[fetches 2024-03-14T19:27:11.050Z] removing /builds/worker/fetches
[fetches 2024-03-14T19:27:11.484Z] finished
[taskcluster 2024-03-14 19:27:11.802Z] === Task Finished ===
[taskcluster 2024-03-14 19:27:12.808Z] Successful task run with exit code: 0 completed in 256.367 seconds