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

test(docs): disable versions check for external contributors #2181

Merged
merged 8 commits into from
Sep 17, 2023

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented May 28, 2023

Fixes #2174 (comment)

This disables the versions check for external contributors/those that do not use the faker main repository as their origin.

@ST-DDT ST-DDT added c: bug Something isn't working c: docs Improvements or additions to documentation p: 1-normal Nothing urgent c: test labels May 28, 2023
@ST-DDT ST-DDT requested review from a team May 28, 2023 15:25
@ST-DDT ST-DDT self-assigned this May 28, 2023
@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #2181 (acb34a7) into next (ef6334c) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2181   +/-   ##
=======================================
  Coverage   99.60%   99.61%           
=======================================
  Files        2800     2800           
  Lines      252410   252410           
  Branches     1097     1099    +2     
=======================================
+ Hits       251421   251441   +20     
+ Misses        962      942   -20     
  Partials       27       27           

see 2 files with indirect coverage changes

@ST-DDT
Copy link
Member Author

ST-DDT commented May 28, 2023

Result if origin != faker main repo:

grafik

Result if origin = faker main repo:

grafik

Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

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

Will the CI still check the docs version, even when the PR is on another fork?

test/docs/versions.spec.ts Show resolved Hide resolved
@ST-DDT
Copy link
Member Author

ST-DDT commented May 28, 2023

Will the CI still check the docs version, even when the PR is on another fork?

Good point. I have to check.

Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

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

I could be wrong, but it seems that this PR disables the test when a contributor creates a PR in their own fork. But when we then merge that PR, the test would run on our next branch and could then fail.

So this doesn't look like it is the right solution, but sadly I also do not have another idea right now 😕

@Shinigami92
Copy link
Member

Is the test in our CI always executed via a PR and therefore the origin will always be faker-js/faker?
Or does the CI origin run on the fork?

@ST-DDT
Copy link
Member Author

ST-DDT commented Sep 15, 2023

I created #2394 as an external contributor test.

Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

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

@ST-DDT
Copy link
Member Author

ST-DDT commented Sep 15, 2023

@ST-DDT ST-DDT requested review from a team and xDivisionByZerox September 15, 2023 19:21
@ST-DDT ST-DDT merged commit f40e217 into next Sep 17, 2023
@ST-DDT ST-DDT deleted the test/disable-branch-check-for-external-contributors branch September 17, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working c: docs Improvements or additions to documentation c: test p: 1-normal Nothing urgent
Projects
No open projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants