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

Updating static checks #5637

Merged
merged 9 commits into from
Jan 7, 2025
Merged

Updating static checks #5637

merged 9 commits into from
Jan 7, 2025

Conversation

galvana
Copy link
Contributor

@galvana galvana commented Dec 28, 2024

Description Of Changes

Code Changes

  • Breaks out the static checks into their own step so we can run always run them, even if there aren't any backend changes. This is done so we can prevent a branch from being merged if the static checks don't pass.
  • Fixing silent error with Xenon

Steps to Confirm

  1. CI tests should pass

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • 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 28, 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 Jan 7, 2025 4:41pm

Copy link

cypress bot commented Dec 28, 2024

fides    Run #11656

Run Properties:  status check passed Passed #11656  •  git commit 0ebecc4500 ℹ️: Merge b4930aca441d7fc57e11eafa2ccbde344cdf16dd into 22c05f2f32bd691c20421dbb176e...
Project fides
Branch Review refs/pull/5637/merge
Run status status check passed Passed #11656
Run duration 00m 50s
Commit git commit 0ebecc4500 ℹ️: Merge b4930aca441d7fc57e11eafa2ccbde344cdf16dd into 22c05f2f32bd691c20421dbb176e...
Committer Adrian Galvan
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
View all changes introduced in this branch ↗︎

Copy link

codecov bot commented Dec 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.14%. Comparing base (22c05f2) to head (b4930ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5637   +/-   ##
=======================================
  Coverage   87.14%   87.14%           
=======================================
  Files         388      388           
  Lines       24000    24000           
  Branches     2594     2594           
=======================================
  Hits        20914    20914           
  Misses       2525     2525           
  Partials      561      561           

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

docker=in_docker_container(),
event=Event.server_start.value,
event_created_at=datetime.now(tz=timezone.utc),
docker=in_docker_container(), event=Event.server_start.value, event_created_at=datetime.now(tz=timezone.utc),
Copy link
Contributor Author

@galvana galvana Jan 6, 2025

Choose a reason for hiding this comment

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

Intentionally misformatting this to trigger a CI failure

@galvana galvana changed the title Static check test Updating static checks Jan 6, 2025
@galvana galvana requested a review from adamsachs January 6, 2025 22:14
Comment on lines 104 to 110
session.run(*command, success_codes=[0, 1])
session.log(
"Note: This command was malformed so it's been failing to report complexity issues."
)
session.log(
"Intentionally suppressing the error status code for now to slowly work through the issues."
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only thing we didn't discuss on Slack, let me know your thoughts on this one

Copy link
Contributor

Choose a reason for hiding this comment

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

sure! looks good to me. could be a session.warn maybe, but perhaps that's a bit too noisy? i'm fine either way

Copy link
Contributor

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

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

this looks good! thanks for the diligence to get this working properly. just some nits that you can take or leave.

should we make a similar change on fidesplus?

.github/workflows/static_checks.yml Outdated Show resolved Hide resolved
Comment on lines 104 to 110
session.run(*command, success_codes=[0, 1])
session.log(
"Note: This command was malformed so it's been failing to report complexity issues."
)
session.log(
"Intentionally suppressing the error status code for now to slowly work through the issues."
)
Copy link
Contributor

Choose a reason for hiding this comment

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

sure! looks good to me. could be a session.warn maybe, but perhaps that's a bit too noisy? i'm fine either way

@galvana galvana merged commit b805c8c into main Jan 7, 2025
39 checks passed
@galvana galvana deleted the static-check-test branch January 7, 2025 17:25
Copy link

cypress bot commented Jan 7, 2025

fides    Run #11659

Run Properties:  status check passed Passed #11659  •  git commit b805c8c8d9: Updating static checks (#5637)
Project fides
Branch Review main
Run status status check passed Passed #11659
Run duration 00m 57s
Commit git commit b805c8c8d9: Updating static checks (#5637)
Committer Adrian Galvan
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
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