Skip to content

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented May 8, 2023

The Github Action that is used to update the cache of discovery artifacts recently started failing with error ModuleNotFoundError: No module named 'describe' without any code changes in this repo. See build log here.

Through testing in #2124, I found that moving the describe.py module to the scripts folder solved the issue. This module is only used by the GitHub action and is not part of googleapiclient.

Below is the specific line that was failing in the GitHub action:

@parthea parthea requested a review from a team as a code owner May 8, 2023 17:07
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label May 8, 2023
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for finding the workaround, but I am disturbed that it was working before and then suddenly stopped working. Did a path change? Or did a pip install like this one not run as it used to, or fail? It makes me uncomfortable to fix this blindly without knowing why it broke.

Aside from that, and another question about coverage, blocking on one change: symlink describe.py so we don't change the surface.

@vchudnov-g vchudnov-g added the priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. label May 23, 2023
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels May 24, 2023
@parthea parthea requested a review from vchudnov-g May 24, 2023 14:05
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels May 24, 2023
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels May 24, 2023
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels May 24, 2023
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels May 24, 2023
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels May 24, 2023
@parthea parthea changed the title build: move describe.py to scripts folder to fix failing Github Action build: add describe.py to scripts folder to fix failing Github Action May 24, 2023
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question about DISCOVERY_DOC_DIR in the script.

And still wondering what made this stop working all of a sudden.

@parthea parthea requested a review from vchudnov-g May 24, 2023 17:58
@parthea
Copy link
Contributor Author

parthea commented May 24, 2023

And still wondering what made this stop working all of a sudden.

I was unable to reproduce the original issue outside of Github Actions. It seems to me that something changed in the Github Actions environment which caused this action to fail. The changes in this PR seem to resolve the issue.

@parthea parthea merged commit 13dcce2 into main May 24, 2023
@parthea parthea deleted the move-describe-py-to-scripts-folder branch May 24, 2023 18:23
@vchudnov-g
Copy link
Contributor

OK. We need to ensure there is (and we pay attention to) proactive communication about breakages like this. It's not good to be taken by surprise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants