[9.0] Improve CI to include legacy adaptor#8248
Conversation
|
Todo (here or in another PR): add doc to explain how it works + to show MacOS compatibility ( |
11c4e0a to
99aeac7
Compare
532a6e2 to
1cb40f8
Compare
8f0d623 to
9eb1d5e
Compare
7271be7 to
e3b1d68
Compare
|
Two bugs were found @chrisburr @chaen (discussed F2F with Christophe, told me to pin):
If we have a group In the commit, we can see that I changed a call of getVO() or gConfig.getValue(f"{gBaseRegistrySection}/Groups/{group}/VO", "")
# to
gConfig.getValue(f"{gBaseRegistrySection}/Groups/{group}/VO", "") or getVO()
In the past, while testing this function we did this: res = jobStateUpdateClient.setJobStatusBulk(
jobID,
{
str(datetime.datetime.utcnow() + datetime.timedelta(hours=1)): {
"Status": JobStatus.WAITING,
"MinorStatus": "MinorStatus",
"Source": "Unknown",
},
}
False,
)
# ...
res = jobStateUpdateClient.setJobStatus(jobID, JobStatus.RUNNING)
# ...
assert res["Value"]["Status"] == JobStatus.RUNNINGThe test is wrong: while doing I did not fix |
0a9dfa9 to
c4511f2
Compare
c4511f2 to
80cc710
Compare
f02e45f to
7107442
Compare
5a495cc to
ff736bb
Compare
|
Other fix: Now, if a service is set as "legacy adapted" in the CS but not set in the legacy client ( (Before, only warn logs were emitted, and by default, a diset client were taken) |
074ebfd to
ce54da1
Compare
[3b20343] fix: Fixed ClientSelector to raise an error if the CS is badly configured [4b715ef] fix: Fixed doc, and went back on the client selector [ff736bb] docs: Add documentation to start the integration tests. [7107442] feat: Add legacy adaptor in CI [7ae3428] fix: Fixed to support better other branches [2066814] feat: Add diracx repo choice in the integration test [7859c6b] fix: Use JobStateUpdateClient instead of deactivating it [e3b1d68] fix: Resolved dirac-proxy-init issue with multi-VO [d2f99c0] fix: Resolved bug for setJobAttributes [fe09e19] fix: Fixed ClientWMS test and reversed TEST_DIRACX flag [1447a20] fix: Use opensearch db for job parametersDB [f6116aa] fix: Made mariadb works better [c4ab3f2] fix: Fixed CI to use sandoxes [a5a02bc] fix: Activate job endpoints in CI [a1bc1b1] fix: Applied changes to the ci workflows [282efcb] refactor: Moved down diracx installation to fix auth [ac22d9d] feat: Add DiracX tests into DIRAC CI, and use only latest tag. [0ebf454] fix: Moved up futureServices argument to prevent "Missing mandatory /DiracX/URL configuration" [d98b705] fix: Fixed small bug and refactored ClientSelector [8ce234c] fix: Small fixes with docker compose cmd and removed grep [08d9eb1] fix: Add filters to remove 'Client' from services name [bc44891] fix: Remove error when a future client is not available to warn instead [a1f553d] fix: Changed to make the legacy adaptor automatic. [3fb8c4d] fix: Fixed destroy command to support MacOSX [42df58d] fix: Going back, removed CI, and going to add it to DiracX [28b9789] fix: Small fix (forgot to change to docker**compose) [61384af] feat: Add in CI new legacy adapted services. [a3a7f5b] feat: Add legacy adaptor in CI
ce54da1 to
bcc565d
Compare
BEGINRELEASENOTES
*Integration Tests
FIX: Add in CI and in
integration_test.pylegacy adaptors.ENDRELEASENOTES