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

Support WithJob inside WithJob #5

Open
lanvstn opened this issue Jun 28, 2023 · 0 comments
Open

Support WithJob inside WithJob #5

lanvstn opened this issue Jun 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lanvstn
Copy link
Owner

lanvstn commented Jun 28, 2023

Jobs should be able to act as controllers for other jobs. This is currently not possible and explicitly panicked on (due to #3).

I'm thinking a job should be able to open its own Kutest session, even though it already has a Kutest SessID from the controller. In other words, the job controlled by the controller becomes a controller. This should be able to recurse into infinity.

Log propagation challenge.

Currently Kutest relies on the propagation of logs through Kubernetes get log calls. If a job1 schedules job1_1, the logs of job1_1 will be accessible job1 and the logs of job1 on the controller, but we need job1_1 on the controller as well.

A workaround would be to, if we are a controller AND a job, we print the logs of our jobs to our output instead of including it in the report. But that is clunky and not good for those flashy reports.

By design we are unfortunately limited to the k8s API and I'm not to keen on serializing+deserializing Ginkgo reports through the k8s logging channel.

Seems like for a perfect solution a compromise may have to be made on the simplicity on Kutest, but I don't like doing that so it requires some further thought.

@lanvstn lanvstn added the enhancement New feature or request label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant