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

Too many failing builds #115

Closed
deepu105 opened this issue Jun 4, 2021 · 31 comments
Closed

Too many failing builds #115

deepu105 opened this issue Jun 4, 2021 · 31 comments

Comments

@deepu105
Copy link
Member

deepu105 commented Jun 4, 2021

I was looking into failing builds after the recent react migrations jhipster/generator-jhipster#15191 and jhipster/generator-jhipster#15106 and found that there are many other failing builds as well with weird errors

Many failures seems to be during e2e tests. The angular protractor e2e tests are also failing and the above migrations havent touched those so it needs investigation. Also the React e2e were fixed in recent commits but the repo here seems to use old code anyway. @pascalgrimaud is there some sort of cache here?

Overall I might need more help here @pascalgrimaud @DanielFran @mshima @SudharakaP

@pascalgrimaud
Copy link
Member

No cache, excepting maybe for maven libs, but I don't think it's related

@deepu105
Copy link
Member Author

deepu105 commented Jun 4, 2021

For somereason the error is from before my fixes for example this shouldnt happen anymore as I removed those expect calls in templates so dont know how it still does it. Lemme try to replicate this locally

@mshima
Copy link
Contributor

mshima commented Jun 4, 2021

It turns out that proctrator is conflicting with chrome 91.
There is no specific commit that broke daily builds.

@deepu105
Copy link
Member Author

deepu105 commented Jun 4, 2021

@mshima but not for all builds I think, todays builds are running with some failures like I mentioned above

@mshima
Copy link
Contributor

mshima commented Jun 4, 2021

@deepu105 the build you mentioned is before your PR. The correct is https://github.com/hipster-labs/jhipster-daily-builds/runs/2742805106.

@deepu105
Copy link
Member Author

deepu105 commented Jun 4, 2021

ah shit sorry

@deepu105
Copy link
Member Author

deepu105 commented Jun 4, 2021

anyway we need to work on this so i'm putting a bounty on this

@deepu105
Copy link
Member Author

deepu105 commented Jun 4, 2021

also should we switch to cypress for some tests instead of protractor ?

@pascalgrimaud
Copy link
Member

@deepu105 : I mixed both, protractor for default builds, cypress for JDL

@mshima
Copy link
Contributor

mshima commented Jun 5, 2021

@deepu105 you fixed on react side with jhipster/generator-jhipster@11dfed8#diff-c14159cc6cbb565f01325eed42e2932a5c0fe58c47a93ed84bea30fa41dcfa6c.

Should be applied to angular and vue?
Any clue why this was required?

@deepu105
Copy link
Member Author

deepu105 commented Jun 5, 2021 via email

@mshima
Copy link
Contributor

mshima commented Jun 7, 2021

I've deployed a workaround at jhipster/generator-jhipster#15227.

Fix is merged but not released yet: https://bugs.chromium.org/p/chromium/issues/detail?id=1205107&start=300Upstream
protractor issue: angular/protractor#5519

We should revert the workaround once the fix is released.

@deepu105
Copy link
Member Author

deepu105 commented Jun 7, 2021 via email

@pascalgrimaud
Copy link
Member

Not sure, but if I remember well, these additional checks were there to fix the random failures we got in the past

@pascalgrimaud
Copy link
Member

Still some errors with React + i18n :

image

image

@pascalgrimaud
Copy link
Member

My investigation led me to jhipster/generator-jhipster@24e0894#diff-86124b7420820701b49181ce2aa6a3cb0dd3731cea2937e32311ae19b7393cf5 and specially at:

image

It explains the NPE in the backend, which could be fixed by something like:

    private String getLangKey(User user) {
        return Optional.ofNullable(user.getLangKey()).orElse("en");
    }

Anyway, the failures are still there, as it concerns the front part.
Can I let you have a look @deepu105 ? Not sure I can solve the React part.

@deepu105
Copy link
Member Author

deepu105 commented Jun 11, 2021 via email

@pascalgrimaud
Copy link
Member

Everything is OK now !
we can close this. Don't forget to claim your bounty @deepu105

@deepu105
Copy link
Member Author

I think @mshima and you also fixed some stuff right? So we should share the bounty

@deepu105
Copy link
Member Author

may be we can each claim 100

@pascalgrimaud
Copy link
Member

Just added a new label, to increase the bounty.
Now you can share :-)

@deepu105
Copy link
Member Author

why 400 is there another person who worked on this apart form the 3 of us?

@mshima
Copy link
Contributor

mshima commented Jun 11, 2021

My investigation led me to jhipster/generator-jhipster@24e0894#diff-86124b7420820701b49181ce2aa6a3cb0dd3731cea2937e32311ae19b7393cf5 and specially at:

Nice find, I was thinking the problem were sass builds not i18n.

For reference the PR that fixed some builds is jhipster/generator-jhipster#15245.

I am planning to add cache to reduce random failures soon.

@deepu105
Copy link
Member Author

@mshima please claim 200 for your PR

@mshima
Copy link
Contributor

mshima commented Jun 11, 2021

@deepu105 I am ok to split 300 in 3.
@pascalgrimaud found the i18n issue.

@deepu105
Copy link
Member Author

Seems like he doesn't want to claim, but I think he should 😉

@mshima
Copy link
Contributor

mshima commented Jun 11, 2021

@deepu105 😆.
I accept then.
This problem got me in the middle of #117.

@deepu105
Copy link
Member Author

@pascalgrimaud
Copy link
Member

@deepu105 : approved

@mshima
Copy link
Contributor

mshima commented Jun 11, 2021

@pascalgrimaud
Copy link
Member

@mshima : approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants