Skip to content

RFC: predicates for host exclusion in checks#188

Draft
balanza wants to merge 1 commit into
mainfrom
check-exclusion-predicate
Draft

RFC: predicates for host exclusion in checks#188
balanza wants to merge 1 commit into
mainfrom
check-exclusion-predicate

Conversation

@balanza

@balanza balanza commented Apr 22, 2026

Copy link
Copy Markdown
Member

@balanza balanza force-pushed the check-exclusion-predicate branch 2 times, most recently from 9adc4d6 to c2ff6f5 Compare April 22, 2026 09:24
@balanza balanza force-pushed the check-exclusion-predicate branch from c2ff6f5 to e2f9db6 Compare May 18, 2026 14:00

@nelsonkopliku nelsonkopliku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, Emanuele.

Just a tiny minor comments.

Comment thread content/rfc/0004-check-exclusion-predicates.adoc Outdated
// Keys are opaque strings agreed between Trento Web (producer) and
// check authors (consumers); the contract on which keys exist and
// what they mean lives outside the proto file.
map<string, google.protobuf.Value> host_data = 3;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thought: what about stripping the host reference from this new piece of information, and keep the target wording.

Instead of host_data we could have data,target_data,metadata, target_metadata

id: "ABC123"
name: Check that does not apply to majority maker nodes
exclude: |
host["is_majority_maker"] == true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thought: we could consider consistently advertise dot access like host.is_majority_maker.

IIRC accessing a non existent entry would return () anyway, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

AFAIK given it's a map should be accessed by index, but I have to test it.

Comment thread content/rfc/0004-check-exclusion-predicates.adoc Outdated
@balanza balanza marked this pull request as draft May 21, 2026 08:52
@balanza balanza force-pushed the check-exclusion-predicate branch from e2f9db6 to dffa5a9 Compare May 22, 2026 08:00
@balanza balanza force-pushed the check-exclusion-predicate branch from dffa5a9 to ed53b4c Compare May 22, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants