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

[eas-cli] add --build-logger-level flag to eas build command #2313

Merged

Conversation

szdziedzic
Copy link
Member

Why

Companion to https://github.com/expo/universe/pull/14898, https://github.com/expo/turtle-v2/pull/1782 and expo/eas-build#375

We want to allow setting logger level on per build basis to make debugging easier.

How

Add a new --build-logger-level flag to the eas build command

Test Plan

Test locally

Copy link

github-actions bot commented Apr 5, 2024

Size Change: +172 kB (0%)

Total Size: 51.6 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 51.6 MB +172 kB (0%)

compressed-size-action

@szdziedzic
Copy link
Member Author

/changelog-entry new-feature Add --build-logger-level flag to eas build command

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 53.68%. Comparing base (d85b328) to head (3f9339d).

Files Patch % Lines
packages/eas-cli/src/build/android/graphql.ts 0.00% 2 Missing ⚠️
packages/eas-cli/src/build/ios/graphql.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2313      +/-   ##
==========================================
+ Coverage   53.65%   53.68%   +0.04%     
==========================================
  Files         525      525              
  Lines       19167    19190      +23     
  Branches     4047     4054       +7     
==========================================
+ Hits        10282    10301      +19     
- Misses       8158     8162       +4     
  Partials      727      727              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

packages/eas-cli/src/devices/utils/formatDevice.ts Outdated Show resolved Hide resolved
@@ -98,6 +100,10 @@ export default class Build extends EasCommand {
char: 'm',
description: 'A short message describing the build',
}),
'build-logger-level': Flags.enum({
description: 'The level of logs to output during the build process. Defaults to "info".',
Copy link
Contributor

Choose a reason for hiding this comment

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

If we say what it defaults to, should we set the default here? This would also be nicer because we wouldn't need to handle undefined loggerLevel?

Copy link
Member Author

Choose a reason for hiding this comment

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

If we set a default here, then every build will have job.loggerLevel specified and then we won't be able to easily control the default logger level for all users server side by changing one const.

packages/eas-cli/src/build/runBuildAndSubmit.ts Outdated Show resolved Hide resolved
@szdziedzic szdziedzic force-pushed the @szdziedzic/add-build-logger-level-flag-to-eas-build-command branch from ba040c2 to 3f9339d Compare April 8, 2024 11:27
Copy link

github-actions bot commented Apr 8, 2024

✅ Thank you for adding the changelog entry!

@szdziedzic szdziedzic merged commit 784b52b into main Apr 8, 2024
9 checks passed
@szdziedzic szdziedzic deleted the @szdziedzic/add-build-logger-level-flag-to-eas-build-command branch April 8, 2024 12:11
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.

3 participants