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

Cypress prompts you to Continue Download or Quit every so often #18536

Closed
mraible opened this issue May 2, 2022 · 11 comments · Fixed by #18553
Closed

Cypress prompts you to Continue Download or Quit every so often #18536

mraible opened this issue May 2, 2022 · 11 comments · Fixed by #18553
Labels
area: cleanup $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $100 https://www.jhipster.tech/bug-bounties/
Milestone

Comments

@mraible
Copy link
Contributor

mraible commented May 2, 2022

Overview of the issue

When running Cypress tests with npm run e2e, every so often, I'm prompted to continue downloading or Quit. If I click Quit, the tests continue and pass as expected.

Motivation for or Use Case

This seems to create a cypress/downloads/downloads.html that is huge! 43MB

Reproduce the error

Create an app with Cypress, run npm run e2e a few times.

Suggest a Fix

At the very least, we should ignore cypress/downloads/downloads.html (or maybe just cypress/) in the generated .gitignore when Cypress is chosen.

JHipster Version(s)

main branch as of May 1, 2022.

JHipster Version(s)
twenty-one-points@0.0.1-SNAPSHOT /Users/mraible/dev/21-points
└── generator-jhipster@7.8.1

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "TwentyOnePoints",
    "blueprints": [],
    "buildTool": "gradle",
    "cacheProvider": "ehcache",
    "clientFramework": "angularX",
    "clientPackageManager": "npm",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp": 1651460089159,
    "cypressCoverage": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entitySuffix": "",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.8.1",
    "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "languages": ["en", "fr"],
    "messageBroker": false,
    "nativeLanguage": "en",
    "otherModules": [],
    "packageName": "org.jhipster.health",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": "elasticsearch",
    "serverPort": "8080",
    "serverSideOptions": ["searchEngine:elasticsearch"],
    "serviceDiscoveryType": "no",
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": ["cypress"],
    "websocket": false,
    "withAdminUi": true
  }
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions

Environment and Tools

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06)
OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing)

git version 2.32.0 (Apple Git-132)

node: v16.15.0

npm: 8.6.0

Docker version 20.10.13, build a224086

docker-compose version 1.29.2, build 5becea4c

@mraible mraible added $100 https://www.jhipster.tech/bug-bounties/ $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ area: cleanup and removed area: triage theme: undefined labels May 2, 2022
@mshima
Copy link
Member

mshima commented May 2, 2022

@mraible does this happens at the middle of the test or start?

@mraible
Copy link
Contributor Author

mraible commented May 2, 2022

It happens while tests are running, usually at the end of a test.

@mshima
Copy link
Member

mshima commented May 2, 2022

It’s related to downloading contents inside tests.
I will try to reproduce.

@mshima
Copy link
Member

mshima commented May 4, 2022

@mraible in what application have you been hit by this problem?
Plain 21-points?

@mraible
Copy link
Contributor Author

mraible commented May 4, 2022

I've seen it in many apps this last couple of weeks. It doesn't seem to matter if it's a monolith or microservices. The web framework doesn't seem to matter either since I've seen it with Vue, Ionic, and even Svelte.

@mshima
Copy link
Member

mshima commented May 6, 2022

What's the downloads.html content?

@mraible
Copy link
Contributor Author

mraible commented May 9, 2022

@mshima it's 43MB of gibberish as far as I can tell.

Screen Shot 2022-05-09 at 13 43 19

@mshima
Copy link
Member

mshima commented May 10, 2022

@mraible I've tried to reproduce, but I couldn't.
I think this happens when using auth0/okta.
Can you confirm if that's the case?
The file model-info.pbm is identifiable at the image. I don't think it's open source.

@mraible
Copy link
Contributor Author

mraible commented May 10, 2022

We can close this issue and I can re-open it when I have more details. I think the most important thing for now is to ignore this directory so there's not git changes after running npm run e2e.

@DanielFran DanielFran added this to the 7.9.0 milestone Jun 22, 2022
@mshima
Copy link
Member

mshima commented Feb 13, 2023

@DanielFran
Copy link
Member

@mshima approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cleanup $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $100 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants