Skip to content

Commit

Permalink
Merge pull request #6070 from IntersectMBO/fmaste/voting-no-jq
Browse files Browse the repository at this point in the history
wb | enable cardano-profile
  • Loading branch information
mgmeier authored Feb 4, 2025
2 parents dbe4123 + a3ecaf5 commit 7c2c630
Show file tree
Hide file tree
Showing 57 changed files with 90,407 additions and 58,987 deletions.
11 changes: 10 additions & 1 deletion bench/cardano-profile/app/cardano-profile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import qualified Cardano.Benchmarking.Profile.Types as Types

data Cli =
Names
| NamesNoEra
| NamesCloudNoEra
| All
| ByName PrettyPrint String
Expand All @@ -43,6 +44,8 @@ main = do
case cli of
-- Print all profile names.
Names -> BSL8.putStrLn $ Aeson.encode Profiles.names
-- Print all profile names without the era suffix.
NamesNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesNoEra
-- Print all cloud profile (-nomadperf) names.
NamesCloudNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesCloudNoEra
-- Print a map with all profiles, with an optional overlay.
Expand Down Expand Up @@ -111,11 +114,17 @@ cliParser = OA.hsubparser $
(pure Names)
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All profiles names")
)
<>
OA.command "names-noera"
(OA.info
(pure NamesNoEra)
(OA.fullDesc <> OA.header "names-noera" <> OA.progDesc "All profiles names (no era suffix)")
)
<>
OA.command "names-cloud-noera"
(OA.info
(pure NamesCloudNoEra)
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All cloud profiles names (no era suffix)")
(OA.fullDesc <> OA.header "names-cloud-noera" <> OA.progDesc "All cloud profiles names (no era suffix)")
)
<>
OA.command "all"
Expand Down
5 changes: 4 additions & 1 deletion bench/cardano-profile/cardano-profile.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data-files: data/all-profiles.json
data/ci-test-bage.json
data/genesis/epoch-timeline.json
data/genesis/overlays/*.json
data/presets/*.json
data/test/default-coay/*.json
data/test/chainsync-early-alonzo-coay/*.json
data/test/chainsync-early-byron-coay/*.json
Expand Down Expand Up @@ -55,14 +56,16 @@ library
, Cardano.Benchmarking.Profile.Builtin.Plutuscall
, Cardano.Benchmarking.Profile.Builtin.Scenario.Base
, Cardano.Benchmarking.Profile.Builtin.Scenario.Chainsync
, Cardano.Benchmarking.Profile.Builtin.Scenario.Latency
, Cardano.Benchmarking.Profile.Builtin.Scenario.Idle
, Cardano.Benchmarking.Profile.Builtin.Scenario.TracerOnly
, Cardano.Benchmarking.Profile.Extra.Scaling
, Cardano.Benchmarking.Profile.Extra.Voting
, Cardano.Benchmarking.Profile.NodeSpecs
, Cardano.Benchmarking.Profile.Primitives
, Cardano.Benchmarking.Profile.Vocabulary
, Cardano.Benchmarking.Profile.Types
, Cardano.Benchmarking.Profile.Workload.Latency
, Cardano.Benchmarking.Profile.Workload.Voting
build-depends: base >=4.12 && <5
, time
, aeson
Expand Down
Loading

0 comments on commit 7c2c630

Please sign in to comment.