Skip to content
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

Merged
merged 13 commits into from
Jan 27, 2023
Merged

Optimize acceptance test CI #804

merged 13 commits into from
Jan 27, 2023

Conversation

Ivo-Yankov
Copy link
Collaborator

@Ivo-Yankov Ivo-Yankov commented Jan 5, 2023

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

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
@Ivo-Yankov Ivo-Yankov changed the title chore: split rpc.spec into smaller chunks Optimize acceptance test CI Jan 5, 2023
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2023

Codecov Report

Base: 73.76% // Head: 73.76% // No change to project coverage 👍

Coverage data is based on head (2658239) compared to base (51682d2).
Patch has no changes to coverable lines.

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Ivo-Yankov Ivo-Yankov marked this pull request as ready for review January 6, 2023 15:26
@Ivo-Yankov
Copy link
Collaborator Author

The settings of the API / acceptance-workflow CI need to be changed.

natanasow
natanasow previously approved these changes Jan 16, 2023
Copy link
Collaborator

@natanasow natanasow left a 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);
Copy link
Collaborator

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)

Copy link
Collaborator

@Nana-EC Nana-EC left a 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>
@Ivo-Yankov Ivo-Yankov requested a review from Nana-EC January 18, 2023 11:49
# Conflicts:
#	packages/server/tests/acceptance/rpc_chunk1.spec.ts
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Copy link
Collaborator

@Nana-EC Nana-EC left a 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.

@@ -8,11 +8,23 @@ on:
tags: [v*]

jobs:
api:
name: API
api_chunk_1:
Copy link
Collaborator

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.

Copy link
Collaborator Author

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>
Nana-EC
Nana-EC previously approved these changes Jan 26, 2023
api:
name: API
api_batch_1:
name: API Chunk 1
Copy link
Collaborator

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

Suggested change
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>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC added enhancement New feature or request limechain P3 process Build, test and deployment-process related tasks labels Jan 27, 2023
@Nana-EC Nana-EC added this to the 0.17.0 milestone Jan 27, 2023
@Ivo-Yankov Ivo-Yankov merged commit 69ffaca into main Jan 27, 2023
@Ivo-Yankov Ivo-Yankov deleted the split-rpc-spec branch January 27, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limechain P3 process Build, test and deployment-process related tasks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants