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

[Failing Test]: Many tests failing with invalid JWT signature #31848

Open
16 tasks
kennknowles opened this issue Jul 11, 2024 · 6 comments
Open
16 tasks

[Failing Test]: Many tests failing with invalid JWT signature #31848

kennknowles opened this issue Jul 11, 2024 · 6 comments

Comments

@kennknowles
Copy link
Member

kennknowles commented Jul 11, 2024

What happened?

ERROR: (gcloud.container.images.list) There was a problem refreshing your current auth tokens: ('invalid_grant: Invalid JWT Signature.', ***'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'***)
Please run:

> Task :beam-test-tools:removeStaleSDKContainerImages FAILED
  $ gcloud auth login

to obtain new credentials.

If you have already logged in with a different account, run:

  $ gcloud config set account ACCOUNT

to select an already authenticated account to use.

FAILURE: Build failed with an exception.

Issue Failure

Failure: Test is continually failing

Issue Priority

Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@kennknowles kennknowles self-assigned this Jul 11, 2024
@kennknowles kennknowles changed the title [Failing Test]: beam_CleanUpGCPResources failing with insufficient GCP permissions [Failing Test]: beam_CleanUpGCPResources and beam_CleanUpPrebuiltSDKImages failing with insufficient GCP permissions Jul 11, 2024
@kennknowles kennknowles changed the title [Failing Test]: beam_CleanUpGCPResources and beam_CleanUpPrebuiltSDKImages failing with insufficient GCP permissions [Failing Test]: beam_CleanUpPrebuiltSDKImages and beam_CleanUpGCPResources failing with insufficient GCP permissions Jul 11, 2024
@kennknowles kennknowles changed the title [Failing Test]: beam_CleanUpPrebuiltSDKImages and beam_CleanUpGCPResources failing with insufficient GCP permissions [Failing Test]: beam_CleanUpPrebuiltSDKImages and beam_CleanUpGCPResources failing with invalid JWT signature Jul 11, 2024
@kennknowles kennknowles assigned Abacn and unassigned kennknowles Jul 11, 2024
@kennknowles
Copy link
Member Author

I think you have a fix up, yes? So I am assigning

@Abacn
Copy link
Contributor

Abacn commented Jul 12, 2024

Yes I was trying to fix it - https://github.com/apache/beam/actions/workflows/beam_CleanUpGCPResources.yml?query=branch%3Atryfixpythontest

but not successful as some other affected workflows. Current plan to fix build-wheel first (which is more urgent one as it is used to build rc) then come back to these two

@Abacn
Copy link
Contributor

Abacn commented Jul 12, 2024

The "Invalid JWT" error is affecting many performance tests that uses GitHub secret to set secret values also.

@Abacn Abacn changed the title [Failing Test]: beam_CleanUpPrebuiltSDKImages and beam_CleanUpGCPResources failing with invalid JWT signature [Failing Test]: Many tests failing with invalid JWT signature Jul 12, 2024
@Abacn
Copy link
Contributor

Abacn commented Jul 12, 2024

CleanUpGCPResource currently permared due to two issues

  • Some resources was created with some other credential, that the service account GitHub Action used doesn't have permission to delete them

  • The JWT signature error observed in the test

For the second one, this happens since July 9th, and it is probablistic:

image

This suggests some roll out process is in play. Either GCP or GitHub is rolling out something that breaking the auth if conducted by "google-github-actions/auth@v1"

@Abacn
Copy link
Contributor

Abacn commented Jul 18, 2024

Current status:

java_tests and python_tests failing, other tests fixed after switching to self-hosted runner's default cred

@Abacn
Copy link
Contributor

Abacn commented Jul 19, 2024

downgrade to P2 as this has been mitigated. Due to that SA key expiration now enforced in the testing project, even if we generate new key and request update it, the key expires in 90 days and will break again.

@Abacn Abacn added P2 and removed P1 labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants