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

Merge Grafana's fork changes #686

Merged
merged 120 commits into from
Sep 13, 2022
Merged

Conversation

npazosmendez
Copy link
Collaborator

Hello! As discussed, we are sending a PR to include the changes we've been working on our fork . We acknowledge this is a big and hard to review PR, merging our changes in bulk like this is not our intended workflow. This huge PR should be a one-time thing.

Since this has so many changes, we think it would be better if it was merged using the commit strategy.

About the changes

We've been focusing on the rendering functionality of carbonapi, so our changes are mostly in the expr package. Roughly, our changes can be divided into 3:

Extra notes

carrieedwards and others added 30 commits June 14, 2022 13:11
Update imports to use grafana/carbonapi
* Add configuration for running tests on drone

* Update test step

* Update drone config

* Add docker drone config

* Add coverage and linting

* Add go.mod and go.sum and update script
* Add support for Graphite web exp() function

* Add test for exp() function

* Add tag to results

* Update glue.go file

* Use different test method due to tags

* Update compatibility doc to reflect exp function being supported

* Fix test name
* Add support for Graphite web logit() function

* Add tests for logit()

* Update glue.go

* Update logit function

* Update test to include divide by zero

* Update description

* Update glue.go

* Update imports

* Fix test
* Add support for Graphite web unique() function

* Add test for unique() function

* Update glue.go

* Update comment

* Update imports
* Update tags handling in expr functions to match Graphite web

* Fix circular imports and tags

* Update tags

* Fix test failures due to adding tags

* Update calls to TestEvalExprModifiedOrigin to check for err

* Fixes

* Update smartSummarize test
@@ -45,9 +45,9 @@ func (f *linearRegression) Do(ctx context.Context, e parser.Expr, from, until in
for _, a := range arg {
r := a.CopyLink()
if len(e.Args()) > 2 {
r.Name = fmt.Sprintf("linearRegression(%s,'%s','%s')", a.GetName(), e.Arg(1).StringValue(), e.Arg(2).StringValue())
r.Name = "linearRegression(" + a.GetName() + ",'" + e.Arg(1).StringValue() + "','" + e.Arg(2).StringValue() + "')"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also move e.Arg(N).StringValue() outside a cycle/. But not blocking change, may be for simplify PR refactoing we can merge without this.

@Civil Civil enabled auto-merge (rebase) September 10, 2022 15:10
Civil
Civil previously approved these changes Sep 10, 2022
auto-merge was automatically disabled September 12, 2022 14:08

Head branch was pushed to by a user without write access

@npazosmendez
Copy link
Collaborator Author

npazosmendez commented Sep 12, 2022

I think we are getting close to merging this. This is what is pending:

carrieedwards and others added 2 commits September 12, 2022 12:57
* Fix xFilesFactor handling in AggregateSeries and add tests

* Add more xFilesFactor tests for removeZeroSeries
msaf1980
msaf1980 previously approved these changes Sep 12, 2022
@Civil
Copy link
Member

Civil commented Sep 12, 2022

Can you rebase your branch? As that's the only thing that preventing me from merging it.

@Civil Civil enabled auto-merge (rebase) September 12, 2022 18:26
@npazosmendez
Copy link
Collaborator Author

npazosmendez commented Sep 12, 2022

@Civil Ok, I'll resolve the conflicts and rebase it. There's also the DeepSource checks failing, do you want us to fix those?

@Civil
Copy link
Member

Civil commented Sep 12, 2022

Not really, there is a problem with DeepSource as it mostly complains about tests and vendored deps, while they should be excluded (according to the config).

Btw, for compatibility checks with graphite-web, do you have some sort of validation scripts/tools or you do the work manually?

@carrieedwards
Copy link
Collaborator

Btw, for compatibility checks with graphite-web, do you have some sort of validation scripts/tools or you do the work manually?

So far, we have been doing manual compatibility checks with Graphite web

@npazosmendez
Copy link
Collaborator Author

npazosmendez commented Sep 12, 2022

@Civil done, rebasing was causing lots of conflicts because of how our change history is, so I merged the main branch instead. But that should unlock the merging.

Feel free to merge, we're done from our side. We think it would be best to merge with the commit strategy and not squash, so the commits are preserved.

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.

5 participants