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

Modify the container image workflow to run mreg-cli tests #511

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

oyvindhagberg
Copy link
Contributor

This PR makes the following modifications to the "container image" workflow:

  • Adds a job that runs the mreg-cli test suite towards the newly built mreg container image
  • Modifies the titles of the workflow jobs to be more descriptive

Note that Python version 3.11 is hardcoded for mreg-cli here. There's no need to run this in a matrix, because mreg-cli has been tested with multiple python versions already, before making it to the "master" branch that we download it from.

@oyvindhagberg oyvindhagberg added the enhancement New feature or request label Jun 16, 2023
@coveralls
Copy link
Collaborator

coveralls commented Jun 16, 2023

Coverage Status

coverage: 99.203%. remained the same when pulling f79624c on test-with-mreg-cli into 901640e on master.

Copy link
Collaborator

@terjekv terjekv left a comment

Choose a reason for hiding this comment

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

Not sure about the tricking comment, but otherwise lit looks fine to me. Thanks!

- name: Load container image
run: |
docker load --input mreg.tgz
docker tag mreg ghcr.io/unioslo/mreg:latest # trick the shell script
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what we're tricking here? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I could've probably worded that better.. The comment refers to run_testsuite_and_record.sh which is downloaded along with mreg-cli.

Comment on lines +73 to +78
- name: Load container image
run: docker load --input mreg.tgz
- name: Tag container image
# There's a docker-compose.yml file in the mreg-cli repo that wants the image from ghcr.io,
# but we want to use the newly built custom image
run: docker tag mreg ghcr.io/unioslo/mreg:latest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cleaned it up a bit and wrote a better comment

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice, looks good! Thanks!

@oyvindhagberg oyvindhagberg merged commit f79624c into master Jun 16, 2023
@oyvindhagberg oyvindhagberg deleted the test-with-mreg-cli branch June 16, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants