This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
docs: Update troubleshoot guide with reset info #1552
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Core tests: Provision and bring up various services on devstack | |
name: Provisioning tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: | |
- '**' | |
schedule: | |
# run at 7:30 am M-F | |
- cron: '30 11 * * 1-5' | |
jobs: | |
run_ci: | |
runs-on: ${{ matrix.os }} | |
env: | |
DEVSTACK_WORKSPACE: /tmp | |
SHALLOW_CLONE: 1 | |
# Don't report metrics as real usage | |
DEVSTACK_METRICS_TESTING: ci | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 # Ubuntu 20.04 "Focal Fossa" | |
python-version: [ '3.8' ] | |
services: [ discovery+lms+forum ,registrar+lms, ecommerce+lms, edx_notes_api+lms, credentials+lms, xqueue] | |
fail-fast: false # some services can be flaky; let others run to completion even if one fails | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: installations and version upgrades | |
run: | | |
docker version | |
sudo apt-get update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal test" | |
sudo apt update | |
sudo apt install docker-ce containerd.io | |
docker version | |
docker-compose --version | |
- name: free up disk space | |
run: sudo apt remove --purge -y ghc-* azure-cli google-cloud-sdk hhvm llvm-* dotnet-* powershell mono-* php* ruby* | |
- name: set up requirements | |
run: make requirements | |
- name: clone repositories | |
run: make dev.clone.https | |
- name: pull images and print | |
run: | | |
make dev.pull.${{matrix.services}} | |
docker images --digests | grep latest | sort | |
- name: provision | |
run: make dev.provision.${{matrix.services}} | |
- name: dev.up | |
run: make dev.up.${{matrix.services}} | |
- name: dev.check | |
run: make dev.check.${{matrix.services}} | |
- name: notify on failure | |
if: ${{ failure() && github.ref == 'refs/heads/master' }} | |
uses: dawidd6/action-send-mail@v3 | |
with: | |
server_address: email-smtp.us-east-1.amazonaws.com | |
server_port: 465 | |
username: ${{secrets.EDX_SMTP_USERNAME}} | |
password: ${{secrets.EDX_SMTP_PASSWORD}} | |
subject: 'Failure: Devstack provisioning tests for ${{matrix.services}} #${{github.run_id}}' | |
to: [email protected] | |
from: github-actions <[email protected]> | |
body: | | |
Devstack provisioning tests in ${{github.repository}} for ${{matrix.services}} failed! For details see <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}>. | |
Runbook url: https://2u-internal.atlassian.net/wiki/spaces/AT/pages/16384920/Failure+Devstack+provisioning+tests+-+Runbook | |
- name: close alerts on success | |
if: ${{ !failure() && github.ref == 'refs/heads/master' }} | |
uses: dawidd6/action-send-mail@v3 | |
with: | |
server_address: email-smtp.us-east-1.amazonaws.com | |
server_port: 465 | |
username: ${{secrets.EDX_SMTP_USERNAME}} | |
password: ${{secrets.EDX_SMTP_PASSWORD}} | |
subject: 'Back to normal: Devstack provisioning tests for ${{matrix.services}} #${{github.run_id}}' | |
to: [email protected] | |
from: github-actions <[email protected]> | |
body: Devstack provisioning tests in ${{github.repository}} are back to normal for ${{matrix.services}} | |
- name: docs | |
run: make docs |