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

Seperate versions between moduletest and main #403

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

ITViking
Copy link
Contributor

What does this PR do?

This PR allows us to have seperate versions on WM and prod sites

Should this be tested by the reviewer and how?

Read it through and test it on canary

Any specific requests for how the PR should be reviewed?

What are the relevant tickets?

https://reload.atlassian.net/jira/software/c/projects/DDFDRIFT/boards/464?selectedIssue=DDFDRIFT-154

Copy link
Contributor

@kasperg kasperg left a comment

Choose a reason for hiding this comment

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

👍 I have some comments that I think at least should be considered before this is merged.

infrastructure/environments/dplplat01/sites.yaml Outdated Show resolved Hide resolved
infrastructure/environments/dplplat01/sites.yaml Outdated Show resolved Hide resolved
Comment on lines 38 to 48
function getWebmasterDplCmsRelease {
local wmRelease
wmRelease=$(yq eval ".sites.${1}.webmaster-cms-version" "${2}")
if [[ "${wmRelease}" == "null" ]]; then
echo ""
return
fi

echo "${wmRelease}"
return
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How will the caller syncEnvRepo handle an empty string as a response?

I am no expert in Bash but I wonder if it would be preferable if the function failed entirely if this is missing - or alternately used releaseTag with a message explaining that no information about a webmaster specific function could be found.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a copy of the already tried and tested function that finds the release for main. If there is an empty string that's what's returned. It then defaults to the latest image.

@ITViking ITViking force-pushed the seperate-versions-between-moduletest-and-main branch from 6f1abce to 91fc5bc Compare August 19, 2024 09:55
@ITViking ITViking requested a review from kasperg August 19, 2024 10:15
@ITViking
Copy link
Contributor Author

I've retested it. Main and moduletest of canary is now running seperate versions: 33.0 and 32.1 respectively

@ITViking ITViking force-pushed the seperate-versions-between-moduletest-and-main branch from 3515a73 to 074a813 Compare August 28, 2024 12:00
@ITViking ITViking merged commit 4f33c05 into main Aug 28, 2024
2 checks passed
@ITViking ITViking deleted the seperate-versions-between-moduletest-and-main branch August 28, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants