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

Revert run OPA tests action from <0.50 to latest #745

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

mitchelbaker-cisa
Copy link
Collaborator

@mitchelbaker-cisa mitchelbaker-cisa commented Dec 14, 2023

🗣 Description

  • In run_opa_tests.yml changed OPA version from <0.50 to latest
  • In OPA.ps1/SetUp.ps1 bump the expected version from v0.42.1 to v0.59.0
  • Update README to reflect expected OPA version

💭 Motivation and context

During the 0.30 release the OPA version had to be switched from latest to <0.50, #193. PR #195 has been merged into Flipper which clears up the Rego errors preventing test actions from updating.

Resolves #196
Resolves #593

🧪 Testing

Download OPA v0.59.0 from https://www.openpolicyagent.org/docs/latest/.

  • Run ./opa_windows_amd64.exe check Rego Testing/Unit/Rego -- strict
  • Run Invoke-Scuba cmdlet against all products for both gcc/gcchigh

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Rebased with most up to date changes from Flipper release
  • Ensure any relevant issues are referenced in the PR description
  • Run tests locally

@mitchelbaker-cisa mitchelbaker-cisa added the enhancement This issue or pull request will add new or improve existing functionality label Dec 14, 2023
@mitchelbaker-cisa mitchelbaker-cisa self-assigned this Dec 14, 2023
Copy link
Collaborator

@Sloane4 Sloane4 left a comment

Choose a reason for hiding this comment

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

You might also want to change line 39 in SetUp.ps1 to the new minimum version as well

Copy link
Collaborator

@buidav buidav left a comment

Choose a reason for hiding this comment

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

readme

Need to update the number in this portion of the README as well. I noticed the significant revamp to the OPA.ps1. Out of scope for this issue but looks like that section need of the README needs a revamp as well now to match OPA.ps1 new capabilities.

TLDR: Update the OPA version number in the README at least. Update the README language there in another issue.

@mitchelbaker-cisa mitchelbaker-cisa force-pushed the 593-revert-opa-test-action branch from 2e97af0 to 660d503 Compare December 19, 2023 19:24
Copy link
Collaborator

@buidav buidav left a comment

Choose a reason for hiding this comment

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

run_opa_tests.yaml

I just realized changing to version: latest for the run_opa_tests.yml action might hit us when version 1.0 of OPA comes out. Oh well that'll force us to upgrade the Rego ASAP 😈.

@nanda-katikaneni nanda-katikaneni merged commit b33ba0e into flipper Dec 21, 2023
6 checks passed
@nanda-katikaneni nanda-katikaneni deleted the 593-revert-opa-test-action branch December 21, 2023 17:16
james-garriss pushed a commit that referenced this pull request Dec 28, 2023
* under Run-OPA-Tests change OPA version from <0.50 to latest

* bump expected version to v0.59.0 in OPA.ps1

* bump OPA expected version to 0.59.0 in SetUp.ps1

* update README.md with acceptable OPA version
mitchelbaker-cisa added a commit that referenced this pull request Jan 4, 2024
* under Run-OPA-Tests change OPA version from <0.50 to latest

* bump expected version to v0.59.0 in OPA.ps1

* bump OPA expected version to 0.59.0 in SetUp.ps1

* update README.md with acceptable OPA version
schrolla pushed a commit that referenced this pull request Jan 19, 2024
* under Run-OPA-Tests change OPA version from <0.50 to latest

* bump expected version to v0.59.0 in OPA.ps1

* bump OPA expected version to 0.59.0 in SetUp.ps1

* update README.md with acceptable OPA version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue or pull request will add new or improve existing functionality
Projects
None yet
5 participants