Skip to content

Commit

Permalink
test(taiko-client): introduce blob-server and blob-l1-beacon hive tes…
Browse files Browse the repository at this point in the history
…ts (#18121)
  • Loading branch information
mask-pp authored Sep 18, 2024
1 parent f0ab1e1 commit c544fe8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/taiko-client--hive_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'option.hive-test')
name: hive tests
runs-on: [ubuntu-latest]
timeout-minutes: 15
timeout-minutes: 20

steps:
- name: Cancel Previous Runs
Expand Down
46 changes: 45 additions & 1 deletion packages/taiko-client/integration_test/hive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestHiveHandler(t *testing.T) {

clientGroups := [][]string{
{
"taiko/anvil",
"anvil",
"taiko/taiko-geth",
"taiko/driver",
"taiko/proposer",
Expand Down Expand Up @@ -46,6 +46,50 @@ func TestHiveHandler(t *testing.T) {
t.Run("taiko-reorg/taiko-reorg/clusters(1)", func(t *testing.T) {
testDenebReorg(t, "taiko-reorg/taiko-reorg", [][]string{clientGroups[0]})
})

t.Run("taiko-blob/blob-server", func(t *testing.T) {
testBlobAPI(t, "taiko-blob/blob-server", []string{
"geth",
"prysm/prysm-bn",
"prysm/prysm-vc",
"taiko/taiko-geth",
"taiko/driver",
"taiko/proposer",
"taiko/prover",
"storage/redis",
"storage/postgres",
"blobscan/blobscan-api",
"blobscan/blobscan-indexer",
})
})

t.Run("taiko-blob/blob-l1-beacon", func(t *testing.T) {
testBlobAPI(t, "taiko-blob/blob-l1-beacon", []string{
"geth",
"prysm/prysm-bn",
"prysm/prysm-vc",
"taiko/taiko-geth",
"taiko/driver",
"taiko/proposer",
"taiko/prover",
})
})
}

func testBlobAPI(t *testing.T, pattern string, clients []string) {
handler, err := hivesim.NewHiveFramework(&hivesim.HiveConfig{
BuildOutput: false,
ContainerOutput: true,
BaseDir: os.Getenv("HIVE_DIR"),
SimPattern: "taiko",
SimTestPattern: pattern,
ClientGroups: [][]string{clients},
})
assert.NoError(t, err)

failedCount, err := handler.Run(context.Background())
assert.NoError(t, err)
assert.Equal(t, 0, failedCount)
}

func testDenebGenesis(t *testing.T, simPattern string, clientGroups [][]string) {
Expand Down

0 comments on commit c544fe8

Please sign in to comment.