Conversation
5f09aa8 to
85811f9
Compare
85811f9 to
7f73184
Compare
Why: We need to support multiple bazel versions (6, 7, 8) when running FOSS tests locally, not only from CI. As of now we copy just .bazelversion with fixed old version. What: - Remove .bazelversion from templates - Copy .bazelversion from root directory - Change CI to create .bazelversion in root directory - Print out versions in CI for FOSS tests - Add more logging (seen only with -vvv) - Fix small logging bug in test_external_repo.py
7f73184 to
d81938b
Compare
| bazelversion="../../../../.bazelversion" | ||
| [ -f $bazelversion ] && cp $bazelversion . | ||
| cat .bazelversion |
|
|
||
| # Check | ||
| bazel version | ||
| which bazel |
There was a problem hiding this comment.
...and this change were reused from test/foss/templates, and not copy-pasted to each test.
| _, stdout, _ = cls.run_command("bazel --version") | ||
| cls.BAZEL_VERSION = stdout.split(' ')[2].strip() | ||
| logging.debug("Using Bazel", cls.BAZEL_VERSION) | ||
| logging.debug("Using Bazel %s", cls.BAZEL_VERSION) |
Szelethus
left a comment
There was a problem hiding this comment.
On a second thought: The patch title is very different to what the patch does. Have we ever explicitly not supported running foss tests locally? Is this patch fixing an issue with that? This feels like a CI refactor more than anything.
furtib
left a comment
There was a problem hiding this comment.
The title of the PR does not match what it's doing.
This PR makes no changes to how FOSS tests are run locally, but how they're run in CI.
Otherwise, I see no problem with the patch.
| bazel version | ||
| which bazel |
There was a problem hiding this comment.
This does not make sense to me using the current test setup:
python3 -m unittest discover foss -vvv
This script only runs the first time, and its output is completely ignored.
There was a problem hiding this comment.
Yes, that's another huge problem!
Once we run FOSS tests they create test-proj directories which are invisible, cannot be updated, and cannot be removed! I will create a bug about this :)
Right, I'll think about better title and summary. |
|
I still don't see what issues can occur when running the FOSS tests locally. |
Hi @furtib and @Szelethus, In general, I see many problems, unfortunately. Here is the short list of what's on the surface:
Basically, what is essential:
Your patch #165, I think, is the way forward, but issues should be solved one by one, by smaller patches. |
|
Do I understand correctly that this patch was superseded by #169 and some others mentioned in #148 (comment)? |
Right, I guess we can abandon this patch. Shall we? |
Why:
We need to support multiple bazel versions (6, 7, 8)
when running FOSS tests locally, not only from CI.
As of now we copy just .bazelversion with fixed old version.
What:
Addresses:
#148