You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2022/02/28 22:24:00 UTC

[jira] [Resolved] (AIRAVATA-3585) remove_old_js_css_files.py fails for React generated files

     [ https://issues.apache.org/jira/browse/AIRAVATA-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Christie resolved AIRAVATA-3585.
---------------------------------------
    Resolution: Fixed

> remove_old_js_css_files.py fails for React generated files
> ----------------------------------------------------------
>
>                 Key: AIRAVATA-3585
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3585
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> The script is looking for files in the pattern
> {code}
> [name].[checksum].[ext]
> {code}
> But the React generated files from the https://github.com/cseseniordesign/rna-nanostructures Django app produces files of the pattern
> {code}
> [name].[checksum].chunk.[ext]
> {code}
> The regex needs to be updated accordingly
> Error message:
> {code}
> fatal: [rnamake]: FAILED! => {
>     "changed": true,
>     "cmd": [
>         "/usr/local/bin/remove_old_js_css_files.py",
>         "-b",
>         "/var/www/portals/django-rnamake/static"
>     ],
>     "delta": "0:00:00.105918",
>     "end": "2022-02-28 22:07:38.080826",
>     "failed": true,
>     "rc": 1,
>     "start": "2022-02-28 22:07:37.974908"
> }
> STDERR:
> Traceback (most recent call last):
>   File "/usr/local/bin/remove_old_js_css_files.py", line 46, in <module>
>     raise Exception(f"Regex failed on filename {filename} in {root}")
> Exception: Regex failed on filename main.bbfe2914.chunk.css in /var/www/portals/django-rnamake/static/hcc_rnamake_portal/dist
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)