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

[Meta] Create a WMAgent/WMCore-dev image to run unittests #11978

Open
7 tasks
d-ylee opened this issue May 3, 2024 · 4 comments
Open
7 tasks

[Meta] Create a WMAgent/WMCore-dev image to run unittests #11978

d-ylee opened this issue May 3, 2024 · 4 comments
Assignees

Comments

@d-ylee
Copy link
Contributor

d-ylee commented May 3, 2024

Impact of the new feature
Create a development image of WMAgent/WMCore that includes unittests and necessary dependencies to run unittests. Unit tests should be fixed if necessary, to adapt to new environment.

Is your feature request related to a problem? Please describe.
Related to #11568 , if we want to run unittests in containers, we cannot use the production WMAgent image, since it does not contain unittests.

Describe the solution you'd like
Run unit tests in Alma9 with docker. The main changes while doing this are:

  • Moving from Centos7 to Alma9
  • Running unit tests inside docker container, with bind mounting to /etc, /tmp, /cvmfs, etc
  • Moving from Python 3.7 to Python 3.9

Due to the above, there is a number of unit tests failing because of one bullet or another above, which I will be documenting in new issues and linking them to this one (converting this one a meta issue).

Describe alternatives you've considered

  • Similar to the current image for unittests, running all 3 services together: CouchDB + MariaDB + WMAgent

Additional context

@d-ylee
Copy link
Contributor Author

d-ylee commented Jun 1, 2024

I have been using a new Alma9 based image to run tests for WMCore. It can be found here: https://github.com/d-ylee/jenkins-test/tree/main/docker/wmcore-dev

@amaltaro
Copy link
Contributor

amaltaro commented Jun 1, 2024

@d-ylee I don't know if it helps in any shape or form, but yesterday I noticed that the test Alma9 image for MSUnmerged was using AlmaLinux directly instead of Cern Alma9 (I am sure there are some extra packages for the base image, even though I didn't check those).

Based on that, I created a new image to perform other tests and it's available in this commit (it brings in : dmwm/CMSKubernetes@3e32e13

@d-ylee
Copy link
Contributor Author

d-ylee commented Sep 16, 2024

I made a PR for the new image: dmwm/CMSKubernetes#1549

Please take a look!

@khurtado
Copy link
Contributor

khurtado commented Sep 26, 2024

@amaltaro @d-ylee I have created 3 new issues and I expect more to come as I look into the unit tests failures in the new environment. Since these are all related to the new WMCore-dev environment, I decided to convert this issue into a meta issue.

@khurtado khurtado changed the title Create a WMAgent/WMCore-dev image to run unittests [Meta] Create a WMAgent/WMCore-dev image to run unittests Sep 26, 2024
@khurtado khurtado changed the title [Meta] Create a WMAgent/WMCore-dev image to run unittests Create a WMAgent/WMCore-dev image to run unittests Sep 26, 2024
@khurtado khurtado changed the title Create a WMAgent/WMCore-dev image to run unittests [Meta] Create a WMAgent/WMCore-dev image to run unittests Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants