-
Notifications
You must be signed in to change notification settings - Fork 122
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: Add trace input via JSON #1265
Changes from all commits
039fa81
bc18a8c
de89a18
a4347f7
65fdd40
21a6f55
b7217c8
55aa940
ef41ba8
47a8970
199ca5c
935e2c9
9b07d2c
b204f92
5b82e96
c8fd833
0114a81
0f6537c
91c97aa
89182b7
4bab3dd
e4ae9d5
d88deec
81a504e
0a165d2
3a6d9f1
a81f92d
d24f732
ddea97c
4865984
bb24be3
7ab4f2c
d882ad1
4dcc9e0
54c7f61
fbec9d8
799f866
efd6d53
60d510f
c09ddee
53deeff
04e319f
b00b22a
e2175c2
d271175
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E happy-path test | ||
run: go run ./tests/e2e/... --tc happy-path | ||
run: go run ./tests/e2e/... --tc happy-path::default | ||
changeover-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
@@ -36,7 +36,7 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E changeover test | ||
run: go run ./tests/e2e/... --tc changeover | ||
run: go run ./tests/e2e/... --tc changeover::changeover | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From description
It seems to me like specifying testrunner is mostly relevant to the Asking because the cli for e2e tests is becoming quite verbose to run a simple test from the manual (golang defined) test cases There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also we should document the required format for each flag in a readme if that's not already done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You can see it by running --help, do you think that is good enough? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Okay, I can see that. I'm between making it optional and removing it for the test cases, and I think for now I will remove it for --tc. Can be added back later if we need it. |
||
democracy-reward-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
@@ -52,7 +52,7 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E democracy-reward tests | ||
run: go run ./tests/e2e/... --tc democracy-reward | ||
run: go run ./tests/e2e/... --tc democracy-reward::democracy-reward | ||
democracy-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
@@ -68,7 +68,7 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E democracy tests | ||
run: go run ./tests/e2e/... --tc democracy | ||
run: go run ./tests/e2e/... --tc democracy::democracy | ||
slash-throttle-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
@@ -84,7 +84,7 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E slash-throttle tests | ||
run: go run ./tests/e2e/... --tc slash-throttle | ||
run: go run ./tests/e2e/... --tc slash-throttle::slash-throttle | ||
multiconsumer-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
|
@@ -100,4 +100,4 @@ jobs: | |
with: | ||
go-version: "1.20" # The Go version to download (if necessary) and use. | ||
- name: E2E multi-consumer tests | ||
run: go run ./tests/e2e/... --tc multiconsumer | ||
run: go run ./tests/e2e/... --tc multiconsumer::multiconsumer |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
testdata | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ignore temporary folder that rapid puts test failures in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test that reads traces to the CI to check that trace-reading does not break. Could be expanded in the future