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

[build-tools] Log stdout if build:internal fails #459

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

sjchmiela
Copy link
Contributor

Why

I have trouble understanding why GitHub builds on the new Orchestrator fail consistently.

How

I want to know more about the error than "GraphQL request failed". So, I want to print the second part of the output, the stdout.

Test Plan

I ran a local build with overridden EXPO_TOKEN=invalid, and printing both stdout and stderr and got:

Zrzut ekranu 2024-10-30 o 22 26 23

// is often not enough to debug the issue, so we also log stdout in those cases.
// It will look awkward (first stderr from pipe, then stdout from here), but
// it's better than nothing.
logger.error(`${err.stdout}`);
Copy link
Member

Choose a reason for hiding this comment

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

I assume that printing job object with it's secrets is the last operation performed by this command, right? If so if there is any error there shouldn't be any secrets in stdout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not last per se, but it's close to last. After we print the job we may also start a submission (which theoretically may fail).

Maybe we should revert this after we find the issue with the orchestrator?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we can if it contains any sensitive data and there is a risk of leaking it 🤔

@sjchmiela sjchmiela merged commit 336cb76 into main Oct 31, 2024
4 checks passed
@sjchmiela sjchmiela deleted the stanley/more-eas-build-internal-output branch October 31, 2024 10:09
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