Skip to content

Commit

Permalink
Extract devnet profile
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Nov 11, 2024
1 parent 5e68042 commit da3d25b
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 10 deletions.
2 changes: 1 addition & 1 deletion buildkite/src/Command/MinaArtifact.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ let pipelineBuilder
, dirtyWhen = DebianVersions.dirtyWhen spec.debVersion
, path = "Release"
, name =
"${spec.prefix}${Network.capitalName spec.network}${DebianVersions.capitalName
"${spec.prefix}${DebianVersions.capitalName
spec.debVersion}${Profiles.toSuffixUppercase
spec.profile}${BuildFlags.toSuffixUppercase
spec.buildFlags}"
Expand Down
13 changes: 10 additions & 3 deletions buildkite/src/Constants/DockerVersions.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ let lowerName =
}
docker

let dependsOn =
let dependsOnPrefix =
\(docker : Docker)
-> \(prefix : Text)
-> \(network : Optional Network.Type)
-> \(profile : Profiles.Type)
-> \(binary : Artifacts.Type)
-> let profileSuffix = Profiles.toSuffixUppercase profile

let prefix = "MinaArtifact"

let suffix = "docker-image"

let maybeNetwork =
Expand Down Expand Up @@ -82,8 +81,16 @@ let dependsOn =
}
docker

let dependsOn =
\(docker : Docker)
-> \(network : Optional Network.Type)
-> \(profile : Profiles.Type)
-> \(binary : Artifacts.Type)
-> dependsOnPrefix docker "MinaArtifact" network profile binary

in { Type = Docker
, capitalName = capitalName
, lowerName = lowerName
, dependsOn = dependsOn
, dependsOnPrefix = dependsOnPrefix
}
33 changes: 33 additions & 0 deletions buildkite/src/Jobs/Release/MinaArtifactDevnetBullseye.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
let ArtifactPipelines = ../../Command/MinaArtifact.dhall

let Network = ../../Constants/Network.dhall

let Artifacts = ../../Constants/Artifacts.dhall

let Pipeline = ../../Pipeline/Dsl.dhall

let PipelineMode = ../../Pipeline/Mode.dhall

let PipelineTag = ../../Pipeline/Tag.dhall

in Pipeline.build
( ArtifactPipelines.pipeline
ArtifactPipelines.MinaBuildSpec::{
, artifacts =
[ Artifacts.Type.Daemon
, Artifacts.Type.LogProc
, Artifacts.Type.Archive
, Artifacts.Type.BatchTxn
, Artifacts.Type.Rosetta
, Artifacts.Type.ZkappTestTransaction
]
, networks = [ Network.Type.Devnet ]
, tags =
[ PipelineTag.Type.Long
, PipelineTag.Type.Release
, PipelineTag.Type.Stable
]
, mode = PipelineMode.Type.Stable
, prefix = "MinaArtifactDevnet"
}
)
36 changes: 36 additions & 0 deletions buildkite/src/Jobs/Release/MinaArtifactDevnetFocal.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
let ArtifactPipelines = ../../Command/MinaArtifact.dhall

let DebianVersions = ../../Constants/DebianVersions.dhall

let Network = ../../Constants/Network.dhall

let Artifacts = ../../Constants/Artifacts.dhall

let Pipeline = ../../Pipeline/Dsl.dhall

let PipelineMode = ../../Pipeline/Mode.dhall

let PipelineTag = ../../Pipeline/Tag.dhall

in Pipeline.build
( ArtifactPipelines.pipeline
ArtifactPipelines.MinaBuildSpec::{
, artifacts =
[ Artifacts.Type.Daemon
, Artifacts.Type.LogProc
, Artifacts.Type.Archive
, Artifacts.Type.BatchTxn
, Artifacts.Type.Rosetta
, Artifacts.Type.ZkappTestTransaction
]
, debVersion = DebianVersions.DebVersion.Focal
, networks = [ Network.Type.Devnet ]
, tags =
[ PipelineTag.Type.Long
, PipelineTag.Type.Release
, PipelineTag.Type.Stable
]
, mode = PipelineMode.Type.Stable
, prefix = "MinaArtifactDevnet"
}
)
3 changes: 2 additions & 1 deletion buildkite/src/Jobs/Release/MinaArtifactMainnetBullseye.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ in Pipeline.build
, Artifacts.Type.Rosetta
, Artifacts.Type.ZkappTestTransaction
]
, networks = [ Network.Type.Devnet, Network.Type.Mainnet ]
, networks = [ Network.Type.Mainnet ]
, tags =
[ PipelineTag.Type.Long
, PipelineTag.Type.Release
, PipelineTag.Type.Stable
]
, mode = PipelineMode.Type.Stable
, prefix = "MinaArtifactMainnet"
}
)
3 changes: 2 additions & 1 deletion buildkite/src/Jobs/Release/MinaArtifactMainnetFocal.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ in Pipeline.build
, Artifacts.Type.ZkappTestTransaction
]
, debVersion = DebianVersions.DebVersion.Focal
, networks = [ Network.Type.Devnet, Network.Type.Mainnet ]
, networks = [ Network.Type.Mainnet ]
, tags =
[ PipelineTag.Type.Long
, PipelineTag.Type.Release
, PipelineTag.Type.Stable
]
, mode = PipelineMode.Type.Stable
, prefix = "MinaArtifactMainnet"
}
)
6 changes: 4 additions & 2 deletions buildkite/src/Jobs/Test/TestnetIntegrationTests.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ let Network = ../../Constants/Network.dhall
let Artifacts = ../../Constants/Artifacts.dhall

let dependsOn =
Dockers.dependsOn
Dockers.dependsOnPrefix
Dockers.Type.Bullseye
"MinaArtifactDevnet"
(Some Network.Type.Devnet)
Profiles.Type.Standard
Artifacts.Type.Daemon
# Dockers.dependsOn
# Dockers.dependsOnPrefix
Dockers.Type.Bullseye
"MinaArtifactDevnet"
(None Network.Type)
Profiles.Type.Standard
Artifacts.Type.Archive
Expand Down
6 changes: 4 additions & 2 deletions buildkite/src/Jobs/Test/TestnetIntegrationTestsLong.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ let Network = ../../Constants/Network.dhall
let Artifacts = ../../Constants/Artifacts.dhall

let dependsOn =
Dockers.dependsOn
Dockers.dependsOnPrefix
Dockers.Type.Bullseye
"MinaArtifactDevnet"
(Some Network.Type.Devnet)
Profiles.Type.Standard
Artifacts.Type.Daemon
# Dockers.dependsOn
# Dockers.dependsOnPrefix
Dockers.Type.Bullseye
"MinaArtifactDevnet"
(None Network.Type)
Profiles.Type.Standard
Artifacts.Type.Archive
Expand Down

0 comments on commit da3d25b

Please sign in to comment.