Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test multi-target deploys #15

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: CI
if: >-
(github.event_name == 'pull_request' && github.event.action != 'closed') || (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy'))
uses: access-nri/build-cd/.github/workflows/ci.yml@199-multi-target-deployments_rework-order
uses: access-nri/build-cd/.github/workflows/ci.yml@199-multi-target-deployments_changed-ci-config
with:
model: ${{ vars.NAME }}
# root-sbd: if different from vars.NAME
Expand All @@ -36,7 +36,7 @@ jobs:
pr-comment:
name: Comment
if: github.event_name == 'issue_comment'
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@199-multi-target-deployments_changed-ci-config
with:
model: ${{ vars.NAME }}
# root-sbd: if different from vars.NAME
Expand All @@ -47,7 +47,7 @@ jobs:
pr-closed:
name: Closed
if: github.event_name == 'pull_request' && github.event.action == 'closed'
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v3
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@199-multi-target-deployments_changed-ci-config
with:
model: ${{ vars.NAME }}
secrets: inherit
37 changes: 37 additions & 0 deletions config/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "./settings.schema.json",
"deployment": {
"Gadi": {
"Release": {
"0.20": {
"spack": "6812713cf470b473a607f0de0e8e1cf53f804fb7",
"spack-config": "2024.03.22"
},
"0.22": {
"spack": "21da7d7e2b5e2680cd9d2e0a2fb4a7d13d8baa9d",
"spack-config": "2024.11.27"
}
},
"Prerelease": {
"0.22": {
"spack": "21da7d7e2b5e2680cd9d2e0a2fb4a7d13d8baa9d",
"spack-config": "2024.11.27"
}
}
},
"GadiTest": {
"Release": {
"0.22": {
"spack": "21da7d7e2b5e2680cd9d2e0a2fb4a7d13d8baa9d",
"spack-config": "2024.11.27"
}
},
"Prerelease": {
"0.22": {
"spack": "21da7d7e2b5e2680cd9d2e0a2fb4a7d13d8baa9d",
"spack-config": "2024.11.27"
}
}
}
}
}
73 changes: 73 additions & 0 deletions config/settings.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@


{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"$schema": {
"const": "./settings.schema.json"
},
"deployment": {
"type": "object",
"properties": {
"Gadi": {
"type": "object",
"properties": {
"Release": {
"type": "object",
"patternProperties": {
"^.+$": {
"type": "object",
"properties": {
"spack": {
"type": "string"
},
"spack-config": {
"type": "string"
}
},
"additionalProperties": true,
"required": ["spack", "spack-config"]
}
},
"additionalProperties": true
},
"Prerelease": {
"type": "object",
"patternProperties": {
"^.+$": {
"type": "object",
"properties": {
"spack": {
"type": "string"
},
"spack-config": {
"type": "string"
}
},
"additionalProperties": true,
"required": ["spack", "spack-config"]
}
},
"additionalProperties": true
}
},
"additionalProperties": true,
"required": [
"Release",
"Prerelease"
]
}
},
"additionalProperties": true,
"required": [
"Gadi"
]
}
},
"additionalProperties": true,
"required": [
"$schema",
"deployment"
]
}
8 changes: 4 additions & 4 deletions spack.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This is a Spack Environment file.
# This is a Spack Environment file testing multi-target deployments!!!!
#
# It describes a set of packages to be installed, along with
# configuration settings.
# configuration settings.
spack:
specs:
- access-test@git.2024.11.15
- access-test@git.2024.11.16
packages:
oasis3-mct:
require:
Expand Down Expand Up @@ -34,5 +34,5 @@ spack:
- access-test
- oasis3-mct
projections:
access-test: '{name}/2024.11.15'
access-test: '{name}/2024.11.16'
oasis3-mct: '{name}/2023.11.09-{hash:7}'
Loading