Page MenuHomeSoftware Heritage

cypress: Use webpack-dev-server to serve static assets
ClosedPublic

Authored by anlambert on May 20 2021, 7:07 PM.

Details

Summary

It enables to not relaunch cypress UI when modifying swh-web
assets sources, static assets will be recompiled on the fly
insead of prior launching cypress.

Cypress tests will also be automatically re-executed when
static assets sources have changed.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5762 (id=20606)

Rebasing onto 33daf4c007...

Current branch diff-target is up to date.
Changes applied before test
commit 3aaac995e73be9625adc7de1699596e884493524
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu May 20 19:03:30 2021 +0200

    cypress: Use webpack-dev-server to serve static assets
    
    It enables to not relaunch cypress UI when modifying swh-web
    assets sources, static assets will be recompiled on the fly
    insead of prior launching cypress.
    
    Cypress tests will also be automatically re-executed when
    static assets sources have changed.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/843/ for more details.

ardumont added a subscriber: ardumont.

Awesome ;)

one remark/question inline .

Makefile.local
104

?

Note: on my machine

$ echo $$$$
1461314613
$ echo $$
14613

ah or is it an escape form in some ways for the Makefile?

This revision is now accepted and ready to land.May 21 2021, 9:24 AM
Makefile.local
104

yes we need to escape $ with $$ in the Makefile.

Build is green

Patch application report for D5762 (id=20612)

Rebasing onto 33daf4c007...

Current branch diff-target is up to date.
Changes applied before test
commit 79c6da6bed5aa697a805d7a0ea168dd8e42a0f26
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu May 20 19:03:30 2021 +0200

    cypress: Use webpack-dev-server to serve static assets
    
    It enables to not relaunch cypress UI when modifying swh-web
    assets sources, static assets will be recompiled on the fly
    insead of prior launching cypress.
    
    Cypress tests will also be automatically re-executed when
    static assets sources have changed.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/844/ for more details.