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

migrating influxdb e2e to go #3451

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

Ritikaa96
Copy link
Contributor

Signed-off-by: Ritikaa96 ritika@india.nec.com

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Tests have been added

Fixes #3237

Relates to #2737

@Ritikaa96 Ritikaa96 requested a review from a team as a code owner July 30, 2022 16:28
@Ritikaa96 Ritikaa96 force-pushed the influxdb-migration-to-golang branch 2 times, most recently from 817dff1 to 7a3e4f3 Compare July 30, 2022 17:19
@Ritikaa96
Copy link
Contributor Author

Hi , @JorTurFer @tomkerkhove @v-shenoy PTAL !

@JorTurFer
Copy link
Member

JorTurFer commented Jul 30, 2022

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

@JorTurFer
Copy link
Member

JorTurFer commented Jul 30, 2022

Could you implement the activation too? I mean, as part of this PR

@Ritikaa96
Copy link
Contributor Author

Could you implement the activation too? I mean, as part of this PR

sure, @JorTurFer but shouldn't the activation feature be added to the scaler first? Let me know what you think.. i'll start with the scaler meanwhile.

@JorTurFer
Copy link
Member

Yes, you should add it to the scaler and also to the e2e. If you prefer to do in another split PR it's okey too
I was trying to find a volunteer to do it 😁

@Ritikaa96
Copy link
Contributor Author

Yes, you should add it to the scaler and also to the e2e. If you prefer to do in another split PR it's okey too I was trying to find a volunteer to do it grin

you found one then. i'm on it! :D

@Ritikaa96
Copy link
Contributor Author

@JorTurFer Hi, i would make the change in influxdb_test.go in the pr for activation. you can go ahead with the merge.

Yes, you should add it to the scaler and also to the e2e. If you prefer to do in another split PR it's okey too I was trying to find a volunteer to do it grin

@Ritikaa96
Copy link
Contributor Author

Ritikaa96 commented Aug 1, 2022

Yes, you should add it to the scaler and also to the e2e. If you prefer to do in another split PR it's okey too I was trying to find a volunteer to do it grin

@JorTurFer Hi, i would make the change in influxdb_test.go in the pr for activationValue. you can go ahead with the merge.

Comment on lines 456 to 464
pods, err := kc.CoreV1().Pods(namespace).List(context.TODO(),
metav1.ListOptions{LabelSelector: label})
if err != nil {
assert.NoErrorf(t, err, "no pod in the list - %s", err)
}
var podLogRequest *rest.Request
for _, v := range pods.Items {
podLogRequest = kc.CoreV1().Pods(namespace).GetLogs(v.Name, &corev1.PodLogOptions{})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we assuming here only one pod matches the label (considering we overwrite the podLogRequest)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are we assuming here only one pod matches the label (considering we overwrite the podLogRequest)?

hi @v-shenoy , yes , the function was made as per influxdb scaler & then transferred to helper so might have missed this detail. what do you suggest in this case ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move all the below lines into the loop, and we return a list of logs (although we don't have much use for it right now, but the function will be more general at least).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's what i am working on right now. or we can just list out name of pods because not many tests are trying to access the logs but a function for list of pods would be much more useful
What Do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you elaborate what you mean by list out name of pods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @v-shenoy , generalised the function for logs in latest code ,as for the last comment : If the function were to return only a list of podnames then the scaler test would try finding whatever information regarding the pod using the particular pod name. It depends on scaler test demands if more tests demand pod details and not logs then we can keep it till the podList is given.

For time being i made the function generalised , thanks for the suggestion!

Signed-off-by: Ritikaa96 <ritika@india.nec.com>
@Ritikaa96 Ritikaa96 force-pushed the influxdb-migration-to-golang branch from 7a3e4f3 to d93ee85 Compare August 3, 2022 14:50
@JorTurFer
Copy link
Member

JorTurFer commented Aug 3, 2022

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

@Ritikaa96
Copy link
Contributor Author

@v-shenoy @JorTurFer PTAL

@JorTurFer JorTurFer enabled auto-merge (squash) August 4, 2022 13:25
@JorTurFer JorTurFer disabled auto-merge August 4, 2022 13:25
@JorTurFer JorTurFer merged commit b423ee5 into kedacore:main Aug 4, 2022
@JorTurFer
Copy link
Member

Thanks a lot @Ritikaa96 !
Could you open another PR adding the activation support?

@Ritikaa96
Copy link
Contributor Author

Thanks a lot @Ritikaa96 ! Could you open another PR adding the activation support?

sure @JorTurFer !!

@JorTurFer
Copy link
Member

We plan to do a release next week, do you think that you have enough time? We can do it of not, no pressure 😊

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.

Migrate e2e test for InfluxDB to Go
3 participants