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

Use OPA from the Docker image for testing #7273

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Dec 15, 2023

Motivation and context

Currently, the testing pipeline downloads a copy of OPA from the official site. But we already have a perfectly usable copy in the Docker image that we download for the Django unit tests. So just use that copy instead.

This reduces the amount of downloading the pipeline has to do, and eliminates a hardcoded version number.

How has this been tested?

I ran the new test command locally.

Checklist

  • I submit my changes into the develop branch
  • [ ] I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Currently, the testing pipeline downloads a copy of OPA from the official
site. But we already have a perfectly usable copy in the Docker image that
we download for the Django unit tests. So just use that copy instead.

This reduces the amount of downloading the pipeline has to do, and eliminates
a hardcoded version number.
@SpecLad SpecLad requested a review from nmanovic December 15, 2023 16:07
@nmanovic
Copy link
Contributor

Known filed tests. I will merge the PR.

Copy link
Contributor

@nmanovic nmanovic left a comment

Choose a reason for hiding this comment

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

LGTM

@nmanovic nmanovic merged commit fb0fe9e into cvat-ai:develop Dec 15, 2023
32 of 33 checks passed
@SpecLad SpecLad deleted the opa-test branch September 30, 2024 10:50
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