Skip to content

Refresh pods after test run. Include expectation lib into pod warmup.#11

Merged
seancorfield merged 1 commit intoclojure-expectations:masterfrom
onetom:faster
Mar 18, 2016
Merged

Refresh pods after test run. Include expectation lib into pod warmup.#11
seancorfield merged 1 commit intoclojure-expectations:masterfrom
onetom:faster

Conversation

@onetom
Copy link
Copy Markdown
Contributor

@onetom onetom commented Mar 17, 2016

As a consequence the 1st test run happens right after the 1st pod is
warmed up and subsequent test runs will happen in the next warmed up
pod.

It's also enough to setup the task cleanup action once, as seen at:
https://github.com/adzerk-oss/boot-test/blob/master/src/adzerk/boot_test.clj#L88

As a consequence the 1st test run happens right after the 1st pod is
warmed up and subsequent test runs will happen in the next warmed up
pod.

It's also enough to setup the task cleanup action once, as seen at:
https://github.com/adzerk-oss/boot-test/blob/master/src/adzerk/boot_test.clj#L88
(finally
(doseq [f ~shutdown]
(f)))))]
(pods :refresh)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm also testing (future (pods :refresh)) here, to allow faster feedback, when used in combination with the speak task.

@seancorfield
Copy link
Copy Markdown
Collaborator

I'm going to merge this as-is and release a new version so we can try out your changes at World Singles as well. If you find (future (pods :refresh)) is safe and improves things further, you can submit a new PR for that.

seancorfield added a commit that referenced this pull request Mar 18, 2016
Refresh pods after test run. Include `expectation` lib into pod warmup.
@seancorfield seancorfield merged commit 0722084 into clojure-expectations:master Mar 18, 2016
@seancorfield
Copy link
Copy Markdown
Collaborator

Testing this in a full pipeline at work uncovers a problem: your changes cause Expectations cleanup to happen after the pod has been cleaned up so it can trigger "Exception in thread "Thread-34" java.lang.NoClassDefFoundError: clojure/core$ns_interns$fn__5116"

I'll see which one of the specific changes causes this and will push an updated release.

@onetom onetom deleted the faster branch March 19, 2016 04:01
@onetom
Copy link
Copy Markdown
Contributor Author

onetom commented Mar 19, 2016

I often saw that error with v1.0.5 too but my patch hasn't changed that behaviour.
Since it only happens on shutdown (when I pressed Ctrl-C on a boot watch expectations), I thought I would file it as a separate issue, after trying to reproduce it with lein expectations too.
My suspicion about its origin was that I'm running on Java 9-ea.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants