Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
939383ae
Commit
939383ae
authored
Apr 05, 2023
by
Shanmugam Ramasamy
Browse files
Update .gitlab-ci.yml
parent
58020503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
.gitlab-ci.yml
.gitlab-ci.yml
+5
-2
No files found.
.gitlab-ci.yml
View file @
939383ae
...
@@ -35,6 +35,7 @@ unit_tests:
...
@@ -35,6 +35,7 @@ unit_tests:
stage
:
test
stage
:
test
script
:
&selene-test-launcher-script
script
:
&selene-test-launcher-script
-
echo "Running selene resume from checkpoint test. "
-
echo "Running selene resume from checkpoint test. "
-
echo "In case of error check ${SELENE_ADLR_CI_PATH}/${CI_PIPELINE_ID}/${CI_JOB_NAME}/results directory for result logs."
-
pwd
-
pwd
-
export BUILD_DIR=`pwd`
-
export BUILD_DIR=`pwd`
-
export RUN_NAME=resume_${RUN_MODEL}_tp${TP_SIZE}_pp${PP_SIZE}_${NUM_NODES}nodes
-
export RUN_NAME=resume_${RUN_MODEL}_tp${TP_SIZE}_pp${PP_SIZE}_${NUM_NODES}nodes
...
@@ -66,6 +67,7 @@ unit_tests:
...
@@ -66,6 +67,7 @@ unit_tests:
-
echo "Finished job"
-
echo "Finished job"
-
source $PYTHON_VIRTUAL_ENV
-
source $PYTHON_VIRTUAL_ENV
-
pytest $BUILD_DIR/tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py
-
pytest $BUILD_DIR/tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py
-
if [ $? -ne 0 ]; then echo "Pytest failed. See ${SELENE_ADLR_CI_PATH}/${CI_PIPELINE_ID}/${CI_JOB_NAME}/results directory for result logs."; fi
-
echo "Completed the job"
-
echo "Completed the job"
rules
:
rules
:
-
if
:
$TEST_LEVEL =~ $TESTS_TO_RUN_ON_THIS_COMMIT || $CI_JOB_NAME =~ $TESTS_TO_RUN_ON_THIS_COMMIT || $CI_JOB_NAME =~ $TEST_REGEX_ON_THIS_COMMIT
-
if
:
$TEST_LEVEL =~ $TESTS_TO_RUN_ON_THIS_COMMIT || $CI_JOB_NAME =~ $TESTS_TO_RUN_ON_THIS_COMMIT || $CI_JOB_NAME =~ $TEST_REGEX_ON_THIS_COMMIT
...
@@ -82,6 +84,7 @@ unit_tests:
...
@@ -82,6 +84,7 @@ unit_tests:
stage
:
test
stage
:
test
script
:
&selene-test-launcher-script
script
:
&selene-test-launcher-script
-
echo "Running selene test"
-
echo "Running selene test"
-
echo "In case of error check ${SELENE_ADLR_CI_PATH}/${CI_PIPELINE_ID}/${CI_JOB_NAME}/results directory for result logs."
-
echo "$CI_MERGE_REQUEST_APPROVED"
-
echo "$CI_MERGE_REQUEST_APPROVED"
-
pwd
-
pwd
-
export BUILD_DIR=`pwd`
-
export BUILD_DIR=`pwd`
...
@@ -259,8 +262,8 @@ cleanup.selene:
...
@@ -259,8 +262,8 @@ cleanup.selene:
variables
:
variables
:
<<
:
[
*VARS
]
<<
:
[
*VARS
]
script
:
script
:
-
NUM_CLEANUP=`find ${SELENE_ADLR_CI_PATH}/* -type d -ctime +20 | wc -l`
-
NUM_CLEANUP=`find ${SELENE_ADLR_CI_PATH}/* -type d -ctime +20 |
grep -v data |
wc -l`
-
find ${SELENE_ADLR_CI_PATH}/* -type d -ctime +20 | xargs rm -rf
-
find ${SELENE_ADLR_CI_PATH}/* -type d -ctime +20 |
grep -v data |
xargs rm -rf
-
echo "Finished cleaning $NUM_CLEANUP directories older than 20 days everything in Selene"
-
echo "Finished cleaning $NUM_CLEANUP directories older than 20 days everything in Selene"
allow_failure
:
true
allow_failure
:
true
rules
:
rules
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment