Skip to content

feat: add function sync script with upstream#138

Open
sunng87 wants to merge 4 commits intomainfrom
feature/more-functions
Open

feat: add function sync script with upstream#138
sunng87 wants to merge 4 commits intomainfrom
feature/more-functions

Conversation

@sunng87
Copy link
Copy Markdown
Member

@sunng87 sunng87 commented Apr 3, 2026

add a python script to sync function with upstream.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.93%. Comparing base (c4bebc8) to head (5aa6234).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
- Coverage   98.93%   98.93%   -0.01%     
==========================================
  Files          15       15              
  Lines        6560     6559       -1     
==========================================
- Hits         6490     6489       -1     
  Misses         70       70              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sunng87 sunng87 requested review from evenyag and waynexia April 3, 2026 05:42
@sunng87
Copy link
Copy Markdown
Member Author

sunng87 commented Apr 9, 2026

@waynexia do you think we can remove holt_winters to follow upstream?

@evenyag
Copy link
Copy Markdown
Contributor

evenyag commented Apr 13, 2026

@waynexia do you think we can remove holt_winters to follow upstream?

Maybe we should keep it for compatibility with prometheus 2.x.

@evenyag
Copy link
Copy Markdown
Contributor

evenyag commented Apr 13, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5aa62345ca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/parser/ast.rs
Comment on lines 1573 to 1577
if ex.func.variadic > 0 {
let expected_args_len_without_default = expected_args_len.saturating_sub(1);
let expected_max_args_len =
expected_args_len_without_default + ex.func.variadic as usize;
if expected_max_args_len < actual_args_len {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reinstate minimum-arity check for bounded variadics

For functions with variadic > 0, this branch now enforces only the maximum argument count and no longer enforces the required minimum (arg_types.len() - 1). That makes invalid calls like round() (and similarly info() / other bounded-variadic functions) pass semantic validation with zero arguments, which diverges from PromQL function signatures and allows malformed queries to parse successfully.

Useful? React with 👍 / 👎.

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