refactor: move build errors out of schema #7682
Annotations
9 errors
backend/schema/validate_test.go#L510
=== RUN TestValidate/DuplicateConfigs
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "4:21-21: duplicate config \"FTL_ENDPOINT\", first defined at 3:20",
- "5:21-21: duplicate config \"FTL_ENDPOINT\", first defined at 3:20",
+ "4:21: duplicate config \"FTL_ENDPOINT\", first defined at 3:20",
+ "5:21: duplicate config \"FTL_ENDPOINT\", first defined at 3:20",
}
--- FAIL: TestValidate/DuplicateConfigs (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/DuplicateSecrets
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "4:6-6: duplicate secret \"MY_SECRET\", first defined at 3:6",
- "5:6-6: duplicate secret \"MY_SECRET\", first defined at 3:6",
+ "4:6: duplicate secret \"MY_SECRET\", first defined at 3:6",
+ "5:6: duplicate secret \"MY_SECRET\", first defined at 3:6",
}
--- FAIL: TestValidate/DuplicateSecrets (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/DuplicateDatabases
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "4:6-6: duplicate database \"MY_DB\", first defined at 3:6",
+ "4:6: duplicate database \"MY_DB\", first defined at 3:6",
}
--- FAIL: TestValidate/DuplicateDatabases (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/InvalidFSM
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "4:13-13: unknown reference \"one.C\", is the type annotated and exported?",
- "6:6-6: \"FSM\" has no start states",
- "7:18-18: unknown source verb \"one.C\"",
- "7:27-27: destination state \"one.B\" must be a sink but is verb",
+ "4:13: unknown reference \"one.C\", is the type annotated and exported?",
+ "6:6: \"FSM\" has no start states",
+ "7:18: unknown source verb \"one.C\"",
+ "7:27: destination state \"one.B\" must be a sink but is verb",
}
--- FAIL: TestValidate/InvalidFSM (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/DuplicateFSM
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "14:6-6: duplicate fsm \"FSM\", first defined at 9:6",
+ "14:6: duplicate fsm \"FSM\", first defined at 9:6",
}
--- FAIL: TestValidate/DuplicateFSM (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/NonFSMVerbsWithRetry
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "4:7-7: retries can only be added to subscribers or FSM transitions",
- "6:7-7: retries can only be added to subscribers or FSM transitions",
+ "4:7: retries can only be added to subscribers or FSM transitions",
+ "6:7: retries can only be added to subscribers or FSM transitions",
}
--- FAIL: TestValidate/NonFSMVerbsWithRetry (0.01s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/InvalidRetryDurations
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "10:7-7: retry must have a minimum backoff",
- "12:7-7: retry must have a minimum backoff",
- "14:7-7: could not parse min backoff duration: could not parse retry duration: duration has unit \"m\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
- "17:7-7: verb can not have multiple instances of retry",
- "19:7-7: could not parse min backoff duration: could not parse retry duration: duration has unknown unit \"mins\" - use 'd', 'h', 'm' or 's', eg '1d' or '30s'",
- "21:7-7: max backoff duration (1s) needs to be at least as long as initial backoff (1m)",
- "23:7-7: could not parse min backoff duration: retry backoff can not be larger than 1d",
- "25:7-7: can not define a backoff duration when retry count is 0 and no catch is declared",
- "30:7-7: catch can only be defined on verbs",
- "4:7-7: could not parse min backoff duration: could not parse retry duration: duration has unit \"m\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
- "6:7-7: could not parse min backoff duration: could not parse retry duration: duration has unit \"d\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
- "8:7-7: could not parse min backoff duration: retry must have a minimum backoff of 1s",
+ "10:7: retry must have a minimum backoff",
+ "12:7: retry must have a minimum backoff",
+ "14:7: could not parse min backoff duration: could not parse retry duration: duration has unit \"m\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
+ "17:7: verb can not have multiple instances of retry",
+ "19:7: could not parse min backoff duration: could not parse retry duration: duration has unknown unit \"mins\" - use 'd', 'h', 'm' or 's', eg '1d' or '30s'",
+ "21:7: max backoff duration (1s) needs to be at least as long as initial backoff (1m)",
+ "23:7: could not parse min backoff duration: retry backoff can not be larger than 1d",
+ "25:7: can not define a backoff duration when retry count is 0 and no catch is declared",
+ "30:7: catch can only be defined on verbs",
+ "4:7: could not parse min backoff duration: could not parse retry duration: duration has unit \"m\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
+ "6:7: could not parse min backoff duration: could not parse retry duration: duration has unit \"d\" out of order - units need to be ordered from largest to smallest - eg '1d3h2m'",
+ "8:7: could not parse min backoff duration: retry must have a minimum backoff of 1s",
}
--- FAIL: TestValidate/InvalidRetryDurations (0.03s)
|
backend/schema/validate_test.go#L510
=== RUN TestValidate/InvalidPubSub
backend/schema/validate_test.go:510: Expected values to be equal:
[]string{
- "20:6-6: verb wrongEventType: request type test.eventA differs from subscription's event type test.eventB",
- "23:6-6: verb SourceCantSubscribe: must be a sink to subscribe but found response type test.eventB",
- "23:6-6: verb SourceCantSubscribe: request type Unit differs from subscription's event type test.eventB",
- "26:6-6: verb EmptyCantSubscribe: request type Unit differs from subscription's event type test.eventB",
- "7:5-5: invalid name: must consist of only letters, numbers and underscores, and start with a lowercase letter.",
+ "20:6: verb wrongEventType: request type test.eventA differs from subscription's event type test.eventB",
+ "23:6: verb SourceCantSubscribe: must be a sink to subscribe but found response type test.eventB",
+ "23:6: verb SourceCantSubscribe: request type Unit differs from subscription's event type test.eventB",
+ "26:6: verb EmptyCantSubscribe: request type Unit differs from subscription's event type test.eventB",
+ "7:5: invalid name: must consist of only letters, numbers and underscores, and start with a lowercase letter.",
}
--- FAIL: TestValidate/InvalidPubSub (0.01s)
|
|
This job failed
Loading