-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
refactor: restructure to tests and CI workflow to reduce CI time #5951
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
25c6f7c
to
8eed04f
Compare
501edad
to
1c62782
Compare
Will we get a tsc error if we do these things? |
Yes the config option |
@@ -53,7 +54,7 @@ describe("chain / lightclient", function () { | |||
|
|||
// delay a bit so regular sync sees it's up to date and sync is completed from the beginning | |||
// also delay to allow bls workers to be transpiled/initialized | |||
const genesisSlotsDelay = 16; | |||
const genesisSlotsDelay = 7; |
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.
nice optimization! 🚀
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.
I tend to think that all of the type
import/export changes should be in a separate PR. Im guessing the intention is to reduce transpilation time but still feels a bit funny to have all those changes, and the const
addition to the couple enum
s in here.
@matthewkeil To improve the CI time we have make the |
@nazarhussain for my knowledge, what are the changes like this doing? specTestIterator(path.join(ethereumConsensusSpecsTests.outputDir, "tests", ACTIVE_PRESET), {
fork: {type: RunnerType.default, fn: fork},
}); Like, why not leave them in |
Earlier 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.
LGTM!! 🚀
🎉 This PR is included in v1.12.0 🎉 |
Motivation
Reduce the CI time
Description
transpileOnly
option to save type checking time as we havecheck-types
task.Steps to test or reproduce
Run all tests.
===== NOTE =====
For future reference because of the
transpileOnly
option we need to enableisolateModule
tsconfig. Which requires you to take care of two things in the code for future:export type
keyword.const enum
, rather justenum
.