• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / minder / 10720515647
53%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2024 12:47PM UTC
Jobs 1
Files 242
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Sep 2024 12:38PM UTC coverage: 52.75% (+0.09%) from 52.658%
10720515647

push

github

web-flow
Take properties into use executor to fill selectors' properties (#4377)

* GetEntityByID only accepts an ID since it's unique

We can simplify the GetEntityByID call to not accept providerID since
the call searches on the globally-unique and indexed entity ID.

Related: #4173

* Add GetEntityWithPropertiesByID to our entity model package

Adds a convenience function to search an entity by ID with all its
properties. Also moves two utility functions form the property service
here.

Related: #4173

* Add ToProtoStruct to properties

This utility function will allow us to use properties both in selectors
that use the structupb.Struct and in the general entity protobuf message
that we added recently.

Fixes: #4173

* Add an option to NewProperties to skip checking the internal prefix

This is so unit tests can set int64 properties.

Related: #4173

* Take properties into use in selectors and ruletype test.

Changes the ruletype test command to not use an EntityInfoWrapper as
intput, but just properties. An example of a repo entity with properties
is:
```
name: jakubtestorg/bad-python
is_private: false
is_fork: false
is_archived: false
upstream_id: "706108924"
github/repo_id:
  minder.internal.type: int64
    minder.internal.value: "706108924"
github/repo_name: bad-python
github/repo_owner: jakubtestorg
github/default_branch: master
foo: bar
```

Adds a lookup of an entity with properties to the evaluation engine so
that the resulting selectorEntity is augmented with properties and
passed to the selector engine. Changes the conversion interfaces to
selector entities to only use the EntityWithProperties model.

As a result, the user can use properties in selectors such as:
```
  - description: This should not apply copyleft repos
    entity: repository
    selector: repository.properties['github/license'] != 'GPL'
```
And in future allow us to extend selectors based on any other properties
we add.... (continued)

72 of 105 new or added lines in 11 files covered. (68.57%)

3 existing lines in 1 file now uncovered.

13255 of 25128 relevant lines covered (52.75%)

44.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10720515647.1 05 Sep 2024 12:47PM UTC 0
52.75
GitHub Action Run
Source Files on build 10720515647
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10720515647
  • 2056a620 on github
  • Prev Build on main (#10715959823)
  • Next Build on main (#10721974031)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc