|
All the existing tests pass when I run tox, however, I am struggling to get api_func_v4 and cli_func_v4 to run even on the original main branch. Still working on it... |
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 0% with 374 lines in your changes missing coverage. Please review. @@ Coverage Diff @@
## main #3313 +/- ##
==========================================
- Coverage 95.75% 90.17% -5.58%
==========================================
Files 98 103 +5
Lines 6051 6425 +374
==========================================
Hits 5794 5794
- Misses 257 631 +374
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, something went wrong.
There was a problem hiding this comment.
@ptalbert thank you so much for tackling this! I think some of this might need updating to match our current testing environment, since pytest-gitlab was last updated in 2024 from what I can see. It might also help fix the test failures, as we recently also updated that to make it work on GitLab 18.x.
To make that a bit more manageable, would it make sense to split this into smaller PRs - e.g. prepare the changes needed so that the final PR is mostly just copying files? That would make things easier to review as well I think 🙇 thanks!
Sorry, something went wrong.
| services: | ||
| gitlab: | ||
| image: '${GITLAB_IMAGE}:${GITLAB_TAG}' | ||
| image: '${GITLAB_IMAGE:-gitlab/gitlab-ee}:${GITLAB_TAG:-latest}' |
There was a problem hiding this comment.
Could we maybe extract the preparation changes (everything that can be applied without moving the plugin) into a separate PR that we merge first? Just so we can focus on integration aspects here. Let me know otherwise I can also try that on my end.
Sorry, something went wrong.
There was a problem hiding this comment.
I didn't realize there was so much drift between the fixtures in pytest-gitlab and python-gitlab fixtures.
To hopefully simplify things, I've redone this PR using the current python-gitlab fixtures as the starting point. It adds the pytest-gitlab plugin but stops short of having the existing tests use any of it. A follow up PR can switch the tests over.
Hopefully this makes more sense. Let me know.
Sorry, something went wrong.
|
I suppose the codecov report is lighting up because this PR does not actually exercise the gitlab/testing/ code any more. As I see it the options are:
Doing #1 as a temporary solution seems best if we do not want to do #3 yet. #2 would be great but that is a large undertaking. |
Sorry, something went wrong.
Fixes: #3046
This takes the pytest-gitlab plugin from https://gitlab.com/thht_science_software/pytest-gitlab and puts it in gitlab/testing/. It is then exposed as a pytest plugin "gitlab" and the existing tests/ fixtures are removed.