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

Enhance builder inspection #69

Merged
merged 1 commit into from Apr 23, 2021
Merged

Enhance builder inspection #69

merged 1 commit into from Apr 23, 2021

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Apr 22, 2021

Refactor builder inspection and add new outputs. In a follow-up PR we will be able to display buildkitd logs (docker logs buildx_buildkit_${builder.node_name}) if docker-container is used to enhance debugging.

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

@crazy-max

This comment has been minimized.

@crazy-max crazy-max marked this pull request as ready for review April 22, 2021 21:28
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@codecov-commenter
Copy link

Codecov Report

Merging #69 (7275023) into master (abdb186) will decrease coverage by 1.66%.
The diff coverage is 70.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage   78.18%   76.51%   -1.67%     
==========================================
  Files           5        5              
  Lines         110      132      +22     
  Branches       19       20       +1     
==========================================
+ Hits           86      101      +15     
- Misses         18       23       +5     
- Partials        6        8       +2     
Impacted Files Coverage Δ
src/buildx.ts 72.34% <66.66%> (-2.33%) ⬇️
src/context.ts 84.21% <100.00%> (+2.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abdb186...7275023. Read the comment docs.

if (line.startsWith('Platforms')) {
return line.replace('Platforms: ', '').replace(/\s/g, '').trim();
const builder = {};
itlines: for (const line of res.stdout.trim().split(`\n`)) {
Copy link
Member

Choose a reason for hiding this comment

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

follow up: should add json output (--format) for these in build later to avoid this text parsing. Has been asked in buildx repo before as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes indeed would be better to support that directly on buildx.

Copy link
Member Author

Choose a reason for hiding this comment

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

README.md Show resolved Hide resolved
@crazy-max crazy-max merged commit 0f03438 into docker:master Apr 23, 2021
@crazy-max crazy-max deleted the inspect branch April 23, 2021 17:34
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