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

Go: use package grouping in existing models-as-data models #16992

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jul 16, 2024

Use the mechanism introduced in #16941 in the existing models.

@owen-mc owen-mc added the no-change-note-required This PR does not need a change note label Jul 16, 2024
@owen-mc owen-mc requested a review from a team as a code owner July 16, 2024 15:49
@github-actions github-actions bot added the Go label Jul 16, 2024
Copy link
Contributor

github-actions bot commented Jul 16, 2024

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

go

Generated file changes for go

  • Changes to framework-coverage-go.rst:
-    `Go JOSE <https://github.com/go-jose/go-jose>`_,"``github.com/go-jose/go-jose*``, ``github.com/square/go-jose*``, ``gopkg.in/square/go-jose*``",,8,2
+    `Go JOSE <https://github.com/go-jose/go-jose>`_,"``github.com/go-jose/go-jose*``, ``github.com/square/go-jose*``, ``gopkg.in/square/go-jose*``",,12,3
-    Totals,,204,898,24
+    Totals,,204,902,25
  • Changes to framework-coverage-go.csv:
+ github.com/square/go-jose/jwt,1,,4,,1,,4,
- gopkg.in/square/go-jose.v2/jwt,1,,4,,1,,4,
+ gopkg.in/square/go-jose/jwt,1,,4,,1,,4,

@owen-mc owen-mc force-pushed the go/mad/use-package-grouping branch from abf4be8 to 0f7e1ef Compare July 17, 2024 09:35
@owen-mc owen-mc force-pushed the go/mad/use-package-grouping branch from 0f7e1ef to 4c3220e Compare July 17, 2024 09:37
Copy link
Member

@mbg mbg left a comment

Choose a reason for hiding this comment

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

Looks good. I am wondering about the (need for) the last commit though. For the purpose of those tests, does it really matter which line they come from or could the name of the file or some other, constant information suffice?

@owen-mc
Copy link
Contributor Author

owen-mc commented Jul 17, 2024

I'm not sure I totally follow. The last commit doesn't relate to line numbers. Currently, many tests include provenance information for edges which uses a different number for each models-as-data model. Adding or removing models perturbs these numbers, and causes a lot of unrelated test changes. There are plans in motion to fix this soon, but in the meantime we are just having to work around the constant unrelated test churn that makes all models-related tests conflict with each other.

@mbg
Copy link
Member

mbg commented Jul 17, 2024

Sorry, I had just assumed that they were line numbers rather than something else. That doesn't change my question though, but you have answered it anyway that there are plans to change this.

@owen-mc owen-mc merged commit a8a4a20 into github:main Jul 17, 2024
13 checks passed
@owen-mc owen-mc deleted the go/mad/use-package-grouping branch July 17, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants