Bug 1805070 - Update detekt to v1.22.0 in A-C #292
Merged
firefoxci-taskcluster / external-gradle-dependencies-browser-menu
succeeded
May 19, 2023 in 11m 51s
FirefoxCI (pull_request)
External Gradle dependencies toolchain task (Treeherder push)
Details
View task in Taskcluster
View logs in Taskcluster
[task 2023-05-19T00:34:59.931Z]
[task 2023-05-19T00:34:59.931Z] SUITE: mozilla.components.browser.menu.view.StickyItemsLinearLayoutManagerTest
[task 2023-05-19T00:34:59.931Z] TEST: GIVEN a SILLM WHEN is called with a new position and offset THEN they are cached in scrollPosition and scrollOffset properties
[task 2023-05-19T00:34:59.931Z] SUCCESS
[task 2023-05-19T00:34:59.931Z]
[task 2023-05-19T00:34:59.931Z] TEST: GIVEN sticky item is not null WHEN scrollToPositionWithOffset is called THEN scrollToIndicatedPositionWithOffset is delegated
[task 2023-05-19T00:35:00.131Z] SUCCESS
[task 2023-05-19T00:35:00.131Z]
[task 2023-05-19T00:35:00.131Z] TEST: GIVEN a SILLM WHEN onRestoreInstanceState is called with a null state THEN scrollPosition and scrollOffset are left unchanged
[task 2023-05-19T00:35:00.131Z] SUCCESS
[task 2023-05-19T00:35:00.131Z]
[task 2023-05-19T00:35:00.131Z] TEST: GIVEN a SILLM WHEN recycleStickyItem is called THEN the view holder is reset and allowed to be recycled
[task 2023-05-19T00:35:00.531Z] SUCCESS
[task 2023-05-19T00:35:00.531Z]
[task 2023-05-19T00:35:00.531Z] TEST: WHEN get is called for a reversed StickyItemPlacement#BOTTOM layout manager THEN a StickyFooterLinearLayoutManager is returned
[task 2023-05-19T00:35:00.531Z] SUCCESS
[task 2023-05-19T00:35:00.531Z]
[task 2023-05-19T00:35:00.531Z] TEST: GIVEN sticky item should be shown and it's view exists WHEN updateStickyItem is called THEN the stickyItemView gets set a new Y translation
[task 2023-05-19T00:35:00.531Z] SUCCESS
[task 2023-05-19T00:35:00.531Z]
[task 2023-05-19T00:35:00.531Z] TEST: GIVEN sticky item is not null WHEN scrollToPosition is called THEN it calls scrollToPositionWithOffset with INVALID_OFFSET
[task 2023-05-19T00:35:00.531Z] SUCCESS
[task 2023-05-19T00:35:00.531Z]
[task 2023-05-19T00:35:00.531Z] TEST: GIVEN no pending scroll WHEN bindStickyItem is called for a new View THEN no OnGlobalLayoutListener is set
[task 2023-05-19T00:35:00.731Z] SUCCESS
[task 2023-05-19T00:35:00.731Z]
[task 2023-05-19T00:35:00.731Z] TEST: GIVEN a SILLM WHEN setAdapter is called with a new valid adapter THEN the current adapter is reset
[task 2023-05-19T00:35:00.931Z] SUCCESS
[task 2023-05-19T00:35:00.931Z]
[task 2023-05-19T00:35:00.931Z] TEST: GIVEN a SILLM WHEN findLastVisibleItemPosition is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:00.931Z] SUCCESS
[task 2023-05-19T00:35:00.931Z]
[task 2023-05-19T00:35:00.931Z] TEST: GIVEN sticky item should be shown WHEN updateStickyItem is called while not layout THEN bindStickyItem is not called
[task 2023-05-19T00:35:00.931Z] SUCCESS
[task 2023-05-19T00:35:00.931Z]
[task 2023-05-19T00:35:00.931Z] TEST: GIVEN a SILLM WHEN findFirstVisibleItemPosition is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:00.931Z] SUCCESS
[task 2023-05-19T00:35:00.931Z]
[task 2023-05-19T00:35:00.931Z] TEST: GIVEN a SILLM WHEN onLayoutChildren is called while not in preLayout THEN it execute the super with the sticky item detached and updates stickyItem
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN a SILLM WHEN a new instance is contructed THEN it has specific default values
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN onItemRangeMoved is called THEN handleChange() is delegated
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: WHEN get is called for a not reversed StickyItemPlacement#TOP layout manager THEN a StickyHeaderLinearLayoutManager is returned
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN a SILLM WHEN getAdapterPositionForItemIndex is called with a index for which there is no bound view THEN it returns -1
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN onItemRangeRemoved is called THEN handleChange() is delegated
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN sticky item is null WHEN scrollToPosition is called THEN scrollToPositionWithOffset is not called
[task 2023-05-19T00:35:01.031Z] SUCCESS
[task 2023-05-19T00:35:01.031Z]
[task 2023-05-19T00:35:01.031Z] TEST: GIVEN sticky item should be shown and exists WHEN updateStickyItem is called THEN another stickyItemView is not created
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN a SILLM WHEN onLayoutChildren is called while in preLayout THEN it execute the super with the sticky item detached and not updates stickyItem
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN a pending scroll WHEN bindStickyItem is called for a new View THEN a OnGlobalLayoutListener is set
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN A SILLM WHEN scrollVerticallyBy is called THEN it detaches the sticky item to scroll using parent and not updates the sticky item
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: WHEN get is called for a not reversed StickyItemPlacement#BOTTOM layout manager THEN a StickyFooterLinearLayoutManager is returned
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN calculateNewStickyItemPosition is called for a bottom item the sticky position is last in adaptor
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN a SILLM WHEN setAdapter is called with a null argument THEN the current adapter and stickyItem are set to null
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN handleChange is called THEN the sticky item is updated
[task 2023-05-19T00:35:01.131Z] SUCCESS
[task 2023-05-19T00:35:01.131Z]
[task 2023-05-19T00:35:01.131Z] TEST: GIVEN a SILLM WHEN onAttachedToWindow called THEN it calls super and sets the new adapter
[task 2023-05-19T00:35:02.031Z] SUCCESS
[task 2023-05-19T00:35:02.031Z]
[task 2023-05-19T00:35:02.031Z] TEST: GIVEN sticky item is null WHEN onFocusSearchFailed is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.031Z] SUCCESS
[task 2023-05-19T00:35:02.031Z]
[task 2023-05-19T00:35:02.031Z] TEST: GIVEN a SILLM WHEN computeVerticalScrollExtent is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.031Z] SUCCESS
[task 2023-05-19T00:35:02.031Z]
[task 2023-05-19T00:35:02.031Z] TEST: GIVEN a SILLM WHEN getAdapterPositionForItemIndex is called with a index of an existing view THEN it returns it's absoluteAdapterPosition
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN onSaveInstanceState called THEN it returns a new SavedState with the scroll data
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN computeVerticalScrollRange is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN computeScrollVectorForPosition is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN findFirstCompletelyVisibleItemPosition is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN sticky item should not be shown WHEN updateStickyItem is called THEN the stickyItemView is recycled
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN restoreView is called with a method parameter THEN the sticky item is detached, method executed, item reattached
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN calculateNewStickyItemPosition is called for a top item the sticky position is first in adaptor
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN sticky item should be shown WHEN updateStickyItem is called while layout THEN bindStickyItem is called
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN onChanged is called THEN handleChange() is delegated
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN findLastCompletelyVisibleItemPosition is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN an ItemPositionsAdapterDataObserver WHEN onItemRangeInserted is called THEN handleChange() is delegated
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN bindStickyItem is called for a new View THEN the view is measured and layout
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN computeVerticalScrollOffset is called THEN it detaches the sticky item to call the super method
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: WHEN get is called for a reversed StickyItemPlacement#TOP layout manager THEN a StickyHeaderLinearLayoutManager is returned
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN sticky item should be shown and not exists WHEN updateStickyItem is called THEN a new stickyItemView is created
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN measureAndLayout is called for a new View THEN it is measured and layout
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN SILLM WHEN createStickyView is called THEN a new View is created and cached in stickyItemView
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.331Z] TEST: GIVEN a SILLM WHEN onRestoreInstanceState is called with a new state THEN it updates scrollPosition and scrollOffset
[task 2023-05-19T00:35:02.331Z] SUCCESS
[task 2023-05-19T00:35:02.331Z]
[task 2023-05-19T00:35:02.631Z]
[task 2023-05-19T00:35:02.631Z] > Task :browser-menu:jacocoDebugTestReport SKIPPED
[task 2023-05-19T00:35:02.631Z] > Task :browser-menu:jacocoReleaseTestReport SKIPPED
[task 2023-05-19T00:35:02.631Z] > Task :browser-menu:test
[task 2023-05-19T00:35:02.731Z]
[task 2023-05-19T00:35:02.731Z] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[task 2023-05-19T00:35:02.731Z]
[task 2023-05-19T00:35:02.731Z] 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:35:02.731Z]
[task 2023-05-19T00:35:02.731Z] See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
[task 2023-05-19T00:35:02.731Z]
[task 2023-05-19T00:35:02.731Z] BUILD SUCCESSFUL in 2m 21s
[task 2023-05-19T00:35:02.731Z] 864 actionable tasks: 525 executed, 189 from cache, 150 up-to-date
[task 2023-05-19T00:35:03.205Z]
[task 2023-05-19T00:35:03.205Z] . "$REPO_ROOT_DIR/taskcluster/scripts/toolchain/external-gradle-dependencies/after.sh"
[task 2023-05-19T00:35:03.205Z] + . /builds/worker/checkouts/vcs/taskcluster/scripts/toolchain/external-gradle-dependencies/after.sh
[task 2023-05-19T00:35:03.205Z] #!/bin/bash
[task 2023-05-19T00:35:03.205Z]
[task 2023-05-19T00:35:03.205Z] # This Source Code Form is subject to the terms of the Mozilla Public
[task 2023-05-19T00:35:03.205Z] # License, v. 2.0. If a copy of the MPL was not distributed with this
[task 2023-05-19T00:35:03.205Z] # file, You can obtain one at http://mozilla.org/MPL/2.0/.
[task 2023-05-19T00:35:03.205Z]
[task 2023-05-19T00:35:03.205Z] # This is inspired by
[task 2023-05-19T00:35:03.205Z] # https://searchfox.org/mozilla-central/rev/2cd2d511c0d94a34fb7fa3b746f54170ee759e35/taskcluster/scripts/misc/android-gradle-dependencies/after.sh.
[task 2023-05-19T00:35:03.205Z] # gradle-plugins was removed because it's not used in this project.
[task 2023-05-19T00:35:03.205Z]
[task 2023-05-19T00:35:03.205Z] set -x -e -v
[task 2023-05-19T00:35:03.205Z] ++ set -x -e -v
[task 2023-05-19T00:35:03.205Z]
[task 2023-05-19T00:35:03.205Z] echo "running as $(id)"
[task 2023-05-19T00:35:03.206Z] +++ id
[task 2023-05-19T00:35:03.207Z] ++ echo 'running as uid=1000(worker) gid=1000(worker) groups=1000(worker)'
[task 2023-05-19T00:35:03.207Z] running as uid=1000(worker) gid=1000(worker) groups=1000(worker)
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z] : WORKSPACE "${WORKSPACE:=/builds/worker/workspace}"
[task 2023-05-19T00:35:03.207Z] ++ : WORKSPACE /builds/worker/workspace
[task 2023-05-19T00:35:03.207Z] ARTIFACTS_TARGET_DIR='/builds/worker/artifacts'
[task 2023-05-19T00:35:03.207Z] ++ ARTIFACTS_TARGET_DIR=/builds/worker/artifacts
[task 2023-05-19T00:35:03.207Z] EXTERNAL_DEPS='external-gradle-dependencies'
[task 2023-05-19T00:35:03.207Z] ++ EXTERNAL_DEPS=external-gradle-dependencies
[task 2023-05-19T00:35:03.207Z] NEXUS_STORAGE_DIR="$NEXUS_WORK/storage"
[task 2023-05-19T00:35:03.207Z] ++ NEXUS_STORAGE_DIR=/builds/worker/workspace/nexus/storage
[task 2023-05-19T00:35:03.207Z] NEXUS_DIRS="$NEXUS_STORAGE_DIR/google $NEXUS_STORAGE_DIR/central"
[task 2023-05-19T00:35:03.207Z] ++ NEXUS_DIRS='/builds/worker/workspace/nexus/storage/google /builds/worker/workspace/nexus/storage/central'
[task 2023-05-19T00:35:03.207Z] BAD_DOWNLOADS_FILE="$WORKSPACE/bad_downloads.txt"
[task 2023-05-19T00:35:03.207Z] ++ BAD_DOWNLOADS_FILE=/builds/worker/workspace/bad_downloads.txt
[task 2023-05-19T00:35:03.207Z] BAD_DOWNLOADS_EXIT_CODE=17
[task 2023-05-19T00:35:03.207Z] ++ BAD_DOWNLOADS_EXIT_CODE=17
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z] function _package_artifacts_downloaded_by_nexus() {
[task 2023-05-19T00:35:03.207Z] pushd "$WORKSPACE"
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z] mkdir -p "$WORKSPACE/$EXTERNAL_DEPS" "$ARTIFACTS_TARGET_DIR"
[task 2023-05-19T00:35:03.207Z] for nexus_dir in $NEXUS_DIRS; do
[task 2023-05-19T00:35:03.207Z] cp -R "$nexus_dir" "$EXTERNAL_DEPS"
[task 2023-05-19T00:35:03.207Z] done
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z] tar cf - "$EXTERNAL_DEPS" | xz > "$ARTIFACTS_TARGET_DIR/$EXTERNAL_DEPS.tar.xz"
[task 2023-05-19T00:35:03.207Z] popd
[task 2023-05-19T00:35:03.207Z] }
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z]
[task 2023-05-19T00:35:03.207Z] function _ensure_artifacts_are_sane() {
[task 2023-05-19T00:35:03.207Z] # Let's find empty files or unfinished downloads
[task 2023-05-19T00:35:03.208Z] find "$WORKSPACE/$EXTERNAL_DEPS" -size 0 -o -name '*.part' > "$BAD_DOWNLOADS_FILE"
[task 2023-05-19T00:35:03.208Z]
[task 2023-05-19T00:35:03.208Z] if [ -s "$BAD_DOWNLOADS_FILE" ]; then
[task 2023-05-19T00:35:03.208Z] echo "ERROR: Some artifacts were not correctly downloaded! Please look at:"
[task 2023-05-19T00:35:03.208Z] cat "$BAD_DOWNLOADS_FILE"
[task 2023-05-19T00:35:03.208Z] exit $BAD_DOWNLOADS_EXIT_CODE
[task 2023-05-19T00:35:03.208Z] fi
[task 2023-05-19T00:35:03.208Z] }
[task 2023-05-19T00:35:03.208Z]
[task 2023-05-19T00:35:03.208Z]
[task 2023-05-19T00:35:03.208Z] _package_artifacts_downloaded_by_nexus
[task 2023-05-19T00:35:03.208Z] ++ _package_artifacts_downloaded_by_nexus
[task 2023-05-19T00:35:03.208Z] ++ pushd /builds/worker/workspace
[task 2023-05-19T00:35:03.208Z] ~/workspace ~/checkouts/vcs/android-components ~/checkouts
[task 2023-05-19T00:35:03.208Z] ++ mkdir -p /builds/worker/workspace/external-gradle-dependencies /builds/worker/artifacts
[task 2023-05-19T00:35:03.208Z] ++ for nexus_dir in $NEXUS_DIRS
[task 2023-05-19T00:35:03.208Z] ++ cp -R /builds/worker/workspace/nexus/storage/google external-gradle-dependencies
[task 2023-05-19T00:35:03.343Z] ++ for nexus_dir in $NEXUS_DIRS
[task 2023-05-19T00:35:03.343Z] ++ cp -R /builds/worker/workspace/nexus/storage/central external-gradle-dependencies
[task 2023-05-19T00:35:03.646Z] ++ tar cf - external-gradle-dependencies
[task 2023-05-19T00:35:03.646Z] ++ xz
[task 2023-05-19T00:38:43.664Z] ++ popd
[task 2023-05-19T00:38:43.664Z] ~/checkouts/vcs/android-components ~/checkouts
[task 2023-05-19T00:38:43.664Z] _ensure_artifacts_are_sane
[task 2023-05-19T00:38:43.664Z] ++ _ensure_artifacts_are_sane
[task 2023-05-19T00:38:43.664Z] ++ find /builds/worker/workspace/external-gradle-dependencies -size 0 -o -name '*.part'
[task 2023-05-19T00:38:43.689Z] ++ '[' -s /builds/worker/workspace/bad_downloads.txt ']'
[task 2023-05-19T00:38:43.689Z]
[task 2023-05-19T00:38:43.689Z] popd
[task 2023-05-19T00:38:43.689Z] + popd
[task 2023-05-19T00:38:43.689Z] ~/checkouts
[fetches 2023-05-19T00:38:43.690Z] removing /builds/worker/fetches
[fetches 2023-05-19T00:38:44.372Z] finished
[taskcluster 2023-05-19 00:38:44.876Z] === Task Finished ===
[taskcluster 2023-05-19 00:38:58.531Z] Successful task run with exit code: 0 completed in 602.778 seconds