-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
152 changed files
with
36,577 additions
and
430 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
name: K8s Deploy Test | ||
|
||
on: | ||
pull_request: | ||
branches: '*' | ||
push: | ||
branches: | ||
- main | ||
- ci-test | ||
paths-ignore: | ||
- '.gitea/workflows/triggers/*' | ||
|
||
# Needed until we can incorporate docker startup into the executor container | ||
env: | ||
DOCKER_HOST: unix:///var/run/dind.sock | ||
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" | ||
runs-on: ubuntu-latest | ||
name: "Run deploy test suite on kind/k8s" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: "Clone project repository" | ||
uses: actions/checkout@v3 | ||
|
@@ -41,15 +38,15 @@ jobs: | |
run: ./scripts/create_build_tag_file.sh | ||
- name: "Build local shiv package" | ||
run: ./scripts/build_shiv_package.sh | ||
- name: Start dockerd # Also needed until we can incorporate into the executor | ||
- 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: | | ||
dockerd -H $DOCKER_HOST --userland-proxy=false & | ||
sleep 5 | ||
- name: "Install Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
- name: "Install Kind" | ||
run: go install sigs.k8s.io/[email protected] | ||
- name: "Debug Kind" | ||
run: kind create cluster --retain && docker logs kind-control-plane | ||
source /opt/bash-utils/cgroup-helper.sh | ||
join_cgroup | ||
./tests/k8s-deploy/run-deploy-test.sh | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Change this file to trigger running the fixturenet-eth-plugeth-test CI job | ||
trigger | ||
trigger |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Change this file to trigger running the fixturenet-laconicd-test CI job | ||
|
||
Trigger | ||
Trigger |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Change this file to trigger running the test-k8s-deploy CI job | ||
Trigger test on PR branch |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ pydantic==1.10.9 | |
tomli==2.0.1 | ||
validators==0.22.0 | ||
kubernetes>=28.1.0 | ||
humanfriendly>=10.0 |
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
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
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
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
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
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
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
36 changes: 36 additions & 0 deletions
36
stack_orchestrator/data/compose/docker-compose-fixturenet-urbit.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: '3.7' | ||
|
||
services: | ||
# Runs an Urbit fake ship and attempts an app installation using given data | ||
# Uploads the app glob to given IPFS endpoint | ||
# From urbit_app_builds volume: | ||
# - takes app build from ${CERC_URBIT_APP}/build (waits for it to appear) | ||
# - takes additional mark files from ${CERC_URBIT_APP}/mar | ||
# - takes the docket file from ${CERC_URBIT_APP}/desk.docket-0 | ||
urbit-fake-ship: | ||
restart: unless-stopped | ||
image: tloncorp/vere | ||
environment: | ||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG} | ||
CERC_URBIT_APP: ${CERC_URBIT_APP} | ||
CERC_ENABLE_APP_INSTALL: ${CERC_ENABLE_APP_INSTALL:-true} | ||
CERC_IPFS_GLOB_HOST_ENDPOINT: ${CERC_IPFS_GLOB_HOST_ENDPOINT:-http://ipfs:5001} | ||
CERC_IPFS_SERVER_ENDPOINT: ${CERC_IPFS_SERVER_ENDPOINT:-http://ipfs:8080} | ||
entrypoint: ["bash", "-c", "./run-urbit-ship.sh && ./deploy-app.sh && tail -f /dev/null"] | ||
volumes: | ||
- urbit_data:/urbit | ||
- urbit_app_builds:/app-builds | ||
- ../config/urbit/run-urbit-ship.sh:/urbit/run-urbit-ship.sh | ||
- ../config/urbit/deploy-app.sh:/urbit/deploy-app.sh | ||
ports: | ||
- "80" | ||
healthcheck: | ||
test: ["CMD", "nc", "-v", "localhost", "80"] | ||
interval: 20s | ||
timeout: 5s | ||
retries: 15 | ||
start_period: 10s | ||
|
||
volumes: | ||
urbit_data: | ||
urbit_app_builds: |
Oops, something went wrong.