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

feat: new built.WithOrchestrion constant #387

Merged
merged 7 commits into from
Nov 8, 2024

Conversation

RomainMuller
Copy link
Contributor

Expose a built.WithOrchestrion constant so that usages where it is possible to take a direct dependency on github.com/DataDog/orchestrion is possible are simpler; as a readily available variable is provided.

This reduces the amount of places where the //dd:orchestrion-enabled directive is necessary, which may improve compilation speeds (as directive join points may be dispandious to evaluate).

Expose a `built.WithOrchestrion` constant so that usages where it is
possible to take a direct dependency on `github.com/DataDog/orchestrion`
is possible are simpler; as a readily available variable is provided.

This reduces the amount of places where the `//dd:orchestrion-enabled`
directive is necessary, which may improve compilation speeds (as
directive join points may be dispandious to evaluate).
@RomainMuller RomainMuller requested a review from a team as a code owner November 8, 2024 10:36
Copy link
Contributor

@eliottness eliottness left a comment

Choose a reason for hiding this comment

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

How about putting the built package inside another package named like api or runtime or lib so we can regroup packages that can be called by orchestrion deps ?

internal/injector/aspect/join/declaration.go Outdated Show resolved Hide resolved
internal/injector/aspect/join/expression.go Outdated Show resolved Hide resolved
Copy link
Contributor

@eliottness eliottness left a comment

Choose a reason for hiding this comment

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

Looks (almost) Good To Me 👍

runtime/doc.go Outdated Show resolved Hide resolved
internal/toolexec/aspect/oncompile.go Outdated Show resolved Hide resolved
@RomainMuller RomainMuller added this pull request to the merge queue Nov 8, 2024
Merged via the queue into main with commit 3d60a25 Nov 8, 2024
25 checks passed
@RomainMuller RomainMuller deleted the romain.marcadier/built.WithOrchestrion branch November 8, 2024 16:14
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 63.63636% with 24 lines in your changes missing coverage. Please review.

Project coverage is 60.85%. Comparing base (72eaa80) to head (abbd73a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/injector/aspect/join/declaration.go 55.26% 13 Missing and 4 partials ⚠️
internal/injector/aspect/join/expression.go 60.00% 2 Missing and 2 partials ⚠️
internal/toolexec/aspect/oncompile.go 82.35% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #387      +/-   ##
==========================================
+ Coverage   60.81%   60.85%   +0.04%     
==========================================
  Files         174      174              
  Lines       12302    12341      +39     
==========================================
+ Hits         7481     7510      +29     
- Misses       4340     4350      +10     
  Partials      481      481              
Components Coverage Δ
Generators 76.91% <ø> (-0.07%) ⬇️
Instruments 88.05% <ø> (ø)
Go Driver 73.46% <ø> (ø)
Toolexec Driver 70.66% <82.35%> (+0.02%) ⬆️
Aspects 71.85% <56.25%> (+0.11%) ⬆️
Injector 73.74% <56.25%> (+0.01%) ⬆️
Job Server 64.02% <ø> (ø)
Integration Test Suite 54.24% <100.00%> (ø)
Other 60.85% <63.63%> (+0.04%) ⬆️
Files with missing lines Coverage Δ
_integration-tests/utils/suite.go 100.00% <100.00%> (ø)
internal/injector/builtin/generator/schema.go 68.62% <ø> (-1.29%) ⬇️
internal/toolexec/aspect/oncompile.go 72.53% <82.35%> (+0.01%) ⬆️
internal/injector/aspect/join/expression.go 83.33% <60.00%> (-2.39%) ⬇️
internal/injector/aspect/join/declaration.go 63.38% <55.26%> (+8.83%) ⬆️

... and 4 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants