Adapt the unit test action to not use a docker image. #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This just uses the ubuntu 22.04 runner, and installs the webwork3 dependencies directly, and then runs the unit tests. It actually doesn't take much longer to do this than to use the prebuilt docker image.
This is one way to solve the issue of the dependence on a docker image that does not belong to the openwebwork project.
There is one issue though. Several of the tests were failing with this new approach. Looking closely at the tests that were failing, I realized that those tests should be failing. All of the tests that were failing were boolean values compared to numerical values. Those tests have been fixed in this pull request. However, the issue is that for some reason the fixed tests were passing for us when we run the tests on our local machines and they were passing in the previous docker image approach. We need to figure this out, so that we don't need to wait until the workflow has run to see what needs to be fixed.
The dockerfile used for the previous workflow image has also been updated for new Ubuntu package versions. Also the dependencies of Devel::Cover::Report::Codecove that are available in the Ubuntu repositories are installed via those packages. This speeds up the build some. Ubuntu packages install faster than building from cpan source via cpanm.
Note there was an instance in lib/DB/Schema/Result/ProblemSet.pm of a boolean column, and so that package should load the InflateColumn::Boolean class. Also, all of the
__PACKAGE__->load_components
calls were made uniform.