Skip to content

[PRODCRE-1077] Explicitly mark capabilities as local or remote in CapRegistry#1616

Merged
bolekk merged 3 commits intomainfrom
feature/PRODCRE-1077/local-cap-flag
Oct 16, 2025
Merged

[PRODCRE-1077] Explicitly mark capabilities as local or remote in CapRegistry#1616
bolekk merged 3 commits intomainfrom
feature/PRODCRE-1077/local-cap-flag

Conversation

@bolekk
Copy link
Copy Markdown
Contributor

@bolekk bolekk commented Oct 16, 2025

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 16, 2025

✅ API Diff Results - No breaking changes


📄 View full apidiff report

// v2 ("NoDAG") capabilities
map<string, CapabilityMethodConfig> method_configs = 7;
// if true, the capability won't be callable via don2don
bool local_only = 8;
Copy link
Copy Markdown
Contributor

@pavel-raykov pavel-raykov Oct 16, 2025

Choose a reason for hiding this comment

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

This field looks like an enum: local_only, don2don, local_only + don2don, (?test_only?). Do you think that boolean will be sufficient? (one more enum advantage that the values will become self explanatory and you won't need to add a clarifying comment everywhere.)

Copy link
Copy Markdown
Contributor Author

@bolekk bolekk Oct 16, 2025

Choose a reason for hiding this comment

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

Not really. You can't disable "local" as every capability adds itself to the local registry by default. It's only about exposing remotely or not.

@bolekk bolekk changed the title [CRE-1077] Explicitly mark capabilities as local or remote in CapRegistry [PRODCRE-1077] Explicitly mark capabilities as local or remote in CapRegistry Oct 16, 2025
Copy link
Copy Markdown
Contributor

@vyzaldysanchez vyzaldysanchez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 96353a7 Previous: 9a5854c Ratio
BenchmarkKeystore_Sign/nop/in-process 761.6 ns/op 374.6 ns/op 2.03

This comment was automatically generated by workflow using github-action-benchmark.

@bolekk bolekk merged commit 1803669 into main Oct 16, 2025
19 of 22 checks passed
@bolekk bolekk deleted the feature/PRODCRE-1077/local-cap-flag branch October 16, 2025 16:48
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.

3 participants