-
Notifications
You must be signed in to change notification settings - Fork 157
test(all): switch to use GitHub strategy matrix and fix flaky tests #828
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
Changes from all commits
8ae5f52
6d33329
5426209
4ef4807
583be88
8bfef37
1762f3b
4bf50de
d7661a4
367c90a
4a68307
5eff569
3f0ff65
7290157
1d272d9
dbf3f35
2dde768
1b6e5dc
da44d1b
c62cd4b
bf99b36
bdcf8b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ export const createStackWithLambdaFunction = (params: StackWithLambdaFunctionOpt | |
}; | ||
|
||
export const generateUniqueName = (name_prefix: string, uuid: string, runtime: string, testName: string): string => | ||
`${name_prefix}-${runtime}-${testName}-${uuid}`.substring(0, 64); | ||
`${name_prefix}-${runtime}-${uuid.substring(0,5)}-${testName}`.substring(0, 64); | ||
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. When test name is really long, the uuid is truncated on some resources. This results in name clashing when the same test cases are run at the same time. |
||
|
||
export const invokeFunction = async (functionName: string, times: number = 1, invocationMode: 'PARALLEL' | 'SEQUENTIAL' = 'PARALLEL', payload: FunctionPayload = {}): Promise<InvocationLogs[]> => { | ||
const invocationLogs: InvocationLogs[] = []; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export const RESOURCE_NAME_PREFIX = 'Logger-E2E'; | ||
export const TEST_CASE_TIMEOUT = 20_000; // 20 seconds | ||
export const SETUP_TIMEOUT = 300_000; // 300 seconds | ||
export const TEARDOWN_TIMEOUT = 200_000; | ||
export const ONE_MINUTE = 60 * 1000; | ||
export const TEST_CASE_TIMEOUT = ONE_MINUTE; | ||
export const SETUP_TIMEOUT = 5 * ONE_MINUTE; | ||
export const TEARDOWN_TIMEOUT = 5 * ONE_MINUTE; | ||
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. I like this syntax. More readable! |
||
export const STACK_OUTPUT_LOG_GROUP = 'LogGroupName'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const RESOURCE_NAME_PREFIX = 'Metrics-E2E'; | ||
export const ONE_MINUTE = 60 * 10_00; | ||
export const TEST_CASE_TIMEOUT = 90_000; // 90 seconds | ||
export const SETUP_TIMEOUT = 300_000; // 300 seconds | ||
export const TEARDOWN_TIMEOUT = 200_000; | ||
export const ONE_MINUTE = 60 * 1000; | ||
export const TEST_CASE_TIMEOUT = 3 * ONE_MINUTE; | ||
export const SETUP_TIMEOUT = 5 * ONE_MINUTE; | ||
export const TEARDOWN_TIMEOUT = 5 * ONE_MINUTE; |
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.
Outside of the scope of this PR, but we should rename the tracer folder to "tracer" for consistency. Created an issue:
#829
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.
#854