GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — github: annotate build warnings by crazy-max · Pull Request #365 · docker/actions-toolkit

Conversation

@crazy-max

@crazy-max crazy-max commented Jun 14, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • needs buildx(build): resolveWarnings from metadata #362

example in this PR through integration tests: https://github.com/docker/actions-toolkit/pull/365/files#diff-cc857d138abc3f09c4d212a933d59584a266fe71521fd2cd87327dc037558a43R17

image


image


image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from 44e2a6e to aa26ffd Compare June 14, 2024 22:40
crazy-max
crazy-max commented Jun 14, 2024
View reviewed changes
Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max

This comment was marked as outdated.

Sign in to view
@crazy-max crazy-max mentioned this pull request Jun 14, 2024
build: set record status in response docker/buildx#2511
Closed
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from aa26ffd to 0ffd26f Compare June 14, 2024 23:00
@crazy-max crazy-max mentioned this pull request Jun 17, 2024
Updates lint output to print detail instead of description moby/buildkit#5045
Merged
@crazy-max
crazy-max force-pushed the build-checks-annotations branch 4 times, most recently from 6d9b5c0 to 653541f Compare June 18, 2024 12:34
@crazy-max

This comment was marked as outdated.

Sign in to view
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from f94f0e7 to f66a1cc Compare June 18, 2024 13:27
@crazy-max
crazy-max force-pushed the build-checks-annotations branch 4 times, most recently from c311ee7 to dc41dc9 Compare June 26, 2024 08:05
@crazy-max

This comment was marked as outdated.

Sign in to view
@crazy-max
crazy-max requested review from colinhemmings, daghack and tonistiigi June 26, 2024 08:12
@crazy-max
crazy-max marked this pull request as ready for review June 26, 2024 08:13
crazy-max
crazy-max commented Jun 26, 2024
View reviewed changes
Comment thread .github/workflows/test.yml
env:
NODE_VERSION: "20"
BUILDX_VERSION: "v0.15.1"
BUILDX_VERSION: "https://github.com/docker/buildx.git#d8c9ebde1fdcf659f1fa3efa6ccc27a28b0f1564" # https://github.com/docker/buildx/pull/2551

@crazy-max crazy-max Jun 26, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

needs follow-up to bump to v0.16.0 when released

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from dc41dc9 to ab12e51 Compare June 26, 2024 09:36
crazy-max
crazy-max commented Jun 26, 2024
View reviewed changes
Comment thread src/github.ts Outdated
Comment on lines +344 to +364
let startLine: number | undefined, endLine: number | undefined;
for (const range of warning.range ?? []) {
if (range.start.line && (!startLine || range.start.line < startLine)) {
startLine = range.start.line;
}
if (range.end.line && (!endLine || range.end.line > endLine)) {
endLine = range.end.line;
}
}
core.info(`${message} --- startLine: ${startLine}, endLine: ${endLine}`);
core.warning(message, {
title: title,
file: source,
startLine: startLine,
endLine: endLine
});

@crazy-max crazy-max Jun 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Was looking at showing first and last lines matching warning ranges but GitHub annotations does not seem to display that properly:

image

core.info returns the right startLine and endLine though:

ConsistentInstructionCasing: Command 'COPy' should match the case of the command majority (lowercase)
More info: https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/ --- startLine: 21, endLine: 23

I will just set startLine for now and open a thread on GitHub community.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@crazy-max crazy-max Jun 26, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Opened https://github.com/orgs/community/discussions/129899

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
crazy-max force-pushed the build-checks-annotations branch 4 times, most recently from 42c7667 to 1cee406 Compare June 26, 2024 10:21
crazy-max added 2 commits June 26, 2024 12:32
@crazy-max
github: annotate build warnings
3a7b0a6
Signed-off-by: CrazyMax <[email protected]>
@crazy-max
ci(test): use buildx master for build warnings
644587f
Signed-off-by: CrazyMax <[email protected]>
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from 1cee406 to 644587f Compare June 26, 2024 10:32
tonistiigi
tonistiigi approved these changes Jun 26, 2024
View reviewed changes
Comment thread src/github.ts
let message = atob(warning.short).replace(/\s\(line \d+\)$/, '');
if (warning.url) {
// https://github.com/docker/buildx/blob/d8c9ebde1fdcf659f1fa3efa6ccc27a28b0f1564/commands/build.go#L854
message += `\nMore info: ${warning.url}`;

@tonistiigi tonistiigi Jun 26, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Wonder if this link can be made clickable by adding some markdown around it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@crazy-max crazy-max Jun 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Opened https://github.com/orgs/community/discussions/129897

And does not work with markdown 😞 https://github.com/orgs/community/discussions/129897#discussioncomment-9886696

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
crazy-max force-pushed the build-checks-annotations branch from 1fc5c48 to 644587f Compare June 26, 2024 19:35
@crazy-max crazy-max added the needs/follow-up label Jun 26, 2024
@crazy-max
crazy-max merged commit 7360d08 into docker:main Jun 26, 2024
@crazy-max
crazy-max deleted the build-checks-annotations branch June 26, 2024 19:58
@crazy-max crazy-max mentioned this pull request Jul 5, 2024
buildx: convert vertex warnings to github annotations based on localstate #401
Merged
This was referenced Jul 30, 2024
generate GitHub annotations for build checks docker/build-push-action#1197
Merged
bake: handle build checks from metadata #389
Merged
generate GitHub annotations for build checks docker/bake-action#238
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tonistiigi tonistiigi tonistiigi approved these changes
@daghack daghack Awaiting requested review from daghack
@colinhemmings colinhemmings Awaiting requested review from colinhemmings

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs/follow-up

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@crazy-max @tonistiigi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.