Skip to content

dockerfile/parser: use custom 2mb buffer for long-texts #261

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
flouthoc:parser-fix-scanner
Aug 18, 2023
Merged

dockerfile/parser: use custom 2mb buffer for long-texts #261
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
flouthoc:parser-fix-scanner

Conversation

@flouthoc
Copy link
Copy Markdown
Contributor

Containerfile may contain long lines lets use custom buffer for such
use-cases.

Closes: containers/buildah#4929

@flouthoc
Copy link
Copy Markdown
Contributor Author

@nalind @rhatdan @TomSweeneyRedHat PTAL

@rhatdan
Copy link
Copy Markdown
Contributor

rhatdan commented Jul 24, 2023

LGTM
@nalind PTAL

@TomSweeneyRedHat
Copy link
Copy Markdown
Contributor

LGTM
but CI isn't hip, and I'd like a @nalind head nod

}

scannerErr := scanner.Err()
if scannerErr != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Go ahead and use the if scannerErr := scanner.Err(); scannerErr != nil { form here, since scannerErr isn't going to be used anywhere else.

@nalind
Copy link
Copy Markdown
Member

nalind commented Aug 17, 2023

One nit, otherwise LGTM.

Scanner errors are silently ignored, following commit makes sure we
don't do that.

Signed-off-by: Aditya R <arajan@redhat.com>
Containerfile may contain long lines lets use custom buffer for such
use-cases.

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the parser-fix-scanner branch from 7d107f2 to ab364dd Compare August 18, 2023 08:55
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 18, 2023

@flouthoc: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@flouthoc flouthoc requested a review from nalind August 18, 2023 08:58
@rhatdan
Copy link
Copy Markdown
Contributor

rhatdan commented Aug 18, 2023

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2023
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2023
@openshift-merge-robot openshift-merge-robot merged commit 72aaa70 into openshift:master Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

podman-build silently skips large RUN command

5 participants