forked from lsst-uk/phalanx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
:Merge branch 'master' of https://github.com/lsst-uk/phalanx-test
- Loading branch information
Showing
390 changed files
with
10,482 additions
and
821 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,24 @@ jobs: | |
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
python: | ||
- "3.11" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: lsst-sqre/run-tox@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
tox-envs: "typing,py,coverage-report" | ||
cache-key-prefix: test | ||
|
||
helm: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -42,7 +60,7 @@ jobs: | |
python-version: "3.11" | ||
|
||
- name: Install test dependencies | ||
run: pip install . | ||
run: make init | ||
|
||
- name: Expand modified charts | ||
run: expand-charts | ||
|
@@ -61,6 +79,7 @@ jobs: | |
minikube: | ||
name: Test deploy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
needs: [helm] | ||
|
||
steps: | ||
|
@@ -85,10 +104,11 @@ jobs: | |
- name: Setup Minikube | ||
if: steps.filter.outputs.minikube == 'true' | ||
uses: manusa/actions-setup-minikube@v2.7.2 | ||
uses: medyagh/setup-minikube@v0.0.14 | ||
with: | ||
minikube version: 'v1.28.0' | ||
kubernetes version: 'v1.25.2' | ||
kubernetes-version: "v1.27.3" | ||
cpus: max | ||
memory: 5500m # Linux virtual machines have 7GB of RAM | ||
|
||
- name: Test interaction with the cluster | ||
if: steps.filter.outputs.minikube == 'true' | ||
|
@@ -97,17 +117,17 @@ jobs: | |
- name: Download installer dependencies | ||
if: steps.filter.outputs.minikube == 'true' | ||
run: | | ||
curl -sSL -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.12.1/vault_1.12.1_linux_amd64.zip | ||
curl -sSL -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.14.0/vault_1.14.0_linux_amd64.zip | ||
unzip /tmp/vault.zip | ||
sudo mv vault /usr/local/bin/vault | ||
sudo chmod +x /usr/local/bin/vault | ||
sudo curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v2.6.7/argocd-linux-amd64 | ||
sudo curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v2.7.8/argocd-linux-amd64 | ||
sudo chmod +x /usr/local/bin/argocd | ||
sudo apt-get install socat | ||
sudo pip install -r installer/requirements.txt | ||
- name: Run installer | ||
timeout-minutes: 30 | ||
timeout-minutes: 15 | ||
if: steps.filter.outputs.minikube == 'true' | ||
run: | | ||
cd installer | ||
|
@@ -120,6 +140,7 @@ jobs: | |
kubectl get ingress -A | ||
- name: Wait for all applications to be healthy | ||
timeout-minutes: 15 | ||
if: steps.filter.outputs.minikube == 'true' | ||
run: | | ||
argocd app wait -l "argocd.argoproj.io/instance=science-platform" \ | ||
|
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,31 @@ | ||
name: Dependency Update | ||
|
||
"on": | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run neophile | ||
uses: lsst-sqre/run-neophile@v1 | ||
with: | ||
python-version: "3.11" | ||
mode: pr | ||
types: pre-commit | ||
app-id: ${{ secrets.NEOPHILE_APP_ID }} | ||
app-secret: ${{ secrets.NEOPHILE_PRIVATE_KEY }} | ||
|
||
- name: Report status | ||
if: always() | ||
uses: ravsamhq/notify-slack-action@v2 | ||
with: | ||
status: ${{ job.status }} | ||
notify_when: "failure" | ||
notification_title: "Periodic dependency update for {repo} failed" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} |
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ name: Link Check | |
workflow_dispatch: {} | ||
|
||
jobs: | ||
docs: | ||
linkcheck: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
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 |
---|---|---|
@@ -1,16 +1,33 @@ | ||
.PHONY: | ||
.PHONY: help | ||
help: | ||
@echo "Make targets for Phalanx:" | ||
@echo "make clean - Remove generated files" | ||
@echo "make init - Set up dev environment (install pre-commit hooks)" | ||
@echo "make update - Update pinned dependencies and run make init" | ||
@echo "make update-deps - Update pinned dependencies" | ||
|
||
.PHONY: | ||
.PHONY: clean | ||
clean: | ||
rm -rf .mypy_cache .ruff_cache .tox docs/_build | ||
make -C docs clean | ||
|
||
.PHONY: init | ||
init: | ||
pip install --editable . | ||
pip install --upgrade -r requirements/main.txt -r requirements/dev.txt | ||
rm -rf .tox | ||
pip install --upgrade pre-commit tox | ||
pre-commit install | ||
pip install -e ".[dev]" | ||
rm -rf .tox | ||
|
||
.PHONY: | ||
clean: | ||
rm -rf .tox | ||
make -C docs clean | ||
.PHONY: update | ||
update: update-deps init | ||
|
||
.PHONY: update-deps | ||
update-deps: | ||
pip install --upgrade pip-tools pip setuptools | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--generate-hashes --allow-unsafe \ | ||
--output-file requirements/main.txt requirements/main.in | ||
pip-compile --upgrade --resolver=backtracking --build-isolation \ | ||
--generate-hashes --allow-unsafe \ | ||
--output-file requirements/dev.txt requirements/dev.in |
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,11 @@ | ||
# Phalanx | ||
|
||
This is the Argo CD repository for the Rubin Science Platform. | ||
It stores the root Argo CD application, deployment configuration for the other applications, the installer, and other helper scripts. | ||
|
||
See [phalanx.lsst.io](https://phalanx.lsst.io/) for full documentation. | ||
|
||
Phalanx is developed by the [Vera C. Rubin Observatory](https://www.lsst.org/). | ||
|
||
A phalanx is a SQuaRE deployment (Science Quality and Reliability Engineering, the team responsible for the Rubin Science Platform). | ||
Phalanx is how we ensure that all of our services work together as a unit. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.