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

Wazuh dashboard workflow run fails when managing the base file #180

Closed
rauldpm opened this issue May 16, 2024 · 2 comments · Fixed by #183
Closed

Wazuh dashboard workflow run fails when managing the base file #180

rauldpm opened this issue May 16, 2024 · 2 comments · Fixed by #183
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@rauldpm
Copy link
Member

rauldpm commented May 16, 2024

Description

Testing the release package generation script I have found an error building the Wazuh dashboard:

Run mv /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/opensearch-dashboards-2.13.0-linux-x64.tar.gz /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/wazuh-dashboard_4.9.0-00_x64_enhancement/wj6371-add-workflow-id.tar.gz
  mv /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/opensearch-dashboards-2.13.0-linux-x64.tar.gz /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/wazuh-dashboard_4.9.0-00_x64_enhancement/wj6371-add-workflow-id.tar.gz
  shell: /usr/bin/bash -e {0}
  env:
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
    NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
    YARN_CACHE_LOCATION: /home/runner/.cache/yarn/v6
    VERSION: 2.13.0
    WZD_VERSION: 4.9.0
    WZD_REVISION: 00
    ARTIFACT_BUILD_NAME: wazuh-dashboard_4.9.0-00_x64_enhancement/wj6371-add-workflow-id.tar.gz
mv: cannot move '/home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/opensearch-dashboards-2.13.0-linux-x64.tar.gz' to '/home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/wazuh-dashboard_4.9.0-00_x64_enhancement/wj6371-add-workflow-id.tar.gz': No such file or directory
Error: Process completed with exit code 1.

I used the following parameters:

{'url': 'https://api.github.com/repos/wazuh/wazuh-dashboard/actions/workflows/build_wazuh_dashboard_with_plugins.yml/dispatches', 'headers': {'Authorization': 'token xxxxx', 'Accept': 'application/vnd.github.v3+json'}, 'payload': {'ref': 'enhancement/wj6371-add-workflow-id', 'inputs': {'is_stage': True, 'checksum': True, 'system': 'deb', 'revision': '1', 'architecture': 'amd64', 'reference_security_plugins': '4.9.0', 'reference_wazuh_plugins': '4.9.0'}}}`

Note that I used the revision parameter with value: 1, but the base file is being called as 00, I don't know if this is related or not, but we should review it

WZD_REVISION: 00
wazuh-dashboard_4.9.0-00_x64_enhancement/wj6371-add-workflow-id.tar.gz

Related

@rauldpm rauldpm added type/bug Bug issue level/task Task issue labels May 16, 2024
@wazuhci wazuhci moved this to Triage in Release 4.9.0 May 16, 2024
@Tostti Tostti self-assigned this May 17, 2024
@Tostti
Copy link
Member

Tostti commented May 17, 2024

I think that the error is related to the branch name, as it contains a / and is used as part of the file name, it is possible that it causes some issues.
I renamed the branch just to do a test, replacing the / with a -

@wazuhci wazuhci moved this from Triage to In progress in Release 4.9.0 May 17, 2024
@Tostti
Copy link
Member

Tostti commented May 17, 2024

After removing the / from the branch name, the workflow worked as expected

https://github.com/wazuh/wazuh-dashboard/actions/runs/9127402181

image

I will now rename the branch to its original name

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.9.0 May 17, 2024
@wazuhci wazuhci moved this from Pending review to In progress in Release 4.9.0 May 20, 2024
@Tostti Tostti linked a pull request May 20, 2024 that will close this issue
7 tasks
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.9.0 May 20, 2024
@wazuhci wazuhci moved this from Pending review to In review in Release 4.9.0 May 20, 2024
@wazuhci wazuhci moved this from In review to Done in Release 4.9.0 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants