Skip to content

Commit

Permalink
ci: Test if we're actually only cleaning up the expected Brancher ins…
Browse files Browse the repository at this point in the history
…tance
  • Loading branch information
tdgroot committed Dec 5, 2022
1 parent 7400356 commit 37f6d78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/test/magento/deploy_brancher.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
]);

$productionStage = $configuration->addStage('test', 'banaan.store');
$productionStage->addBrancherServer('hndeployintegr8');
$productionStage->addBrancherServer('hndeployintegr8')
->setLabels(['gitref='.\getenv('GITHUB_SHA') ?: 'unknown']);

return $configuration;
6 changes: 5 additions & 1 deletion ci/test/run-brancher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ $DP jq .hostnames[0] deployment-report.json -r -e
$DP jq .brancher_hypernodes[0] deployment-report.json -r -e

# Remove deployment report to make sure we can clean up using hnapi and labels matching
BRANCHER_INSTANCE=$($DP jq .brancher_hypernodes[0] deployment-report.json -r -e)
$DP rm -f deployment-report.json

# cleanup data
$DP hypernode-deploy cleanup test -vvv
$DP hypernode-deploy cleanup test -vvv | tee cleanup.log

# Run tests on cleanup
grep "Stopping brancher Hypernode ${BRANCHER_INSTANCE}..." cleanup.log

0 comments on commit 37f6d78

Please sign in to comment.