Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix integration tests action #364

Merged
merged 6 commits into from
Jan 16, 2024

Conversation

tdurk93
Copy link
Contributor

@tdurk93 tdurk93 commented Jan 16, 2024

Description

Attempting to fix our Integration Tests GH action (which is really post-release smoke testing)

There are 3 failing jobs:

  1. pulling from PyPI on Windows
    a. This was failing because the scan returns a nonzero exit code. For now, i told the script to expect a nonzero exit code.
    b. In the future, we should have a "happy path" test case where no issues are found, so we can validate a success (zero) exit code.
    c. Additionally, we should use different exit codes to differentiate between failures because of flagged issues versus internal errors. For now, I have updated seCureLI to return a 3 when it flags issues, but I'm not explicitly checking for that error here.
  2. pulling from PyPI on MacOS
    a. This was failing due to using python 3.12 in the default runner. I fixed it by installing & using python 3.11 on the runner.
    b. We can't yet support python 3.12 because one of our dependencies doesn't yet support it. If we need it in a pinch, I've included commented-out code for pointing to the PR branch that enables this support.
  3. pulling from homebrew on MacOS
    a. This is failing because of our homebrew formula has an incorrect list of dependencies. It will need to be fixed in a future PR.

Testing

This execution shows tests passing (except for homebrew, which is failing for a different reason that can't be fixed until a new release is cut): https://github.com/slalombuild/secureli/actions/runs/7535989887

This closes #357

This way we can differentiate between scans failing because
of flagged issues versus failing for other reasons.
This will be useful for having better tests in our pipeline.
Because scans return a nonzero exit code then they flag an issue,
the smoke test script to run a scan was causing the pipeline build to fail.
And include commented-out code to enable python 3.12 support.
The python package dependency-injector doesn't yet support python 3.12.
There is a PR for enabling that support that is not yet merged.
I've opted to leave that commented-out because it will cause the
build to break once the PR branch it points to gets merged/deleted.
Renaming "osx" to "macos"
@tdurk93 tdurk93 merged commit 0235ed1 into main Jan 16, 2024
10 of 11 checks passed
@tdurk93 tdurk93 deleted the bugfix/secureli-357-fix-integration-test-action branch January 16, 2024 18:48
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.

Fix Integration Tests in Pipeline
2 participants