[
https://issues.apache.org/jira/browse/AIRAVATA-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499206#comment-17499206
]
ASF subversion and git services commented on AIRAVATA-3585:
-----------------------------------------------------------
Commit 0afc1b70ebaf847feae9c178d8cea89f51a781fa in airavata's branch
refs/heads/develop from Marcus Christie
[ https://gitbox.apache.org/repos/asf?p=airavata.git;h=0afc1b7 ]
AIRAVATA-3585 update regex to include React generated files
> 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)