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

Add a new API for listing logs and artifacts from a log area #66

Merged
merged 12 commits into from
Jun 20, 2024

Conversation

t-persson
Copy link
Collaborator

Applicable Issues

eiffel-community/etos#238

Description of the Change

Added a v1alpha API for listing logs and artifacts produced by ETOS. This is to be used to reduce the load of the event repositories when ETOS executes many testruns.

Alternate Designs

I thought about proxying the files directly from the API and have the client always know how to download the files. I decided against it due to the added complexity and not wanting to deal with memory usage in the logarea service. This is something that may be looked at in a v1 release of the API.

Possible Drawbacks

This API service will get a lot of traffic instead of the event repository. However I do believe that this solution is more scalable than the Eiffel GraphQL API.

Sign-off

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

Signed-off-by: Tobias Persson [email protected]

@t-persson t-persson requested a review from a team as a code owner June 4, 2024 09:43
@t-persson t-persson requested review from fredjn and andmat900 and removed request for a team June 4, 2024 09:43
@t-persson
Copy link
Collaborator Author

This change works if the changes in #65 are merged. All CI problems are for python code and I have not changed any python code

deploy/etos-logarea/Dockerfile.dev Outdated Show resolved Hide resolved
internal/config/config.go Outdated Show resolved Hide resolved
pkg/logarea/v1alpha/logarea.go Outdated Show resolved Hide resolved
pkg/logarea/v1alpha/logarea.go Outdated Show resolved Hide resolved
pkg/logarea/v1alpha/logarea.go Show resolved Hide resolved
pkg/logarea/v1alpha/logarea.go Outdated Show resolved Hide resolved
pkg/logarea/v1alpha/logarea.go Show resolved Hide resolved
pkg/logarea/v1alpha/suite.go Outdated Show resolved Hide resolved
pkg/logarea/v1alpha/suite.go Outdated Show resolved Hide resolved
test/testconfig/testconfig.go Show resolved Hide resolved
Spelling errors
Added panicRecovery and timeout
Removed unused context
Added nosniff header
@t-persson t-persson requested a review from fredjn June 19, 2024 11:36
@t-persson t-persson merged commit d362cd1 into eiffel-community:main Jun 20, 2024
5 checks passed
@t-persson t-persson deleted the logarea-list-api branch June 20, 2024 09:40
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