-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: start detached and stop cleanup (#403)
* fix: 🐛 healthcheck default port when provided port is undefined Also use the HEALTHCHECK_PATH constant in this helper * fix: 🐛 do not pass "undefined" into detached start process * fix: 🐛 cleanup PID file on stop rather than kill the process The process has handlers to finalize on SIGHUP, but the stop request already finalizes the build before sending SIGHUP. Sometimes this caused duplicate, empty, builds due to the finalize method creating a build when the current build has already been finalized. * ✅ Add separate test for no flags passed to start * fix: 🐛 Use oclif exit method Testing with `process.exit` causes the test process to exit * fix: 🐛 await on subprocess and exit gracefully This command was hard to test due to the subprocess being spawn async. In practice the parent process remains open as well, but for our tests this method returned before the command was finished. * ✅ Update helpers to not throw oclif exit errors * ✅ Fix snapshot command tests These tests previously caused the entire suite to exit early. Once that was fixed, the two tests written with the oclif helper failed. One was updated to not need the helper, and the other test was removed since the snapshot command now has a default directory argument. * ✅ Fix agent tests and remove global mutation This agent test caused many other tests to fail since it mutated the DEFAULT_CONFIGURATION object. * ✅ Unskip exec tests With recent bug fixes, these tests can be unskipped and actually run. The 'echo' test was replaced with 'sleep' to avoid printing to the inherited stdio of the test process. An unfinished test was fleshed out, and the other unfinished test removed since exec does not support that behavior. * 🔧 Remove silent junit reporter When the tests exited early or threw warnings and logs, it went unnoticed in CI since junit reports to a file. Circle only shows tests when they fail, so passed tests or missed tests were never shown.
- Loading branch information
Wil Wilsman
authored
Oct 28, 2019
1 parent
79c38f0
commit 2b4662e
Showing
10 changed files
with
113 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters