Test commit: inspect the env. vars. Travis uses.#2309
Test commit: inspect the env. vars. Travis uses.#2309dhermes wants to merge 2 commits intogoogleapis:masterfrom
Conversation
|
FWIW I was expecting these vars and got all of them but From the build lifecycle doc, it seems that |
|
|
d038c32 to
dfbf929
Compare
|
I rebased on top master (#2305 was merged) and adding another commit on top to see how it changes |
|
In the latest build, the only env. var. changes were: After the rebase the As before c9e955423f57e99a6be2fda7e4b73ff1a9f5beac is a hidden commit that merges my branch into |
|
From How-Pull-Requests-are-Tested
|
dfbf929 to
7147a65
Compare
|
I'm going to push this |
7147a65 to
c274f02
Compare
|
ENV VARS: In the pull request build the usual players changed. In the "push" build, there are some differences: Also Also, the commit hashes in As for the state of the while the "push" build is checked out at a detached In either case, there is only one Finally, a limited checkout is in place, making sure |
c274f02 to
4a52ba7
Compare
4a52ba7 to
8708169
Compare
|
It looks like some new vars like From that build we see the new variables as expected d4bc9d5 is the |
|
I just pushed a tag to trigger a tag build. Have already deleted tag, but the build remains. The non-trivial changes we see are as follows
|
This is sniffing around towards googleapis#2277, to see how much info we can use to restrict the tests we run.
d4bc9d5 to
2a9b150
Compare
dba3ef0 to
d82a72b
Compare
|
Superceded by #3146. |
* update pyproject.toml to follow PEP 639 * Update pyproject.toml PEP 639 Thanks for the feedback, I've removed the version number completely as requested. * Update pyproject.toml --------- Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
This PR addresses a flaky ZMQError: Address already in use that occasionally occurred during parallel notebook test execution. **Problem:** The bigframes.display module eagerly imported anywidget and traitlets at module load time (`bigframes/display/__init__.py`). This meant that when multiple Jupyter kernels were spun up simultaneously by nox for parallel testing, they would all try to initialize traitlets.HasTraits objects with sync=True properties. This led to race conditions and ZMQ port conflicts, causing notebook tests (including those that did not directly use anywidget like `streaming_dataframe.ipynb`) to fail. Log is [here](https://fusion2.corp.google.com/invocations/72088900-0196-4441-944b-ad68e491a8f8/targets/bigframes%2Fpresubmit%2Fnotebook/log). **Solution:** The TableWidget class import in `bigframes/display/__init__.py` has been refactored to use Python's `__getattr__` for lazy loading. This ensures that anywidget and traitlets are only imported and their associated kernel communication channels are initialized when display.TableWidget is actually accessed by the code. This prevents premature initialization and eliminates the port collision race condition during parallel test startup. Fixes #<465768150> 🦕
This is sniffing around towards #2277, to see how much info we can use to restrict the tests we run.
Context: I tried to build a similar feature in late 2014 / early 2015 and the env. vars. weren't very useful. Hoping that has changed in the last two years.