diff --git a/.gitea/workflows/fixturenet-laconicd-test.yml b/.gitea/workflows/fixturenet-laconicd-test.yml deleted file mode 100644 index 2430ba0b..00000000 --- a/.gitea/workflows/fixturenet-laconicd-test.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Fixturenet-Laconicd-Test - -on: - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/fixturenet-laconicd-test' - schedule: - - cron: '1 13 * * *' - -jobs: - test: - name: "Run Laconicd fixturenet and Laconic CLI tests" - runs-on: ubuntu-latest - steps: - - name: 'Update' - run: apt-get update - - name: 'Setup jq' - run: apt-get install jq -y - - name: 'Check jq' - run: | - which jq - jq --version - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Run fixturenet-laconicd tests" - run: ./tests/fixturenet-laconicd/run-test.sh - - name: "Run laconic CLI tests" - run: ./tests/fixturenet-laconicd/run-cli-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml deleted file mode 100644 index 44156eae..00000000 --- a/.gitea/workflows/lint.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Lint Checks - -on: - pull_request: - branches: '*' - push: - branches: '*' - -jobs: - test: - name: "Run linter" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - - name: "Install Python" - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name : "Run flake8" - uses: py-actions/flake8@v2 - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml deleted file mode 100644 index b2776ec7..00000000 --- a/.gitea/workflows/publish.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Publish - -on: - push: - branches: - - main - - publish-test - paths-ignore: - - '.gitea/workflows/triggers/*' - -jobs: - publish: - name: "Build and publish" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - - name: "Get build info" - id: build-info - run: | - build_tag=$(./scripts/create_build_tag_file.sh) - echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Build local shiv package" - id: build - run: | - ./scripts/build_shiv_package.sh - result_code=$? - echo "package-file=$(ls ./package/*)" >> $GITHUB_OUTPUT - exit $result_code - - name: "Stage artifact file" - run: | - cp ${{ steps.build.outputs.package-file }} ./laconic-so - - name: "Create release" - uses: https://gitea.com/cerc-io/action-gh-release@gitea-v2 - with: - tag_name: ${{ steps.build-info.outputs.build-tag }} - # On the publish test branch, mark our release as a draft - # Hack using endsWith to workaround Gitea sometimes sending "publish-test" vs "refs/heads/publish-test" - draft: ${{ endsWith('publish-test', github.ref ) }} - files: ./laconic-so - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-container-registry.yml b/.gitea/workflows/test-container-registry.yml deleted file mode 100644 index 780c163c..00000000 --- a/.gitea/workflows/test-container-registry.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Container Registry Test - -on: - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/test-container-registry' - - '.gitea/workflows/test-container-registry.yml' - - 'tests/container-registry/run-test.sh' - schedule: # Note: coordinate with other tests to not overload runners at the same time of day - - cron: '6 19 * * *' - -jobs: - test: - name: "Run contaier registry hosting test on kind/k8s" - runs-on: ubuntu-22.04 - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Check cgroups version" - run: mount | grep cgroup - - name: "Install kind" - run: ./tests/scripts/install-kind.sh - - name: "Install Kubectl" - run: ./tests/scripts/install-kubectl.sh - - name: "Install ed" # Only needed until we remove the need to edit the spec file - run: apt update && apt install -y ed - - name: "Run container registry deployment test" - run: | - source /opt/bash-utils/cgroup-helper.sh - join_cgroup - ./tests/container-registry/run-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-database.yml b/.gitea/workflows/test-database.yml deleted file mode 100644 index cb96dcb8..00000000 --- a/.gitea/workflows/test-database.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Database Test - -on: - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/test-database' - - '.gitea/workflows/test-database.yml' - - 'tests/database/run-test.sh' - schedule: # Note: coordinate with other tests to not overload runners at the same time of day - - cron: '5 18 * * *' - -jobs: - test: - name: "Run database hosting test on kind/k8s" - runs-on: ubuntu-22.04 - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Check cgroups version" - run: mount | grep cgroup - - name: "Install kind" - run: ./tests/scripts/install-kind.sh - - name: "Install Kubectl" - run: ./tests/scripts/install-kubectl.sh - - name: "Run database deployment test" - run: | - source /opt/bash-utils/cgroup-helper.sh - join_cgroup - ./tests/database/run-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-deploy.yml b/.gitea/workflows/test-deploy.yml deleted file mode 100644 index b0d5194d..00000000 --- a/.gitea/workflows/test-deploy.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Deploy Test - -on: - pull_request: - branches: - - main - push: - branches: - - main - - ci-test - paths-ignore: - - '.gitea/workflows/triggers/*' - - -jobs: - test: - name: "Run deploy test suite" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Run deploy tests" - run: ./tests/deploy/run-deploy-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-external-stack.yml b/.gitea/workflows/test-external-stack.yml deleted file mode 100644 index 321bee70..00000000 --- a/.gitea/workflows/test-external-stack.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: External Stack Test - -on: - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/test-external-stack' - - '.gitea/workflows/test-external-stack.yml' - - 'tests/external-stack/run-test.sh' - schedule: # Note: coordinate with other tests to not overload runners at the same time of day - - cron: '8 19 * * *' - -jobs: - test: - name: "Run external stack test suite" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Run external stack tests" - run: ./tests/external-stack/run-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-k8s-deploy.yml b/.gitea/workflows/test-k8s-deploy.yml deleted file mode 100644 index bbd1d508..00000000 --- a/.gitea/workflows/test-k8s-deploy.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: K8s Deploy Test - -on: - pull_request: - branches: - - main - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/test-k8s-deploy' - - '.gitea/workflows/test-k8s-deploy.yml' - - 'tests/k8s-deploy/run-deploy-test.sh' - schedule: # Note: coordinate with other tests to not overload runners at the same time of day - - cron: '3 15 * * *' - -jobs: - test: - name: "Run deploy test suite on kind/k8s" - runs-on: ubuntu-22.04 - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Check cgroups version" - run: mount | grep cgroup - - name: "Install kind" - run: ./tests/scripts/install-kind.sh - - name: "Install Kubectl" - run: ./tests/scripts/install-kubectl.sh - - name: "Run k8s deployment test" - run: | - source /opt/bash-utils/cgroup-helper.sh - join_cgroup - ./tests/k8s-deploy/run-deploy-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-k8s-deployment-control.yml b/.gitea/workflows/test-k8s-deployment-control.yml deleted file mode 100644 index 3784451b..00000000 --- a/.gitea/workflows/test-k8s-deployment-control.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: K8s Deployment Control Test - -on: - pull_request: - branches: - - main - push: - branches: '*' - paths: - - '!**' - - '.gitea/workflows/triggers/test-k8s-deployment-control' - - '.gitea/workflows/test-k8s-deployment-control.yml' - - 'tests/k8s-deployment-control/run-test.sh' - schedule: # Note: coordinate with other tests to not overload runners at the same time of day - - cron: '3 30 * * *' - -jobs: - test: - name: "Run deployment control suite on kind/k8s" - runs-on: ubuntu-22.04 - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Check cgroups version" - run: mount | grep cgroup - - name: "Install kind" - run: ./tests/scripts/install-kind.sh - - name: "Install Kubectl" - run: ./tests/scripts/install-kubectl.sh - - name: "Run k8s deployment control test" - run: | - source /opt/bash-utils/cgroup-helper.sh - join_cgroup - ./tests/k8s-deployment-control/run-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-webapp.yml b/.gitea/workflows/test-webapp.yml deleted file mode 100644 index 8a3a60f9..00000000 --- a/.gitea/workflows/test-webapp.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Webapp Test - -on: - pull_request: - branches: - - main - push: - branches: - - main - - ci-test - paths-ignore: - - '.gitea/workflows/triggers/*' - -jobs: - test: - name: "Run webapp test suite" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Install wget" # 20240109 - Only needed until the executors are updated. - run: apt update && apt install -y wget - - name: "Run webapp tests" - run: ./tests/webapp-test/run-webapp-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index 5b94ae6a..00000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Smoke Test - -on: - pull_request: - branches: '*' - push: - branches: - - main - - ci-test - paths-ignore: - - '.gitea/workflows/triggers/*' - - -jobs: - test: - name: "Run basic test suite" - runs-on: ubuntu-latest - steps: - - name: "Clone project repository" - uses: actions/checkout@v3 - # At present the stock setup-python action fails on Linux/aarch64 - # Conditional steps below workaroud this by using deadsnakes for that case only - - name: "Install Python for ARM on Linux" - if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} - uses: deadsnakes/action@v3.0.1 - with: - python-version: '3.8' - - name: "Install Python cases other than ARM on Linux" - if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: "Print Python version" - run: python3 --version - - name: "Install shiv" - run: pip install shiv==1.0.6 - - name: "Generate build version file" - run: ./scripts/create_build_tag_file.sh - - name: "Build local shiv package" - run: ./scripts/build_shiv_package.sh - - name: "Run smoke tests" - run: ./tests/smoke-test/run-smoke-test.sh - - name: Notify Vulcanize Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} - - name: Notify DeepStack Slack on CI failure - if: ${{ always() && github.ref_name == 'main' }} - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ job.status }} - notify_when: 'failure' - env: - SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/triggers/fixturenet-laconicd-test b/.gitea/workflows/triggers/fixturenet-laconicd-test deleted file mode 100644 index 8a06eab0..00000000 --- a/.gitea/workflows/triggers/fixturenet-laconicd-test +++ /dev/null @@ -1,10 +0,0 @@ -Change this file to trigger running the fixturenet-laconicd-test CI job -Trigger -Trigger -Trigger -Trigger -Trigger -Trigger -Trigger -Trigger -Trigger diff --git a/.gitea/workflows/triggers/test-container-registry b/.gitea/workflows/triggers/test-container-registry deleted file mode 100644 index 0cc5eb23..00000000 --- a/.gitea/workflows/triggers/test-container-registry +++ /dev/null @@ -1,3 +0,0 @@ -Change this file to trigger running the test-container-registry CI job -Triggered: 2026-01-21 -Triggered: 2026-01-21 19:28:29 diff --git a/.gitea/workflows/triggers/test-database b/.gitea/workflows/triggers/test-database deleted file mode 100644 index f867b40b..00000000 --- a/.gitea/workflows/triggers/test-database +++ /dev/null @@ -1,2 +0,0 @@ -Change this file to trigger running the test-database CI job -Trigger test run diff --git a/.gitea/workflows/triggers/test-external-stack b/.gitea/workflows/triggers/test-external-stack deleted file mode 100644 index a92eb34f..00000000 --- a/.gitea/workflows/triggers/test-external-stack +++ /dev/null @@ -1,2 +0,0 @@ -Change this file to trigger running the external-stack CI job -trigger diff --git a/.gitea/workflows/triggers/test-k8s-deploy b/.gitea/workflows/triggers/test-k8s-deploy deleted file mode 100644 index f3cf0624..00000000 --- a/.gitea/workflows/triggers/test-k8s-deploy +++ /dev/null @@ -1,2 +0,0 @@ -Change this file to trigger running the test-k8s-deploy CI job -Trigger test on PR branch diff --git a/.github/workflows/fixturenet-eth.yml b/.github/workflows/fixturenet-eth.yml index a7f744ac..4be9f7a8 100644 --- a/.github/workflows/fixturenet-eth.yml +++ b/.github/workflows/fixturenet-eth.yml @@ -21,7 +21,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Generate build version file" run: ./scripts/create_build_tag_file.sh - name: "Build local shiv package" diff --git a/.github/workflows/fixturenet-laconicd.yml b/.github/workflows/fixturenet-laconicd.yml index a16c1fe6..c7082cbd 100644 --- a/.github/workflows/fixturenet-laconicd.yml +++ b/.github/workflows/fixturenet-laconicd.yml @@ -21,7 +21,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Generate build version file" run: ./scripts/create_build_tag_file.sh - name: "Build local shiv package" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8dde6e41..01e4bfee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,7 +25,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Build local shiv package" id: build run: | diff --git a/.github/workflows/test-container-registry.yml b/.github/workflows/test-container-registry.yml new file mode 100644 index 00000000..2d48b489 --- /dev/null +++ b/.github/workflows/test-container-registry.yml @@ -0,0 +1,43 @@ +name: Container Registry Test + +on: + push: + branches: + - main + paths: + - '!**' + - '.github/workflows/triggers/test-container-registry' + - '.github/workflows/test-container-registry.yml' + - 'tests/container-registry/run-test.sh' + schedule: + - cron: '6 19 * * *' + +jobs: + test: + name: "Run container registry hosting test on kind/k8s" + runs-on: ubuntu-22.04 + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv==1.0.8 + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Check cgroups version" + run: mount | grep cgroup + - name: "Install kind" + run: ./tests/scripts/install-kind.sh + - name: "Install Kubectl" + run: ./tests/scripts/install-kubectl.sh + - name: "Install ed" + run: sudo apt-get update && sudo apt-get install -y ed + - name: "Run container registry deployment test" + run: ./tests/container-registry/run-test.sh diff --git a/.github/workflows/test-database.yml b/.github/workflows/test-database.yml new file mode 100644 index 00000000..a09fb773 --- /dev/null +++ b/.github/workflows/test-database.yml @@ -0,0 +1,41 @@ +name: Database Test + +on: + push: + branches: + - main + paths: + - '!**' + - '.github/workflows/triggers/test-database' + - '.github/workflows/test-database.yml' + - 'tests/database/run-test.sh' + schedule: + - cron: '5 18 * * *' + +jobs: + test: + name: "Run database hosting test on kind/k8s" + runs-on: ubuntu-22.04 + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv==1.0.8 + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Check cgroups version" + run: mount | grep cgroup + - name: "Install kind" + run: ./tests/scripts/install-kind.sh + - name: "Install Kubectl" + run: ./tests/scripts/install-kubectl.sh + - name: "Run database deployment test" + run: ./tests/database/run-test.sh diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 8e8fc66b..bcf8467e 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -4,7 +4,8 @@ on: pull_request: branches: '*' push: - branches: '*' + branches: + - main jobs: test: @@ -20,7 +21,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Generate build version file" run: ./scripts/create_build_tag_file.sh - name: "Build local shiv package" diff --git a/.github/workflows/test-external-stack.yml b/.github/workflows/test-external-stack.yml new file mode 100644 index 00000000..320d57e6 --- /dev/null +++ b/.github/workflows/test-external-stack.yml @@ -0,0 +1,35 @@ +name: External Stack Test + +on: + push: + branches: + - main + paths: + - '!**' + - '.github/workflows/triggers/test-external-stack' + - '.github/workflows/test-external-stack.yml' + - 'tests/external-stack/run-test.sh' + schedule: + - cron: '8 19 * * *' + +jobs: + test: + name: "Run external stack test suite" + runs-on: ubuntu-latest + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv==1.0.8 + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Run external stack tests" + run: ./tests/external-stack/run-test.sh diff --git a/.github/workflows/test-k8s-deploy.yml b/.github/workflows/test-k8s-deploy.yml new file mode 100644 index 00000000..40d700dd --- /dev/null +++ b/.github/workflows/test-k8s-deploy.yml @@ -0,0 +1,44 @@ +name: K8s Deploy Test + +on: + pull_request: + branches: + - main + push: + branches: + - main + paths: + - '!**' + - '.github/workflows/triggers/test-k8s-deploy' + - '.github/workflows/test-k8s-deploy.yml' + - 'tests/k8s-deploy/run-deploy-test.sh' + schedule: + - cron: '3 15 * * *' + +jobs: + test: + name: "Run deploy test suite on kind/k8s" + runs-on: ubuntu-22.04 + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv==1.0.8 + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Check cgroups version" + run: mount | grep cgroup + - name: "Install kind" + run: ./tests/scripts/install-kind.sh + - name: "Install Kubectl" + run: ./tests/scripts/install-kubectl.sh + - name: "Run k8s deployment test" + run: ./tests/k8s-deploy/run-deploy-test.sh diff --git a/.github/workflows/test-k8s-deployment-control.yml b/.github/workflows/test-k8s-deployment-control.yml new file mode 100644 index 00000000..4d713547 --- /dev/null +++ b/.github/workflows/test-k8s-deployment-control.yml @@ -0,0 +1,44 @@ +name: K8s Deployment Control Test + +on: + pull_request: + branches: + - main + push: + branches: + - main + paths: + - '!**' + - '.github/workflows/triggers/test-k8s-deployment-control' + - '.github/workflows/test-k8s-deployment-control.yml' + - 'tests/k8s-deployment-control/run-test.sh' + schedule: + - cron: '30 3 * * *' + +jobs: + test: + name: "Run deployment control suite on kind/k8s" + runs-on: ubuntu-22.04 + steps: + - name: "Clone project repository" + uses: actions/checkout@v3 + - name: "Install Python" + uses: actions/setup-python@v4 + with: + python-version: '3.8' + - name: "Print Python version" + run: python3 --version + - name: "Install shiv" + run: pip install shiv==1.0.8 + - name: "Generate build version file" + run: ./scripts/create_build_tag_file.sh + - name: "Build local shiv package" + run: ./scripts/build_shiv_package.sh + - name: "Check cgroups version" + run: mount | grep cgroup + - name: "Install kind" + run: ./tests/scripts/install-kind.sh + - name: "Install Kubectl" + run: ./tests/scripts/install-kubectl.sh + - name: "Run k8s deployment control test" + run: ./tests/k8s-deployment-control/run-test.sh diff --git a/.github/workflows/test-webapp.yml b/.github/workflows/test-webapp.yml index 3b920828..f8fef8da 100644 --- a/.github/workflows/test-webapp.yml +++ b/.github/workflows/test-webapp.yml @@ -4,7 +4,8 @@ on: pull_request: branches: '*' push: - branches: '*' + branches: + - main jobs: test: @@ -20,7 +21,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Generate build version file" run: ./scripts/create_build_tag_file.sh - name: "Build local shiv package" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 599b2f9c..58ba3fdc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,8 @@ on: pull_request: branches: '*' push: - branches: '*' + branches: + - main jobs: test: @@ -20,7 +21,7 @@ jobs: - name: "Print Python version" run: python3 --version - name: "Install shiv" - run: pip install shiv + run: pip install shiv==1.0.8 - name: "Generate build version file" run: ./scripts/create_build_tag_file.sh - name: "Build local shiv package" diff --git a/.gitea/workflows/triggers/test-k8s-deployment-control b/.github/workflows/triggers/test-container-registry similarity index 100% rename from .gitea/workflows/triggers/test-k8s-deployment-control rename to .github/workflows/triggers/test-container-registry diff --git a/.github/workflows/triggers/test-database b/.github/workflows/triggers/test-database new file mode 100644 index 00000000..e69de29b diff --git a/.github/workflows/triggers/test-external-stack b/.github/workflows/triggers/test-external-stack new file mode 100644 index 00000000..e69de29b diff --git a/.github/workflows/triggers/test-k8s-deploy b/.github/workflows/triggers/test-k8s-deploy new file mode 100644 index 00000000..e69de29b diff --git a/.github/workflows/triggers/test-k8s-deployment-control b/.github/workflows/triggers/test-k8s-deployment-control new file mode 100644 index 00000000..e69de29b diff --git a/README.md b/README.md index 8fd4dc47..6c8f407c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ a "user" binary directory such as `~/bin` or perhaps `/usr/local/laconic` or pos Now, having selected that directory, download the latest release from [this page](https://github.com/cerc-io/stack-orchestrator/tags) into it (we're using `~/bin` below for concreteness but edit to suit if you selected a different directory). Also be sure that the destination directory exists and is writable: ```bash -curl -L -o ~/bin/laconic-so https://github.com/cerc-io/stack-orchestrator/releases/download/latest/laconic-so +curl -L -o ~/bin/laconic-so https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so ``` Give it execute permissions: @@ -52,7 +52,7 @@ Version: 1.1.0-7a607c2-202304260513 Save the distribution url to `~/.laconic-so/config.yml`: ```bash mkdir ~/.laconic-so -echo "distribution-url: https://github.com/cerc-io/stack-orchestrator/releases/download/latest/laconic-so" > ~/.laconic-so/config.yml +echo "distribution-url: https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so" > ~/.laconic-so/config.yml ``` ### Update diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 375a2d05..39b294fb 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -26,7 +26,7 @@ In addition to the pre-requisites listed in the [README](/README.md), the follow 1. Clone this repository: ``` - $ git clone https://git.vdb.to/cerc-io/stack-orchestrator.git + $ git clone https://github.com/cerc-io/stack-orchestrator.git ``` 2. Enter the project directory: diff --git a/pyproject.toml b/pyproject.toml index 638d4ce8..b1c98e22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dev = [ laconic-so = "stack_orchestrator.main:cli" [project.urls] -Homepage = "https://git.vdb.to/cerc-io/stack-orchestrator" +Homepage = "https://github.com/cerc-io/stack-orchestrator" [tool.setuptools.packages.find] where = ["."] diff --git a/scripts/cloud-init-dev-mode-install.yaml b/scripts/cloud-init-dev-mode-install.yaml index 7f9d9bd8..965afe3a 100644 --- a/scripts/cloud-init-dev-mode-install.yaml +++ b/scripts/cloud-init-dev-mode-install.yaml @@ -41,4 +41,4 @@ runcmd: - apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - systemctl enable docker - systemctl start docker - - git clone https://git.vdb.to/cerc-io/stack-orchestrator.git /home/ubuntu/stack-orchestrator + - git clone https://github.com/cerc-io/stack-orchestrator.git /home/ubuntu/stack-orchestrator diff --git a/scripts/cloud-init-user-mode-install.yaml b/scripts/cloud-init-user-mode-install.yaml index f98f21bc..bd02416c 100644 --- a/scripts/cloud-init-user-mode-install.yaml +++ b/scripts/cloud-init-user-mode-install.yaml @@ -31,5 +31,5 @@ runcmd: - apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - systemctl enable docker - systemctl start docker - - curl -L -o /usr/local/bin/laconic-so https://git.vdb.to/cerc-io/stack-orchestrator/releases/download/latest/laconic-so + - curl -L -o /usr/local/bin/laconic-so https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so - chmod +x /usr/local/bin/laconic-so diff --git a/scripts/quick-install-linux.sh b/scripts/quick-install-linux.sh index ea251c6b..3e925091 100755 --- a/scripts/quick-install-linux.sh +++ b/scripts/quick-install-linux.sh @@ -137,7 +137,7 @@ fi echo "**************************************************************************************" echo "Installing laconic-so" # install latest `laconic-so` -distribution_url=https://git.vdb.to/cerc-io/stack-orchestrator/releases/download/latest/laconic-so +distribution_url=https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so install_filename=${install_dir}/laconic-so mkdir -p ${install_dir} curl -L -o ${install_filename} ${distribution_url} diff --git a/setup.py b/setup.py index b295802f..2321691b 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( description="Orchestrates deployment of the Laconic stack", long_description=long_description, long_description_content_type="text/markdown", - url="https://git.vdb.to/cerc-io/stack-orchestrator", + url="https://github.com/cerc-io/stack-orchestrator", py_modules=["stack_orchestrator"], packages=find_packages(), install_requires=[requirements], diff --git a/stack_orchestrator/data/stacks/fixturenet-eth/README.md b/stack_orchestrator/data/stacks/fixturenet-eth/README.md index 6f1ec8e8..853ab90c 100644 --- a/stack_orchestrator/data/stacks/fixturenet-eth/README.md +++ b/stack_orchestrator/data/stacks/fixturenet-eth/README.md @@ -1,6 +1,6 @@ # fixturenet-eth -Instructions for deploying a local a geth + lighthouse blockchain "fixturenet" for development and testing purposes using laconic-stack-orchestrator (the installation of which is covered [here](https://git.vdb.to/cerc-io/stack-orchestrator)): +Instructions for deploying a local a geth + lighthouse blockchain "fixturenet" for development and testing purposes using laconic-stack-orchestrator (the installation of which is covered [here](https://github.com/cerc-io/stack-orchestrator)): ## Clone required repositories diff --git a/stack_orchestrator/data/stacks/fixturenet-laconic-loaded/README.md b/stack_orchestrator/data/stacks/fixturenet-laconic-loaded/README.md index b3cbe5eb..f5a1295f 100644 --- a/stack_orchestrator/data/stacks/fixturenet-laconic-loaded/README.md +++ b/stack_orchestrator/data/stacks/fixturenet-laconic-loaded/README.md @@ -7,11 +7,11 @@ Instructions for deploying a local Laconic blockchain "fixturenet" for developme **Note:** For building some NPMs, access to the @lirewine repositories is required. If you don't have access, see [this tutorial](/docs/laconicd-fixturenet.md) to run this stack ## 1. Install Laconic Stack Orchestrator -Installation is covered in detail [here](https://git.vdb.to/cerc-io/stack-orchestrator#user-mode) but if you're on Linux and already have docker installed it should be as simple as: +Installation is covered in detail [here](https://github.com/cerc-io/stack-orchestrator#user-mode) but if you're on Linux and already have docker installed it should be as simple as: ``` $ mkdir my-working-dir $ cd my-working-dir -$ curl -L -o ./laconic-so https://git.vdb.to/cerc-io/stack-orchestrator/releases/download/latest/laconic-so +$ curl -L -o ./laconic-so https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so $ chmod +x ./laconic-so $ export PATH=$PATH:$(pwd) # Or move laconic-so to ~/bin or your favorite on-path directory ``` diff --git a/stack_orchestrator/data/stacks/fixturenet-laconicd/README.md b/stack_orchestrator/data/stacks/fixturenet-laconicd/README.md index 17f96f6f..bb145ae6 100644 --- a/stack_orchestrator/data/stacks/fixturenet-laconicd/README.md +++ b/stack_orchestrator/data/stacks/fixturenet-laconicd/README.md @@ -3,11 +3,11 @@ Instructions for deploying a local Laconic blockchain "fixturenet" for development and testing purposes using laconic-stack-orchestrator. ## 1. Install Laconic Stack Orchestrator -Installation is covered in detail [here](https://git.vdb.to/cerc-io/stack-orchestrator#user-mode) but if you're on Linux and already have docker installed it should be as simple as: +Installation is covered in detail [here](https://github.com/cerc-io/stack-orchestrator#user-mode) but if you're on Linux and already have docker installed it should be as simple as: ``` $ mkdir my-working-dir $ cd my-working-dir -$ curl -L -o ./laconic-so https://git.vdb.to/cerc-io/stack-orchestrator/releases/download/latest/laconic-so +$ curl -L -o ./laconic-so https://github.com/cerc-io/stack-orchestrator/releases/latest/download/laconic-so $ chmod +x ./laconic-so $ export PATH=$PATH:$(pwd) # Or move laconic-so to ~/bin or your favorite on-path directory ``` diff --git a/stack_orchestrator/data/stacks/mobymask/README.md b/stack_orchestrator/data/stacks/mobymask/README.md index 92a21c9d..ef222cce 100644 --- a/stack_orchestrator/data/stacks/mobymask/README.md +++ b/stack_orchestrator/data/stacks/mobymask/README.md @@ -4,7 +4,7 @@ The MobyMask watcher is a Laconic Network component that provides efficient acce ## Deploy the MobyMask Watcher -The instructions below show how to deploy a MobyMask watcher using laconic-stack-orchestrator (the installation of which is covered [here](https://git.vdb.to/cerc-io/stack-orchestrator#install)). +The instructions below show how to deploy a MobyMask watcher using laconic-stack-orchestrator (the installation of which is covered [here](https://github.com/cerc-io/stack-orchestrator#install)). This deployment expects that ipld-eth-server's endpoints are available on the local machine at http://ipld-eth-server.example.com:8083/graphql and http://ipld-eth-server.example.com:8082. More advanced configurations are supported by modifying the watcher's [config file](../../config/watcher-mobymask/mobymask-watcher.toml).