Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@etpinard this seems to make
parcoords_test
pass reliably - and I can even take out the@flaky
tag I added in #2399. (I did get a gl2d failure in one of these runs though... https://circleci.com/gh/plotly/plotly.js/7227)I seem to recall trying to add
Plotly.purge
directly todestroyGraphDiv
once before, and running into problems that looked like I was purging after the next test case had already started... anyway that's why I added thedelay(50)().then(done)
, and if that's really required it doesn't seem like a good idea to add it to everydestroyGraphDiv
- though perhaps we can make this into a variant just for use with gl tests? Or maybe we can detect gl contexts and only purge/delay if we find one?A little more detail on my investigations:
-
npm run test-jasmine -- --tags=gl --skip-tags=noCI,flaky
npm run test-jasmine -- --tags=gl --skip-tags=noCI,flaky parcoords
:Plotly.purge
doesn't make things go faster - unsurprisingly it adds a couple of seconds - but it does seem to make the timing more consistent from one test case to the next, as though the need to purge was building up and then when the system finally decided to do it on its own, it took an enormous amount of time and caused a timeout. If that's the case, then we could also consider increasing the 30-sec no activity timeout.