Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix SIG tests #1105

Merged
merged 1 commit into from
Nov 24, 2017
Merged

fix SIG tests #1105

merged 1 commit into from
Nov 24, 2017

Conversation

dryajov
Copy link
Member

@dryajov dryajov commented Nov 23, 2017

Tests are failing due to timeouts. These tests are awfully slow, we might want to consider skipping them on normal runs?

@ghost ghost assigned dryajov Nov 23, 2017
@ghost ghost added the status/in-progress In progress label Nov 23, 2017
it.skip('should handle SIGTERM gracefully', function (done) {
this.timeout(20 * 1000)
it('should handle SIGTERM gracefully', function (done) {
this.timeout(100 * 1000)
Copy link
Member

Choose a reason for hiding this comment

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

Why does this take so much time?

Copy link
Member Author

Choose a reason for hiding this comment

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

It needs to start and init the repo for the IPFS node each time, which seems to be slow.

Copy link
Member

Choose a reason for hiding this comment

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

The other tests take 40s or less, why 100s in this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't able to get it to work with anything below 60 on my box, 100 seems to be the most stable.

I'm guessing that it is because it has to:

  • start the daemon
  • init the repo
  • send the signal and wait for daemon to clean up and exit

The 40 (in i.e. block tests)

this.timeout(40 * 1000)
, are coupled with the 30
this.timeout(30 * 1000)
from the before hook that gets the daemon started and initialized.

So I think it currently is more like 70 + ~30 for graceful shutdown. I think we can tweak the 30 a little bit.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@daviddias daviddias changed the title Fix/daemon tests fix SIG tests Nov 23, 2017
@daviddias
Copy link
Member

Please rebase master onto this branch

@dryajov
Copy link
Member Author

dryajov commented Nov 23, 2017

done rebasing.

@daviddias
Copy link
Member

Some tests are failing but not due to this PR.

@daviddias daviddias merged commit 93cc273 into master Nov 24, 2017
@daviddias daviddias deleted the fix/daemon-tests branch November 24, 2017 11:58
@ghost ghost removed the status/in-progress In progress label Nov 24, 2017
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
temp fix for electron renderer until ky-universal is fixed
Blob can accept Buffer directly
Buffer.buffer triggered a super weird bug in electron renderer
enable a bunch of tests in the browser
xvfb-run makes electron go crazy
detect-node needs to be removed everywhere and ipfs-utils/src/env.js should be used
If you mix promises and callbacks inside, call the callback with setImmediate
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants