Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[cli] Tests now run against changed flow version#4406

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Brianzchen merged 6 commits intoflow-typed:mainfromBrianzchen:test-versions
Dec 1, 2022

Conversation

@Brianzchen
Copy link
Member

Closes#4384.

Previously, tests would always run against the latest x number of flow versions (default 15). But this made it rather and difficult and unreliable when trying to maintain definitions against older versions as those would never be tested in CI.

With this change, the flow is a bit different:

  1. The test runner will attempt to download all flow releases
  2. Then if the definition has no upper boundary (v0.125.x-) will take the latest 15 versions up to the lower boundary (0.125.x)
  3. Otherwise if upper boundary is defined (v0.125.x-v0.135.x) we will start tests against the upper boundary (0.135.x) and take the latest 15 versions starting from there up to the lower boundary (0.125.x)

Caveat here is that startup times of running will be much slower as we're now downloading pages of release notes instead of just the top 15 but they'll be cached for the duration of the run against multiple definitions as shown below

Screen Shot 2022-11-25 at 5 50 02 am

Screen Shot 2022-11-25 at 5 50 12 am

if(_flowBinVersionPromise!==null){
return_flowBinVersionPromise;
}
return(_flowBinVersionPromise=(asyncfunction(){
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This blocks main change is the removal of an anonymous function causing a big diff, main changes are addition of callingselectFlowTestVersions and the while loop that pulls all release versions

constCLIENT=newOctokit();

if(process.env.GH_TOK){
CLIENT.authenticate({type:'oauth',token:process.env.GH_TOK});
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is very old code that isn't actually correct. Updated with new API and reflected in docs

@BrianzchenBrianzchen merged commit38bb57b intoflow-typed:mainDec 1, 2022
@BrianzchenBrianzchen deleted the test-versions branchDecember 1, 2022 18:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gantoinegantoinegantoine approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Brianzchen@gantoine

[8]ページ先頭

©2009-2025 Movatter.jp