-
Notifications
You must be signed in to change notification settings - Fork 1.2k
gitea github-runner test #6765
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
base: main
Are you sure you want to change the base?
gitea github-runner test #6765
Conversation
Signed-off-by: Christopher Homberger <[email protected]>
39fff4e
to
5317bf5
Compare
Signed-off-by: Christopher Homberger <[email protected]>
…topherHX/6765 Signed-off-by: Christopher Homberger <[email protected]>
Signed-off-by: Christopher Homberger <[email protected]>
f3f08c5
to
2fae819
Compare
Signed-off-by: Christopher Homberger <[email protected]>
The e2e test should not require any secret token to work in your environment. While there might be the possibility that such a test is not wanted for an existing autoscaler designed for github and instead duplicating the scaler for gitea is demanded. BTW keda works now with gitea/gitea:nightly, even without this PR being part of keda Out of draft, no longer custom images used in this e2e test. |
…topherHX/6765-1 Signed-off-by: Christopher Homberger <[email protected]>
/run-e2e gitea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, could you please rename the file with the test?
gitea_runner_test.go -> github_runner_on_gitea_test.go
We use regexes to run e2e tests, renaming this file would trigger this test everytime we want to test github
Thanks!
* merge portforward_test.go into test Signed-off-by: Christopher Homberger <[email protected]>
…topherHX/6765-1 Signed-off-by: Christopher Homberger <[email protected]>
Thank you for your feedback, I have renamed the test file to github_runner_on_gitea_test.go After reading the e2e logs I noticed that I have to merge my two file intergation test into a single file. Please retrigger the e2e test soon. |
Signed-off-by: Christopher Homberger <[email protected]>
Signed-off-by: Christopher Homberger <[email protected]>
/run-e2e github* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice but I don't fully understand the case. I mean, is gitea compatible with GH API? From this PR I think so, so maybe we should include this information in the scaler docs to make users aware of it. WDYT?
tests/scalers/github_runner_on_gitea/github_runner_on_gitea_test.go
Outdated
Show resolved
Hide resolved
tests/scalers/github_runner_on_gitea/github_runner_on_gitea_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Christopher Homberger <[email protected]>
Signed-off-by: Christopher Homberger <[email protected]>
Thanks for your constructive review.
Yes almost compatible for GH APIs in general 1, e.g. go-github can be used to some extend.
Yes documenting this is good a idea. I wonder should Gitea get it's own docs page and just provide a link in the GitHub Article that a Gitea Version of the doc is available as well? Footnotes
|
More documentation is always better for end users, maybe you can document on your side or just a blogpost on keda.sh, as you prefer. Maybe we can just publish a blogpost explaining how to configure KEDA for scaling gitea runners and refer it on gitea docs (or just the opposite, document it on gitea page and link it in GH scaler) |
The search function on keda.sh also searches the description. Would it be a good idea to edit the description so that the word "Gitea" is also mentioned there and thus easier to find? "Gitea uses the same API structure as GitHub, so you can use the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This verifies github_runner scaler compatbility with https://github.com/go-gitea/gitea (v1.25.0)
Cloned the github_runner e2e test to run against a local Gitea instance of nightly
Checklist
Further enhancements
Relates to #6488, go-gitea/gitea#33964