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

[ENG-9955][eas-build-job] add build phase to external build error #274

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

szdziedzic
Copy link
Member

@szdziedzic szdziedzic commented Aug 31, 2023

Why

https://linear.app/expo/issue/ENG-9955/link-to-build-logs-from-eas-cli-when-build-fails-for-unknown-reason

How

Add information about the build phase to the ExternalBuildError interface. Add mappings from build phase enum to build phase display names and ids so they can be shared between multiple repos using eas-build-job package

Test Plan

Tests

@linear
Copy link

linear bot commented Aug 31, 2023

ENG-9955 Link to build logs from EAS CLI when build fails for unknown reason

In #1699 we added a link to the Xcode/Gradle build phase in EAS CLI when a build fails, and this was great. We should do a similar thing and remind people where the logs are when builds fail for other reasons.

For example, a user asked about this on Discord:

image.png

It may have been unclear to them what logs to refer to. The logs in the terminal? Do they even know other logs exist yet? Maybe not ;)

They ended up finding this in the logs:

image (1).png

So, ideally we would link to the logs page and with an anchor to the failing build phase.

constructor(buildPhase?: BuildPhase) {
super(
ErrorCode.UNKNOWN_ERROR,
buildPhase
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also check if the buildPhase is in the keys of buildPhaseDisplayName, just to cover the case when buildPhase is set but the mapping is missing

@szdziedzic szdziedzic merged commit f99314e into main Aug 31, 2023
4 checks passed
@szdziedzic szdziedzic deleted the @szdziedzic/add-build-phase-to-external-build-error branch August 31, 2023 12:14
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.

2 participants