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

Run cypress test at workflow. #225

Closed
wants to merge 12 commits into from
Closed

Run cypress test at workflow. #225

wants to merge 12 commits into from

Conversation

mshima
Copy link
Member

@mshima mshima commented Aug 21, 2021

Draft a custom test with cypress.
Disabled 2 tests to succeed for 1 test to succeed.

Broken:

  • imperative-ngx-jwt-maven-mysql-caffeine: mysql problem
  • imperative-react-jwt-gradle-mysql-caffeine: gradle bootJar
  • imperative-ngx-oauth2-maven-mysql-caffeine: 'quarkus.oidc.client-id' property must be configured
  • h2 + maven
  • Relationship with Users need to add /api/user.

@sonarcloud
Copy link

sonarcloud bot commented Aug 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mraible
Copy link
Contributor

mraible commented Oct 21, 2022

@mshima Is this still needed?

@mshima
Copy link
Member Author

mshima commented Oct 21, 2022

@mraible I don't think it has been implemented, it's nice to have.
See #250.

@mshima mshima closed this Oct 21, 2022
@mshima mshima reopened this Oct 21, 2022
@mshima
Copy link
Member Author

mshima commented Oct 21, 2022

Reopened to create a new merge point.

@mshima
Copy link
Member Author

mshima commented Oct 21, 2022

3 of 7 tests are passing if the account register is disabled.
The MongoDB test is failing with:

io.quarkus.hibernate.validator.runtime.interceptor.AbstractMethodValidationInterceptor.validateMethodInvocation(AbstractMethodValidationInterceptor.java:71)

Looks like its using hibernate??

@vishal423
Copy link
Collaborator

3 of 7 tests are passing if the account register is disabled.

Any specific reason for that?

The MongoDB test is failing with:

io.quarkus.hibernate.validator.runtime.interceptor.AbstractMethodValidationInterceptor.validateMethodInvocation(AbstractMethodValidationInterceptor.java:71)

Looks like its using hibernate??

That's just Validator. Actual cause could be mismatch in impl vs expectation.

Another point I remember about OIDC flow is that it requires a minor override in cypress login command to redirect post authentication ( at least for Keycloak). There are other open issues like missing authorities endpoint, missing roles etc that require closure before achieving a green state.

@mshima
Copy link
Member Author

mshima commented Oct 21, 2022

Any specific reason for that?

Disable account register?
It's broken for every workflow.

@mshima
Copy link
Member Author

mshima commented Oct 21, 2022

For oauth2 we could try to migrate to ui login.

@vishal423
Copy link
Collaborator

Any specific reason for that?

Disable account register? It's broken for every workflow.

Did you try with latest code?

@vishal423
Copy link
Collaborator

For oauth2 we could try to migrate to ui login.

I haven't observed much issues with login post initial implementation. We can try login with UI (with all providers), however that should be done on JHipster side and not over here. For current issue, the change is at a single place to redirect (current conf is to not do that)

@mshima
Copy link
Member Author

mshima commented Oct 22, 2022

Any specific reason for that?

Disable account register? It's broken for every workflow.

Did you try with latest code?

Sure https://github.com/jhipster/generator-jhipster-quarkus/actions/runs/3299590773 (last but one commit)

With account registration disabled https://github.com/jhipster/generator-jhipster-quarkus/actions/runs/3299677293 (last commit)

strategy:
fail-fast: false
matrix:
node_version: [14.16.0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should update to align with supported node version

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, at jhipster we read from constants now.

- app: imperative-sql-jwt-maven-no-db
- app: imperative-ngx-oauth2-maven-mysql-caffeine
exclude:
- app: imperative-ngx-jwt-gradle-mongodb-redis
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the exclusion is due to some failures, then, please log an issue so that it can be looked into and fixed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's excluded from main workflow too. That's the reason.

- name: 'SETUP: Checkout generator-jhipster'
uses: actions/checkout@v2
with:
repository: 'jhipster/generator-jhipster'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we are relying on the main branch of JHipster. I suggest to rely on the current supported JHipster version i.e. v7.9.3 to avoid any surprises.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It should be version specific.

get postWriting() {
return {
customize() {
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove commented code block

"it.skip('should be able to init reset password'"
);
*/
this.replaceContent(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will take a look into registration test failure. Can you remove this hack?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, fell free to change the PR or create a branch in the this repository as you wish.

with:
path: generator-jhipster-quarkus
fetch-depth: 5
- name: git history
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Displaying git history in CI seems just clutter and not much useful. Can we remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be dropped.

id: compare
if: steps.base-app.outcome == 'success'
uses: ./generator-jhipster/.github/actions/compare
- name: 'Backend diff with updated prettier'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this step?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v6 -> v7 was complicated and all files changed due to prettier changes.
It was temporary added for this purpose. Can be dropped.

@@ -0,0 +1,124 @@
name: Imperative Smoke Tests Compare
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having two CI workflows executing similar tests, can we enrich existing CI tests to add compare functionality and to run the e2e tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t recall exactly why, but they were temporary created for different purposes for the v6 -> v7 migration.

@sonarcloud
Copy link

sonarcloud bot commented Nov 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mshima mshima mentioned this pull request Nov 13, 2022
@mshima mshima deleted the workflow branch June 10, 2024 01:32
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.

3 participants