Skip to content

Add .gitattributes to mark installer golden files as generated #12990

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

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Sep 15, 2022

Description

This will automatically collapse the *.golden files in PRs and mark them as auto-generated.
Because it's causing PRs to be messy with changes which are auto-generated

See docs

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@easyCZ easyCZ requested a review from a team September 15, 2022 09:19
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 15, 2022
Copy link
Member

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

Nice! Would love to see this for other generated code as well

@easyCZ
Copy link
Member Author

easyCZ commented Sep 15, 2022

Currently, we don't have a deterministic pattern to use to mark all generated code (from grpc for example). in theory, we could take components/*-api/go|typescript|... as the path but in some cases, there's non-generated code in those packages also (see components/public-api/go/config).

I think a reasonable change we could make is to move generated code into a generated/ prefixed directory, such as components/public-api/go/generated/v1/... which would then allow us to have a single pattern to do this.

@roboquat roboquat merged commit cf39aba into main Sep 15, 2022
@roboquat roboquat deleted the mp/gitattributes-ignore-golden branch September 15, 2022 09:50
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 16, 2022
@easyCZ
Copy link
Member Author

easyCZ commented Sep 19, 2022

I've found a pattern that more-less works - #13078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants