-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
teamcity: failed test: TestDockerCLI/test_demo_partitioning because of server unreachable #40734
Comments
Duplicate of #39720. |
@rohany PTAL |
I can't really replicate the error, and I'm unsure of how to debug this without any of the logs. However, I had some concerns with testing this while writing the tests due to the partitioning being asynchronous + expect's inability to write a test like "while the output is not like something, do something else". Maybe the solution is to just disable this test for now? Or instead, I could test the Partitioning step of the MovR workload independently of the demo output. The main issue with the demo tests is that the go unittest versions of cockroach demo tests don't use the CCL binary, which makes us have to resort to these tcl/expect tests which I'm not as familiar with. |
Though we do want some way to verify that demo really does partition its data, so idk. |
Hallelujah! Though the logs show a worse problem.
It doesn't seem like we can reliably contact the licensing server from within this test... |
Generally TC tests can occasionally fail while attempting to connect to external resources. We used to encounter this often back when we were letting the build update yarn dependencies. IMHO the correct way forward is to tolerate this failure somehow. I can see several ways with various trade-offs:
@jordanlewis it would be nice to step back and see "out of the box" here. The last time we were encountering this problem was when the URL checker was verifying doc links, and TC was recording failures due to occasional outages of the docs site. Back then we decided to side-step by simply not running that test on CI any more (it's now nightly). |
Are we able to assign failure or success not based on the output within the test? If so, i think skipping the test (if it's a license acquisition error) and marking it successful, and adding a nightly test to check the availability of the licensing server makes sense. |
I have an embryo of an idea please help me think through this:
WDYT? |
I agree -- this functionality should be decoupled for better testing. I imagine in the future there could be more things dependent on having a license, so this will save us some time in the future. We will have to take the license string and the cluster organization via the command line probably. |
or environment variables. |
I am leaning towards a CLA, rather than environment variables -- if we expose some environment variables that automatically set the license etc, users might expect these to apply to not just demo. Unless this is something we'd want to do |
Well it may well be that preloading a license via env var is desirable for deployments under orchestration, @bdarnell what do you think?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
I don't really like environment variables, but I do think it makes sense to be able to pass a license on the command line to |
I have investigated this and I found a few bugs in the code, beyond the flaky test. |
The following tests appear to have failed on master (acceptance): TestDockerCLI/test_demo_partitioning.tcl, TestDockerCLI
You may want to check for open issues.
#1484411:
Please assign, take a look and update the issue accordingly.
The text was updated successfully, but these errors were encountered: