-
Notifications
You must be signed in to change notification settings - Fork 111
Build Che Theia generator on image build if it was changed in any way #441
Conversation
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.
Can we compare date of tgz and generator directory ?
If directory is more recent then we regenerate the tgz ?
@benoitf I see no clear way of doing it. I've tried on my Fedora 30 to change a file inside subdirectory of tested directory and modification time of the top directory hasn't been changed. Also we do not know FS settings, like noatime etc. So it is safer to rebuild each time (and the script is easier to understand and maintain). Yes we'll lose ~20-30 seconds on build, but it worst them, I think. |
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
ci-build |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
I would check the last git modification for generator folder
and compare it to .tgz file (if tgz is older than the git log date it needs to be generated again) and check if we have dirty files in generator folder as well and if it's the case, we generate again as well
(if not empty output, generate again) |
5367cab
to
ba1dc6a
Compare
@benoitf I've updated the PR, please review it again. Also would be great if you test the changes. |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
@mmorhun
you could use date command instead as it's working fine on BSD/macOS on macOs:
on Linux:
|
ba1dc6a
to
ba70de1
Compare
@benoitf thanks for letting me know. I have no Mac device to test, so please test it again) |
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.
I've tested without tgz file, with a local change or a re-run and all is working as expected 👍
thx @mmorhun
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
do we know what is the issue with the happy path ? |
@benoitf the test failed with timeout on clone project, I think we can try to rerun it. |
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
ba70de1
to
3079b0d
Compare
Rebased |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
@mmorhun I think you need to rebase again |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
@mmorhun: this PR check had failed because of new Happy path tests issue eclipse-che/che#14660 |
Signed-off-by: Eric Williams <ericwill@redhat.com>
Signed-off-by: Mykola Morhun mmorhun@redhat.com
What does this PR do?
Rebuild Che Theia generator when cache assembly is out of date.
Before we used previously built artifact if it existed on disk and with such approach we're loosing new changes in the generator.
Now the generator is built when there is a change in the generator source code or the last commit which has changed the generator is newer than built assembly.
Should provide fix for eclipse-che/che#14555
What issues does this PR fix or reference?
eclipse-che/che#14555