Skip to content

Commit

Permalink
remove oldcommit check from ci drivers (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Feb 7, 2023
1 parent c8b83e9 commit 59bd649
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions ci/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ for pr in $open_pr_list; do

# get commit hash
commit=$(git log --pretty=format:'%h' -n 1)
if [ -f "$GDAS_CI_ROOT/PR/$pr/commit" ]; then
oldcommit=$(cat $GDAS_CI_ROOT/PR/$pr/commit)
if [ $oldcommit == $commit ]; then
# do no more for this PR, as the commit has already been tested
continue
fi
fi
echo "$commit" > $GDAS_CI_ROOT/PR/$pr/commit

# load modules
Expand Down
7 changes: 0 additions & 7 deletions ci/gw_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ for pr in $open_pr_list; do

# get commit hash
commit=$(git log --pretty=format:'%h' -n 1)
if [ -f "$GDAS_CI_ROOT/workflow/PR/$pr/commit" ]; then
oldcommit=$(cat $GDAS_CI_ROOT/workflow/PR/$pr/commit)
if [ $oldcommit == $commit ]; then
# do no more for this PR, as the commit has already been tested
continue
fi
fi
echo "$commit" > $GDAS_CI_ROOT/workflow/PR/$pr/commit

$my_dir/run_gw_ci.sh -d $GDAS_CI_ROOT/workflow/PR/$pr/global-workflow -o $GDAS_CI_ROOT/workflow/PR/$pr/output_${commit}
Expand Down

0 comments on commit 59bd649

Please sign in to comment.