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

Add logging to download:plugins script #13905

Merged
merged 4 commits into from
Jul 12, 2024

Conversation

tsmaeder
Copy link
Contributor

What it does

Adds logging to get more info on CI failures descibed in #13902

Contributed on behalf of STMicroelectronics

How to test

Rerun the CI scripts until they fail.

Follow-ups

Review checklist

Reminder for reviewers

@tsmaeder tsmaeder requested a review from msujew July 10, 2024 09:28
Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Looks good, just one suggestion, see below.

}
} catch (error) {
this._searchError = error;
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: We should stringify this error somehow, as _searchError is defined as a string. (while error is any and likely of class Error)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The equivalent of what we had before would be err?.message || String(err),.

Copy link
Member

@msujew msujew Jul 11, 2024

Choose a reason for hiding this comment

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

Yes, that would be preferable. We shouldn't just assign any to string if we don't know what's been thrown.

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
@tsmaeder tsmaeder merged commit 54c7927 into eclipse-theia:master Jul 12, 2024
14 checks passed
@sgraband sgraband added this to the 1.52.0 milestone Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants