mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 06:19:33 +00:00
chore: rename Codex references to Logos Storage in release tests
Replace all "Codex" branding in the release test workflow and supporting files: rename the K8s cluster, Terraform state key, secret, log paths, env var (CODEXDOCKERIMAGE → STORAGEDOCKERIMAGE), and test runner image (cs-codex-dist-tests → logos-storage-dist-tests) to align with the already-updated logos-storage-nim-cs-dist-tests repo in https://github.com/logos-storage/logos-storage-nim-cs-dist-tests/pull/124. Also fix the dotnet test path to the correct Tests/LogosStorageReleaseTests directory.
This commit is contained in:
parent
117bc74099
commit
661308deb1
@ -4,7 +4,7 @@ terraform {
|
||||
s3 = "https://fra1.digitaloceanspaces.com"
|
||||
}
|
||||
bucket = "codex-infra-terraform"
|
||||
key = "clusters/codex-dist-tests-do-ams3/terraform.tfstate"
|
||||
key = "clusters/logos-storage-dist-tests-do-ams3/terraform.tfstate"
|
||||
region = "fra1"
|
||||
|
||||
skip_credentials_validation = true
|
||||
@ -2,7 +2,7 @@
|
||||
module "doks" {
|
||||
source = "../modules/doks"
|
||||
|
||||
name = "codex-dist-tests"
|
||||
name = "logos-storage-dist-tests"
|
||||
region = var.region
|
||||
kubernetes_version = "1.34.5-do.2"
|
||||
kubernetes_ha = true
|
||||
16
.github/release/job-release-tests.yaml
vendored
16
.github/release/job-release-tests.yaml
vendored
@ -22,7 +22,7 @@ spec:
|
||||
workload-type: "tests-runners-ci"
|
||||
containers:
|
||||
- name: runner
|
||||
image: logosstorage/cs-codex-dist-tests:latest
|
||||
image: logosstorage/logos-storage-dist-tests:latest
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
@ -31,15 +31,15 @@ spec:
|
||||
- name: KUBECONFIG
|
||||
value: "/opt/kubeconfig.yaml"
|
||||
- name: LOGPATH
|
||||
value: "/var/log/codex-${TEST_TYPE}"
|
||||
value: "/var/log/storage-${TEST_TYPE}"
|
||||
- name: BRANCH
|
||||
value: "${BRANCH}"
|
||||
- name: SOURCE
|
||||
value: "${SOURCE}"
|
||||
- name: RUNID
|
||||
value: "${RUNID}"
|
||||
- name: CODEXDOCKERIMAGE
|
||||
value: "${CODEXDOCKERIMAGE}"
|
||||
- name: STORAGEDOCKERIMAGE
|
||||
value: "${STORAGEDOCKERIMAGE}"
|
||||
- name: TESTID
|
||||
value: "${TESTID}"
|
||||
- name: TESTS_TYPE
|
||||
@ -49,13 +49,13 @@ spec:
|
||||
mountPath: /opt/kubeconfig.yaml
|
||||
subPath: kubeconfig.yaml
|
||||
- name: logs
|
||||
mountPath: /var/log/codex-${TEST_TYPE}
|
||||
args: ["dotnet", "test", "Tests/CodexReleaseTests"]
|
||||
mountPath: /var/log/storage-${TEST_TYPE}
|
||||
args: ["dotnet", "test", "Tests/LogosStorageReleaseTests"]
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: kubeconfig
|
||||
secret:
|
||||
secretName: codex-dist-tests-app-kubeconfig
|
||||
secretName: storage-dist-tests-app-kubeconfig
|
||||
- name: logs
|
||||
hostPath:
|
||||
path: /var/log/codex-${TEST_TYPE}
|
||||
path: /var/log/storage-${TEST_TYPE}
|
||||
|
||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -9,7 +9,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'cs-dist-tests branch to run tests from'
|
||||
description: 'dist-tests branch to run tests from'
|
||||
required: false
|
||||
default: 'master'
|
||||
type: string
|
||||
@ -185,7 +185,7 @@ jobs:
|
||||
path: ${{ env.build_dir }}/${{ env.c_bindings_lib }}.zip
|
||||
if-no-files-found: error
|
||||
|
||||
# Build Docker dist-tests image
|
||||
# Build Docker logosstorage/logos-storage-nim:latest-dist-tests image for Logos Storage nodes in the cluster
|
||||
build-docker-dist-tests:
|
||||
name: Build Docker dist-tests image
|
||||
if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'
|
||||
@ -210,11 +210,11 @@ jobs:
|
||||
TF_VAR_do_token: ${{ secrets.RELEASE_TESTS_DO_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.RELEASE_TESTS_SPACES_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.RELEASE_TESTS_SPACES_SECRET_KEY }}
|
||||
CODEXDOCKERIMAGE: ${{ needs.build-docker-dist-tests.outputs.logos_storage_image }}
|
||||
STORAGEDOCKERIMAGE: ${{ needs.build-docker-dist-tests.outputs.logos_storage_image }}
|
||||
TEST_TYPE: release-tests
|
||||
BRANCH: ${{ inputs.branch || 'master' }}
|
||||
SOURCE: https://github.com/logos-storage/logos-storage-nim-cs-dist-tests
|
||||
TF_DIR: .github/release/clusters/codex-dist-tests-do-ams3
|
||||
TF_DIR: .github/release/clusters/logos-storage-dist-tests-do-ams3
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -241,7 +241,7 @@ jobs:
|
||||
run: terraform apply -auto-approve
|
||||
|
||||
- name: Get kubeconfig
|
||||
run: doctl kubernetes cluster kubeconfig save codex-dist-tests-do-ams3
|
||||
run: doctl kubernetes cluster kubeconfig save logos-storage-dist-tests-do-ams3
|
||||
|
||||
- name: Create in-cluster app kubeconfig secret
|
||||
run: |
|
||||
@ -254,7 +254,7 @@ jobs:
|
||||
export SERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
|
||||
export CA=$(kubectl config view --minify --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}')
|
||||
|
||||
kubectl create secret generic codex-dist-tests-app-kubeconfig \
|
||||
kubectl create secret generic storage-dist-tests-app-kubeconfig \
|
||||
--from-file=kubeconfig.yaml=<(envsubst < .github/release/kubeconfig-template.yaml) \
|
||||
-n default
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user