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

Reduces whitesource scan time #100

Merged
merged 1 commit into from
May 25, 2020
Merged

Reduces whitesource scan time #100

merged 1 commit into from
May 25, 2020

Conversation

NSeydoux
Copy link
Contributor

This PR fixes a whitesource CI bug, when whitesource takes up to 18minutes to run, mostly doing nothing/not showing what it does.

  • I've added a unit test to test for potential regressions of this bug. (not applicable)
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

Preventing Whitesource to resolve the dependencies through what they call 'the npm cycle', and enforcing to use our package-lock instead, reduces the build time. However, there seems to have bugs in the found dependencies (currently submitted to the support).

Preventing Whitesource to resolve the dependencies through what they call 'the npm cycle', and enforcing to use our package-lock instead, reduces the build time. However, there seems to have bugs in the found dependencies (currently submitted to the support).
Copy link
Contributor

@pmcb55 pmcb55 left a comment

Choose a reason for hiding this comment

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

LGTM

@NSeydoux NSeydoux merged commit bb871ba into master May 25, 2020
@NSeydoux NSeydoux deleted the fix/whitesource-long-scan branch May 25, 2020 13:37
@Vinnl
Copy link
Contributor

Vinnl commented May 25, 2020

@NSeydoux What was the solution to the bugs in the found dependencies?

@NSeydoux
Copy link
Contributor Author

NSeydoux commented May 25, 2020

That's an excellent question. It seems that the push setting, which updates the online dashboard, does not suffer from the bug, because the PR (which uses a slightly different config fules) was displaying the medkey dependency for instance, as shown in https://github.com/inrupt/lit-solid/runs/705942213?check_suite_focus=true.

I'll update the support ticket.

@Vinnl
Copy link
Contributor

Vinnl commented May 25, 2020

Hmm, so you haven't heard back from Whitesource yet? Now that this is merged, it's blocking my other PR: https://github.com/inrupt/lit-solid/pull/81/checks?check_run_id=706413188

Shall we back this out until we have a fix?

@NSeydoux
Copy link
Contributor Author

No, not yet. And I updated the branch protection rules so that the Whitesource CI check is not required anymore, so I don't think it should block other PRs. When I visit #81, I see the Whitesource scan fail, but it doesn't prevent merging. Do you have the same result ?

@Vinnl
Copy link
Contributor

Vinnl commented May 25, 2020

Ah, right. Still feels kind sloppy to me that we have enabled a check that always fails - builds a culture of merging despite failures and overlooking warnings :/

@NSeydoux
Copy link
Contributor Author

I agree that this should be fixed as soon as possible: when the fix is in, I will re-enable this CI check to be mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants