Thanks to visit codestin.com
Credit goes to github.com

Skip to content

flutter/plugin ci build failed on image_picker_android #105182

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

Closed
cyanglaz opened this issue Jun 2, 2022 · 10 comments · Fixed by flutter/plugins#5889
Closed

flutter/plugin ci build failed on image_picker_android #105182

cyanglaz opened this issue Jun 2, 2022 · 10 comments · Fixed by flutter/plugins#5889
Assignees
Labels
P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels. platform-android Android applications specifically

Comments

@cyanglaz
Copy link
Contributor

cyanglaz commented Jun 2, 2022

Looks like some Jars from some transitive dependencies are failing. See full log: https://cirrus-ci.com/task/6275541295693824?logs=native_unit_test

ERROR: [TAG] Failed to resolve variable '${project.groupId}'
ERROR: [TAG] Failed to resolve variable '${project.version}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.junit}'
ERROR: [TAG] Failed to resolve variable '${version.mockito}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${project.groupId}'
ERROR: [TAG] Failed to resolve variable '${project.version}'
125 actionable tasks: 99 executed, 26 up-to-date
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/root/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/1.10.19/e8546f5bef4e061d8dd73895b4e8f40e3fe6effe/mockito-core-1.10.19.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
FAILURE: Build failed with an exception.
* What went wrong:
Transformation hasn't been executed yet
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 28s
image_picker_android/example unit tests failed.

This is blocking the plugin tree. This started happening on May 31st.

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

There is a dep bot PR and it seems passing all the presubmit tests: flutter/plugins#5839

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

flutter/plugins#5839 didn't fix the issue after rebasing.

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

cc @blasten

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

@fkorotkov Do you know if there was a recent update on cirrus that could have broken this? Possibly a java version update or android version update?

@fkorotkov
Copy link
Contributor

@cyanglaz doesn't look like a Cirrus issues. This tasks uses Dockerfile defined in your repo and was changed 3 days ago which triggered a rebuild.

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

@cyanglaz doesn't look like a Cirrus issues. This tasks uses Dockerfile defined in your repo and was changed 3 days ago which triggered a rebuild.

The cirrus file you linked is from the framework repo, in the plugin repo, the docker file is defined as https://github.com/flutter/plugins/blob/main/.cirrus.yml#L213 which is https://github.com/flutter/plugins/blob/main/.ci/Dockerfile and I didn't see this dockerfile updated recently.

@fkorotkov
Copy link
Contributor

Oh. It was a task from a different repo. Then seems there were no changes to the environment where the scripts are eexecuted.

@cyanglaz cyanglaz added the platform-android Android applications specifically label Jun 2, 2022
@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

Oh, found that the commit right before the failure is updating some deps in video player: flutter/plugins@4cf7437

image_picker example app depends on video_player, so it might have something to do with issue. I created a PR that pings the video player version: flutter/plugins#5888.

@cyanglaz
Copy link
Contributor Author

cyanglaz commented Jun 2, 2022

Pinging video_player_android to 2.3.4 in the image_picker_android/example fixed the issue. This looks like an Android dependency issue.

We can ping video_player_android to 2.3.4 to temporarily unblock the tree.

We need to understand why flutter/plugins@4cf7437 broke the image_picker_android's unit tests and if this breaks other flutter apps out there too.

Assigning to @blasten as this is going deep into Android territory, I don't have the expertise to debug further efficiently. Feel free to re-assign.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2022
@flutter-triage-bot flutter-triage-bot bot added P0 Critical issues such as a build break or regression and removed P1 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels. platform-android Android applications specifically
Projects
None yet
3 participants