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

Backport fixes to release 2.8 #4135

Merged

Conversation

pedro-stanaka
Copy link
Contributor

@pedro-stanaka pedro-stanaka commented Jan 18, 2023

I am backporting a list of fixes to the release 2.8, so we can tag and release a patch version 2.8.2.

Relates to #4132

Checklist

Fixes #4132

@pedro-stanaka pedro-stanaka requested a review from a team as a code owner January 18, 2023 07:59
@pedro-stanaka pedro-stanaka mentioned this pull request Jan 18, 2023
1 task
@zroubalik
Copy link
Member

@pedro-stanaka could you please run make clientset-generate on this branch and make a new commit containing this change?

@pedro-stanaka
Copy link
Contributor Author

@zroubalik I did that before when I saw the output from CI, but I did not get any diff:
image

@zroubalik
Copy link
Member

zroubalik commented Jan 18, 2023

oh I see, there's an itendation problem in those files caused by different go versions and operating systems :( 🤯 It has been resolved recently. So we should hack this:

Could you please copy these files from release/v2.8 branch to your local branch and commit them into this PR?
Here are direct links to correctly intended files:
https://github.com/kedacore/keda/blob/12783c1340a13ba6776d1d6a64127d88e7828aab/pkg/generated/clientset/versioned/fake/register.go
https://github.com/kedacore/keda/blob/12783c1340a13ba6776d1d6a64127d88e7828aab/pkg/generated/clientset/versioned/scheme/register.go

@pedro-stanaka
Copy link
Contributor Author

oh I see, there's an itendation problem in those files caused by different go versions and operating systems :( 🤯 It has been resolved recently. So we should hack this:

Could you please copy these files from release/v2.8 branch to your local branch and commit them into this PR? Here are direct links to correctly intended files: https://github.com/kedacore/keda/blob/12783c1340a13ba6776d1d6a64127d88e7828aab/pkg/generated/clientset/versioned/fake/register.go https://github.com/kedacore/keda/blob/12783c1340a13ba6776d1d6a64127d88e7828aab/pkg/generated/clientset/versioned/scheme/register.go

CI seems happier now, I forgot which step failed before, but I think it passed now.

@zroubalik
Copy link
Member

@JorTurFer we should probably also fix those security problems identified by Trivy, right?

@zroubalik
Copy link
Member

@pedro-stanaka could you please enforce update of the packages identified in the check: https://github.com/kedacore/keda/actions/runs/3947682302/jobs/6756786914 ?

@pedro-stanaka
Copy link
Contributor Author

Sure thing. Let me try it.

@zroubalik
Copy link
Member

@pedro-stanaka it is better to do it through replace directive (at least for the go net package)

keda/go.mod

Line 92 in a25f1a4

replace (

@pedro-stanaka
Copy link
Contributor Author

pedro-stanaka commented Jan 18, 2023

Hum this CVE: https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMAWSAWSSDKGOSERVICES3S3CRYPTO-598253
sounds like a false-positive. We are on 1.44 and it says it should be resolved in 1.34+.

Edit: I see we have the same problem in main, but for some reason it passes there. I also see that main is using a config file instead of the cli args.

@zroubalik
Copy link
Member

zroubalik commented Jan 18, 2023

/run-e2e
Update: You can check the progress here

@pedro-stanaka
Copy link
Contributor Author

@zroubalik seems like some configuration problem of CI here again. Did I forget to port something?

@zroubalik
Copy link
Member

@JorTurFer ^

@zroubalik
Copy link
Member

it's most likely configuration error on our side

@JorTurFer
Copy link
Member

I have to check because there are multiple things failing...
You can ignore these missing checks, it's normal because they are checks introduced in main branch
image

WRT e2e test, it's something that it's failing, and I have an idea (I think it's related with the migration to the new testing-infrastructure repo), I need to check it better.

Trivy check is still failing due to aws dep

@JorTurFer
Copy link
Member

For solving e2e test, this PR is required. Let me cherry-pick it before and then rebase your branch

@pedro-stanaka
Copy link
Contributor Author

pedro-stanaka commented Jan 18, 2023

I can rebase as well, just let me know when you rebased your PR.

@JorTurFer
Copy link
Member

I can rebase as well, just let me know when you rebased your PR.

I have already merged the PR into release/v2.8 branch, please rebase your branch from it

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
…3694)

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
…ore#3762)

* fix(prometheus scaler): Detect Inf before casting float to int

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

* Improve the log message

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
toniopelo and others added 11 commits January 19, 2023 07:34
…red (waiting for ack) towards keda value (kedacore#3809)

* fix: keda now include the messages that should be retried in the count of pending messages used for scaling

Signed-off-by: Antoine Laffargue <antoine.laffargue@gmail.com>

* chore: update changelog

Signed-off-by: Antoine Laffargue <antoine.laffargue@gmail.com>

Signed-off-by: Antoine Laffargue <antoine.laffargue@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Laszlo Kishalmi <laszlo.kishalmi@partech.com>

Signed-off-by: Laszlo Kishalmi <laszlo.kishalmi@partech.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
…re#3788)

* Update stackdriver client to handle metrics of value type double

Signed-off-by: Eric Takemoto <24865872+octothorped@users.noreply.github.com>

* move change log note to below general

Signed-off-by: Eric Takemoto <24865872+octothorped@users.noreply.github.com>

* parse activation value as float64

Signed-off-by: Eric Takemoto <24865872+octothorped@users.noreply.github.com>

* change target value to float64 for GCP pub/sub and stackdriver

Signed-off-by: Eric Takemoto <24865872+octothorped@users.noreply.github.com>

Signed-off-by: Eric Takemoto <24865872+octothorped@users.noreply.github.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: ytz <1020560484@qq.com>
Signed-off-by: taenyang <1020560484@qq.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Tony Lee <dogzzdogzz@gmail.com>
Signed-off-by: Tony Lee <tony.lee@shopback.com>
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
Co-authored-by: Tony Lee <tony.lee@shopback.com>
Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Fixes kedacore#3992

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jan 19, 2023

/run-e2e
Update: You can check the progress here

@JorTurFer
Copy link
Member

JorTurFer commented Jan 19, 2023

/run-e2e redis_standalone*
Update: You can check the progress here

@JorTurFer
Copy link
Member

JorTurFer commented Jan 19, 2023

/run-e2e cassandra*
Update: You can check the progress here

@JorTurFer
Copy link
Member

JorTurFer commented Jan 19, 2023

/run-e2e predictkube*
Update: You can check the progress here

@JorTurFer
Copy link
Member

Thanks for your help @pedro-stanaka

@JorTurFer JorTurFer merged commit e0ba57d into kedacore:release/v2.8 Jan 19, 2023
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.

7 participants