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

Multiple tests in compute/cloud-client fail with com.google.api.gax.rpc.PermissionDeniedException #9373

Open
minherz opened this issue Jun 14, 2024 · 0 comments
Assignees
Labels
api: compute Issues related to the Compute Engine API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. triage me I really want to be triaged. type: process A process-related concern. May include testing, release, or the like.

Comments

@minherz
Copy link
Contributor

minherz commented Jun 14, 2024

Multiple test classes under /compute/cloud-client fail with the error:

Execution com.google.api.gax.rpc.PermissionDeniedException: Operation with name "operation-GUID" failed with status = HttpJsonStatusCode{statusCode=PERMISSION_DENIED} and message = FORBIDDEN

Majority of failures happen in the class setup methods decorated with the @BeforeAll attribute.
All these classes are disabled using @Disabled attribute at the class level with the "TODO: fix #9373" message. The following list of (not full) class names is not complete. Search the folder compute/cloud-client for @Disabled("TODO: string to find all classes.

Examples of the error logs can be found here: test log1, test log2. These logs do not capture errors in all classes.

@minherz minherz added type: process A process-related concern. May include testing, release, or the like. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. triage me I really want to be triaged. api: compute Issues related to the Compute Engine API. labels Jun 14, 2024
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jun 14, 2024
@minherz minherz changed the title PreemptibleIT test setup fails on PermissionDeniedException Multiple tests in compute/cloud-client fail with com.google.api.gax.rpc.PermissionDeniedException Jun 14, 2024
minherz added a commit that referenced this issue Jun 15, 2024
Upgrade BOM to the latest version (26.40.0)
Remove calls to Assert.* from try/catch block so throwing asserts is not catched.
After checking that BOM upgrade is not a cause to failing tests, disable all test classes that fail. See #9373 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. samples Issues that are directly related to samples. triage me I really want to be triaged. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

2 participants