Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Fix fossa test always fail #279

Closed
wants to merge 2 commits into from
Closed

Fix fossa test always fail #279

wants to merge 2 commits into from

Conversation

zlav
Copy link
Member

@zlav zlav commented Jul 6, 2021

Overview

When fixing an issue related to container analysis not exiting with a success message, we regressed fossa test by adding logWithExit but not returning a success. This fix addressed the issues, but since logWithExit returns () on success, we always hit the exitFailure at the bottom of the file.

This PR further reinforces the need for improved integration testing. https://github.com/fossas/team-analysis/issues/437

Acceptance criteria

This PR is making sure that we

Testing plan

I built a binary locally with the changes and validated that when running fossa test I got an exit code of 0. Testing with the current spectrometer binary is recommended as well to observe the changes

fossa analyze
fossa test
$? 

$? should show that the exit code was 0.

Risks

I don't believe there are any risks associated with this.

References

https://teamfossa.slack.com/archives/G01DUC2JW3B/p1625589871002400

Checklist

  • [X ] I added tests for this PR's change (or confirmed tests are not viable).
  • I linted and formatted (via haskell-language-server) any haskell files I touched in this PR.
  • If this PR introduced a user-visible change, I added documentation into docs/.
  • I updated Changelog.md if this change is externally facing. If this PR did not mark a release, I added my changes into an # Unreleased section at the top.
  • [ X] I linked this PR to any referenced GitHub issues, if they exist.

@elldritch
Copy link
Member

Closing; duplicate of #278.

@elldritch elldritch closed this Jul 6, 2021
@skilly-lily skilly-lily deleted the fix/fossa-test-fail branch September 17, 2021 20:11
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