From 103b6fa9ee62a56565c6d2ab92f7ef35c6fc9dc1 Mon Sep 17 00:00:00 2001 From: bloodearnest Date: Thu, 17 Oct 2024 08:49:19 +0100 Subject: [PATCH] Update to create_user changes in job-server Also, remove the defunct slack notification on failure, which didn't work, and has been superseeded by the workflows dashboard --- .github/workflows/job-server.yml | 12 ------------ job-server/local-setup.sh | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/job-server.yml b/.github/workflows/job-server.yml index e3a6cc4f..cba3e5d7 100644 --- a/.github/workflows/job-server.yml +++ b/.github/workflows/job-server.yml @@ -24,15 +24,3 @@ jobs: just _dotenv # we don't need a full devenv just job-server/configure username just job-server/create-workspace test-workspace - - - name: "Notify Slack on Failure" - # TODO: 2024-08-27 this does not work, gives the error "not_in_channel", despite all our bots being in the channel - if: failure() && github.ref_name == 'main' - uses: zuplo/github-action-slack-notify-build@cf8e7e66a21d76a8125ea9648979c30920195552 # v2 - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - with: - channel_id: "C069YDR4NCA" - status: "Airlock local job-server integration test failure" - color: danger - diff --git a/job-server/local-setup.sh b/job-server/local-setup.sh index ae312fc9..91a405c8 100755 --- a/job-server/local-setup.sh +++ b/job-server/local-setup.sh @@ -61,7 +61,7 @@ else fi # ensure user exists -docker compose exec job-server ./manage.py create_user "$ghusername" --output-checker --core-developer +docker compose exec job-server ./manage.py create_user "$ghusername" --output-checker --staff-area-administrator # create backend and store token echo "Getting AIRLOCK_API_TOKEN for $backend backend"