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

HJ-294 - Fix Safe-Tests(ctl-not-external) on CI is timing out #5568

Merged
merged 12 commits into from
Dec 12, 2024

Conversation

andres-torres-marroquin
Copy link
Contributor

Closes #HJ-294

Description Of Changes

Fix Safe-Tests(ctl-not-external) on CI is timing out

Code Changes

  • Updated configure_db to re-raise errors (they were being obscured before), and now they are being handled properly by /admin/db/{action} endpoint.

Steps to Confirm

  1. See the CI not getting stuck on Safe-Tests(ctl-not-external) on this PR

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
  • Followup issues:
    • Followup issues created (include link)
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 8:58pm

Copy link

cypress bot commented Dec 6, 2024

fides    Run #11460

Run Properties:  status check passed Passed #11460  •  git commit e1281c3dda ℹ️: Merge 6cae869d1f3f47557f9922b8ef9765a2b61d9c76 into 9bbab10f1de89f652ac95e41e754...
Project fides
Branch Review refs/pull/5568/merge
Run status status check passed Passed #11460
Run duration 00m 59s
Commit git commit e1281c3dda ℹ️: Merge 6cae869d1f3f47557f9922b8ef9765a2b61d9c76 into 9bbab10f1de89f652ac95e41e754...
Committer Andres Torres
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 87.11%. Comparing base (8610b3f) to head (6cae869).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/fides/api/api/v1/endpoints/admin.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5568      +/-   ##
==========================================
+ Coverage   79.11%   87.11%   +8.00%     
==========================================
  Files         408      388      -20     
  Lines       24870    23904     -966     
  Branches     2704     2585     -119     
==========================================
+ Hits        19675    20825    +1150     
+ Misses       4676     2522    -2154     
- Partials      519      557      +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -145,13 +145,16 @@ def test_parse(test_config_path: str, test_cli_runner: CliRunner) -> None:


class TestDB:
@pytest.mark.skip(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eastandwestwind here I added the skip, now the CI is green.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Nothing blocking, minor question above. Thanks!

@pytest.mark.integration
def test_reset_db(self, test_config_path: str, test_cli_runner: CliRunner) -> None:
result = test_cli_runner.invoke(
cli, ["-f", test_config_path, "db", "reset", "-y"]
)
print(result.output)
assert result.exit_code == 0
assert result.exit_code == 0, result.output
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this asserting exactly? Can we make this a separate assert line for clarity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is checking for the result.exit_code to be success (0), and if it fails, it prints the result.output. Am I answering the right question?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see, thanks for clarifying!

@andres-torres-marroquin andres-torres-marroquin merged commit ad6a9c3 into main Dec 12, 2024
38 of 39 checks passed
@andres-torres-marroquin andres-torres-marroquin deleted the andres/HJ-294 branch December 12, 2024 15:39
Copy link

cypress bot commented Dec 12, 2024

fides    Run #11462

Run Properties:  status check passed Passed #11462  •  git commit ad6a9c31af: HJ-294 - Fix Safe-Tests(ctl-not-external) on CI is timing out (#5568)
Project fides
Branch Review main
Run status status check passed Passed #11462
Run duration 00m 54s
Commit git commit ad6a9c31af: HJ-294 - Fix Safe-Tests(ctl-not-external) on CI is timing out (#5568)
Committer Andres Torres
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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