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

deps: update module github.com/google/cel-go to v0.21.0 #3832

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 5, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/google/cel-go v0.17.7 -> v0.21.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

google/cel-go (github.com/google/cel-go)

v0.21.0

Compare Source

Features

  • Math extensions update to include bitwise ops and floating point helpers [#​923]
  • Better support custom types with custom type registries [#​931]
  • repl: implement %parse [#​933]
  • Fixed partial variables extended bug and split PartialVarsEnvExtended test into two [#​955]
  • Added partial evaluations example [#​959]
  • Enable conformance tests for extensions [#​930]
  • Update cel-spec and enable optional_type conformance tests [#​919]
  • Improve token representation in AST [#​932]
  • Add function accessor to Env [#​978]
CEL Policy Compiler

Policies which use CEL often evolve to express complex logic using multiple statements
and decision criteria. The CEL Policy Compiler provides an extensible format for parsing,
compiling, and composing expression graphs. Below is a simple example which can easily
be compiled to a single CEL expression.

name: "my-policy"
rule:
  variables:
    - name: greeting
      expression: "'%s, %s!'"
    - name: people
      expression: >
       ['Tristan', 'Calla', 'Antoine', 'Jonathan', 'Sokwhan', 'Rebecca']
  match:
    - condition: "request.user in variables.people"
      output: "variables.greeting.format(['hello', request.user])"
    - output: "variables.greeting.format(['goodbye', 'stranger'])"
  • Simple Policy Compiler [#​924]
  • Introduce protobuf message testing to policies [#​961]
  • Generate policy explanations during compilation [#​977]
  • Variable and nested rule limits [#​989]
  • Improved support for nested rules #​991]

Fixes

  • Delete dangling source info from macro expansion [#​934]
  • Do not re-use ID twice in exists_one macro [#​935]
  • Avoid iterating over the source multiple times during parse [#​936]
  • Fix for working with byte arrays by [#​958]
  • Stabilize macro id generation during optimization [#​962]
  • String formatting panic fix for non-literal format strings [#​987]
  • Add nil checking for wrapperspb's types [#​960]
  • Prevent self-append for Issues [#​988]
  • Use bytes interface value for zero native type struct fields instead of dynamic list [#​981]
Presence Test Semantics

The following two changes identified an issue where presence test was unexpectedly being performed over a scalar type and evaluating to absent rather than erroring. It is strongly advised to set the flag cel.EnableErrorOnBadPresenceTest(true) to avoid a logical correctness issue.

  • Fix presence test to produce an error when it's not a map or a message [#​922]
  • Update the presence testing fix to be opt-out [#​939]
Deprecation Cleanup
  • Remove the deprecated protobuf function and type declarations [#​921]

New Contributors

Full Changelog: google/cel-go@v0.20.1...v0.21.0

v0.20.1

Compare Source

Minor release to capture a couple bug fixes and API / build visibility changes.

What's Changed

  • Track sizes of comprehension results by [#​901]
  • Introduce new helper APIs for optimizers by [#​903]
  • Make the CEL ast package public. [#​904]

New Contributors

Full Changelog: google/cel-go@v0.20.0...v0.21.0

v0.20.0

Compare Source

What's Changed

  • Minor adjustment to inlining to fix a bad bind [#​888]
  • Ensure error typed variables are returned as errors from Resolve b [#​889]
  • ext.NativeTypes: Recursively add sub-types [#​892]
  • DefaultTypeAdapter: Add support for missing custom scalars [#​893]
  • Lists: Fix handling of go arrays [#​894]

New Contributors

Full Changelog: google/cel-go@v0.19.0...v0.20.0

v0.19.0

Compare Source

Features

  • Add AST node IDs to types.Err for errorable expressions [#​862]
  • Set membership test rewriting optimizer [#​865]
  • Introduce 'wither' method for changing type traits [#​871]
  • Add option to include test types in the repl [#​855]

Fixes

  • Fix MaxID to consider macro keys and expressions [#​861]
  • Update builtin macros to use unique IDs. [#​866]
  • Fix incorrect example in string formatting docs. [#​873]
  • Fix the optional type name and type identifier resolution [#​870]
  • Fix type substitution within parameterized type names [#​880]
  • Bump follow-redirects from 1.15.2 to 1.15.4 in /repl/appengine/web [882]

New Contributors

Full Changelog: google/cel-go@v0.18.2...v0.19.0

v0.18.2

Compare Source

What's Changed

  • Add support for ext.Bindings() to REPL [#​843]
  • Add basic examples to the appengine repl [#​848]
  • Sets cost estimation and tracking options [#​850]
  • Fix expression inlining when working with macros [#​853]
  • ANTLR v4.13 update [#​857]

Full Changelog: google/cel-go@v0.18.1...v0.18.2

v0.18.1

Compare Source

What's Changed

  • Add support for a relative offset within ast.SourceInfo by [#​836]
  • Fix last optional element to be retained as an optional index while folding [#​841]
  • Fix deprecation notice for string format validation [#​840]
  • Update cel-spec and enable wrappers conformance tests [#​842]
  • refactor: remove lexer and parser pools [#​838]

New Contributors

Full Changelog: google/cel-go@v0.18.0...v0.18.1

v0.18.0

Compare Source

Features

The latest release of CEL introduces validators (#​775) and optimizers (#​804, #​827) and migrates the core CEL internals off of the
protobuf expression and type representations (#​789).

  • String format validator [#​775]
  • Create a Function that Reverses a String [#​796]
  • Introduce pre-order / post-order visitor pattern [#​813]
  • Add Libraries() function to Env [#​822]
  • Static optimizer for constant folding [#​804]
  • Inlining optimizer [#​827]
  • FindStructTypeFields support for types.Provider [#​814]

Breaking Changes

The following PR changes the API signature of the checker.AstNode method Expr to return an ast.Expr.

  • Migrate the checker.Coster to the ast.Expr [#​798]

Fixes

  • Nil safety checks for cel.Ast [#​784]
  • Fix cost estimates to propagate result sizes [#​787]
  • Catch invalid literals created from expression factories [#​810]
  • Ensure stable ordering of overload candidates [#​817]
  • Clarify replace with/by empty string [#​820]
  • Fix functional exemptions for homogeneous literal checks [#​832]
  • Fix logical operator folding that only involve literals [#​833]
  • Upgrade go-genproto to latest [#​831]

New Contributors

Full Changelog: google/cel-go@v0.17.1...v0.18.0

v0.17.8

Compare Source


Configuration

📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot requested a review from a team as a code owner November 5, 2024 01:09
Copy link
Contributor Author

renovate bot commented Nov 5, 2024

ℹ Artifact update notice

File name: metrics-operator/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
k8s.io/apiserver v0.29.10 -> v0.31.2
k8s.io/component-base v0.29.10 -> v0.31.2

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.63%. Comparing base (cada033) to head (5b8763b).
Report is 4 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (cada033) and HEAD (5b8763b). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (cada033) HEAD (5b8763b)
metrics-operator 1 0
lifecycle-operator 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3832       +/-   ##
===========================================
- Coverage   77.69%   65.63%   -12.06%     
===========================================
  Files         219       37      -182     
  Lines       11575     2747     -8828     
===========================================
- Hits         8993     1803     -7190     
+ Misses       2217      804     -1413     
+ Partials      365      140      -225     

see 184 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 47.44% <ø> (ø)
component-tests 79.21% <ø> (+0.06%) ⬆️
lifecycle-operator ?
metrics-operator ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@odubajDT odubajDT added the on hold Do not merge yet label Nov 5, 2024
Signed-off-by: odubajDT <[email protected]>
Copy link
Contributor Author

renovate bot commented Nov 5, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@odubajDT odubajDT removed the on hold Do not merge yet label Nov 5, 2024
Copy link

sonarcloud bot commented Nov 5, 2024

@odubajDT odubajDT added the on hold Do not merge yet label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant