Repository navigation
AZP/RELEASE: Scheduled DRP testing - #10020
Conversation
272e4f6 to
20a1745
Compare
|
Test build with the main pipeline disabled: |
| then | ||
| launch=True | ||
| if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] | ||
| then |
There was a problem hiding this comment.
It was a bit more readable that way😪
There was a problem hiding this comment.
IMO it's less readable because it does not comply with the if nesting level
There was a problem hiding this comment.
"then" was definitely wrongly indented, thx
|
|
||
| # DRP release scheduled testing | ||
| if [ "${build_reason}" == "Schedule" ]; then | ||
| launch=True |
There was a problem hiding this comment.
shouldn't we check *DRP match under this branch?
There was a problem hiding this comment.
The scheduler is only set for the DRP pipeline, but it's better to be on the safe side.
| variables: | ||
| DOCKER_OPT_VOLUMES: -v /hpc/local:/hpc/local | ||
| REPO_MIRROR: harbor-pdc.nvidia.com | ||
| # REPO_MIRROR: harbor-pdc.nvidia.com |
There was a problem hiding this comment.
This was supposed to be a temp workaround, but as the PDC mirror is still down, let's keep using the main repo.
Alexey-Rivkin
left a comment
There was a problem hiding this comment.
Applied all remarks
|
|
||
| # DRP release scheduled testing | ||
| if [ "${build_reason}" == "Schedule" ]; then | ||
| launch=True |
There was a problem hiding this comment.
The scheduler is only set for the DRP pipeline, but it's better to be on the safe side.
| then | ||
| launch=True | ||
| if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] | ||
| then |
There was a problem hiding this comment.
It was a bit more readable that way😪
| variables: | ||
| DOCKER_OPT_VOLUMES: -v /hpc/local:/hpc/local | ||
| REPO_MIRROR: harbor-pdc.nvidia.com | ||
| # REPO_MIRROR: harbor-pdc.nvidia.com |
There was a problem hiding this comment.
This was supposed to be a temp workaround, but as the PDC mirror is still down, let's keep using the main repo.
c19d2f0 to
5baa559
Compare
| then | ||
| launch=True | ||
| if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] | ||
| then |
There was a problem hiding this comment.
IMO it's less readable because it does not comply with the if nesting level
| variables: | ||
| DOCKER_OPT_VOLUMES: -v /hpc/local:/hpc/local | ||
| REPO_MIRROR: harbor-pdc.nvidia.com | ||
| REPO_MIRROR: harbor.mellanox.com |
60321e8 to
f3255ec
Compare
|
@Alexey-Rivkin pls squash |
f3255ec to
1d42ca1
Compare
| if [ "${build_reason}" == "IndividualCI" ] || \ | ||
| [ "${build_reason}" == "ResourceTrigger" ] | ||
| # DRP release scheduled testing | ||
| if [ "${build_reason}" == "Schedule" ] && [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] |
There was a problem hiding this comment.
This is weird syntax are you using bash or posix? why use both, i would prefer to see this logic using case esac block its much readable in my opinion:
case $build_reason in
Schedule|*DRP)
launch=True
;;
IndividualCI|ResourceTrigger)
if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]]
then
# Release from DRP only if main pipeline is disabled
install_az_tools
launch=$(check_main_pipeline_status)
else
launch=True
fi
;;
PullRequest)
# In case of pull request, HEAD^ is the branch commit we merge with
range="$(git rev-parse HEAD^)..${build_sourceversion}"
for sha1 in `git log $range --format="%h"`
do
title=`git log -1 --format="%s" $sha1`
[[ "$title" == "${title_mask}"* ]] && launch=True;
done
;;
*)
echo "unsupported option $build_reason"
exit 1
;;
esac
There was a problem hiding this comment.
My purpose was not to refactor the code but to introduce minimal changes while following the existing syntax.
There was a problem hiding this comment.
As for the single vs. double brackets usage:
Single brackets do not support pattern matching with wildcards. That's why I had to make it double for the second condition check.
There was a problem hiding this comment.
I think you should learn what is the differance between bash and posix, this should work fine:
if [[ $build_reason = "Schedule" && $BUILD_DEFINITIONNAME = *"DRP" ]]
| if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] | ||
| then | ||
| # Release from DRP only if main pipeline is disabled | ||
| install_az_tools |
There was a problem hiding this comment.
I would call it from check_main_pipeline_status function as it is the one that needs it, in your implementation anyone who calls this function needs to call the install function before which seems redandent and confusing
There was a problem hiding this comment.
My first take was the same. The output from both functions (install_az_tools, check_main_pipeline_status) got mixed up in Azure, causing the "launch" variable to be assigned a long, meaningless value.
Also, the install function is called only for the DRP pipeline.
There was a problem hiding this comment.
Do we really have to install tools as part of test pipeline? Can't we do it as part of system setup?
There was a problem hiding this comment.
Removed az tools installation from CI and updated the documentation (internal link).
| - v*.*.x | ||
|
|
||
| schedules: | ||
| - cron: '0 0 * * *' |
There was a problem hiding this comment.
we probably should not run it nightly, once a week i smore then enough
There was a problem hiding this comment.
I'd better check it daily to catch it faster and make it easier to find the root cause.
There was a problem hiding this comment.
This is way too often, and since these processes are sensitive to false positive failures i dont want you (or me if you are not here) to have to monitor and debug on daily basis.
We also need to talk about who/what is monitoring this process this i snot something that only you should be aware of.
1d42ca1 to
53f14c9
Compare
|
Let's not merge it yet, we still dont have pdc harbor working and i dont want to push a fix soon just for harbor url |
| variables: | ||
| DOCKER_OPT_VOLUMES: -v /hpc/local:/hpc/local | ||
| REPO_MIRROR: harbor-pdc.nvidia.com | ||
| REPO_MIRROR: harbor.mellanox.com |
There was a problem hiding this comment.
Lets wait for the PDC harbor to work (next week) before we merge it
|
/azp run UCX PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
12fed65 to
afbb90f
Compare
| if [[ "$BUILD_DEFINITIONNAME" == *"DRP" ]] | ||
| then | ||
| # Release from DRP only if main pipeline is disabled | ||
| install_az_tools |
There was a problem hiding this comment.
Do we really have to install tools as part of test pipeline? Can't we do it as part of system setup?
fed9b40 to
fa1be8b
Compare
What
Add scheduled testing for the DRP release environment.
Why ?
https://jirasw.nvidia.com/browse/HPCINFRA-2291 (internal link)
How ?
Scheduled builds to create artifacts but not publish them.
Emergency release procedure:
The DRP release pipeline will check the status of the main release pipeline.
Only if main is disabled will it run the full release cycle including the artifact's publishing.