Skip to content

Conversation

@jsternberg
Copy link
Collaborator

Adds a method to include common attributes for build related options
when tracking build invocations. These attributes use certain parameters
to the build command.

This also refactors some of the utility methods used by the git tool to
determine filepaths into its own separate package so they can be reused
in another place.

Also adds a test to ensure the resource is initialized correctly and
doesn't error. The otel handler logging message is suppressed on buildx
invocations so we never see the error if there's a problem with the
schema url. It's so easy to mess up the schema url when upgrading OTEL
that we need a proper test to make sure we haven't broken the
functionality.

@jsternberg
Copy link
Collaborator Author

I have a few PRs that are going to use these attributes and have their code in common with each other. To prevent an issue where one of those PRs is blocked on another PR just because of these common changes, I separated it out into its own PR.

Adds a method to include common attributes for build related options
when tracking build invocations. These attributes use certain parameters
to the build command.

This also refactors some of the utility methods used by the git tool to
determine filepaths into its own separate package so they can be reused
in another place.

Also adds a test to ensure the resource is initialized correctly and
doesn't error. The otel handler logging message is suppressed on buildx
invocations so we never see the error if there's a problem with the
schema url. It's so easy to mess up the schema url when upgrading OTEL
that we need a proper test to make sure we haven't broken the
functionality.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@tonistiigi
Copy link
Member

I reviewed this as part of #2225 . This separately is hard to review as it adds functions that don't get called and it is not clear how they would be used.

@tonistiigi tonistiigi closed this Feb 2, 2024
@jsternberg jsternberg deleted the build-attributes branch February 15, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants