-
Notifications
You must be signed in to change notification settings - Fork 75
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
Optimize acceptance test CI #804
Conversation
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Codecov ReportBase: 73.76% // Head: 73.76% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
=======================================
Coverage 73.76% 73.76%
=======================================
Files 29 29
Lines 1776 1776
Branches 324 324
=======================================
Hits 1310 1310
Misses 372 372
Partials 94 94 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The settings of the |
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.
LG
const query = new FileContentsQuery() | ||
.setFileId(fileId); | ||
|
||
const data = await query.execute(this.client); |
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.
nit: we can skip the variable assignment return await query.execute(this.client)
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
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.
Fix CI failure - "ReferenceError: constants is not defined"
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
# Conflicts: # packages/server/tests/acceptance/rpc_chunk1.spec.ts
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
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.
LG, just a nit rename from chunk to batch or something better.
.github/workflows/acceptance.yml
Outdated
@@ -8,11 +8,23 @@ on: | |||
tags: [v*] | |||
|
|||
jobs: | |||
api: | |||
name: API | |||
api_chunk_1: |
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.
Do the chunks have any logic to the grouping?
If so let's name it appropriately.
If not maybe api_batch_1
etc is better.
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.
There isn't any speciffic logic to the grouping. I changed it from chunk
to batch
.
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
.github/workflows/acceptance.yml
Outdated
api: | ||
name: API | ||
api_batch_1: | ||
name: API Chunk 1 |
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.
nit: here and 2 below
name: API Chunk 1 | |
name: API Batch 1 |
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
# Conflicts: # packages/server/tests/acceptance/rpc_batch1.spec.ts
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description:
The Acceptance API CI takes up to 40 minutes to complete. This PR splits it into 3 smaller chunks to reduce the execution time.
Related issue(s):
Fixes #
Notes for reviewer:
Checklist