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

Review the action of building packages arm #439

Merged
merged 14 commits into from
Dec 16, 2024

Conversation

guidomodarelli
Copy link

Description

The process of building ARM packages is encountering issues. The following problems need to be addressed:

Expected artifact name wazuh-dashboard

4.10.2: https://github.com/wazuh/wazuh-dashboard/blob/4.10.2/.github/workflows/build_wazuh_dashboard_with_plugins.yml#L119

Fix master: https://github.com/wazuh/wazuh-dashboard/blob/master/.github/workflows/build_wazuh_dashboard_with_plugins.yml#L160

image

Error in the final package name

Look for an AMD instead of an ARM
image
https://github.com/wazuh/wazuh-dashboard/actions/runs/12203631148/job/34047930965

Look for an x86_64 instead of aarch64
image
https://github.com/wazuh/wazuh-dashboard/actions/runs/12203988641/job/34049019439

Issues Resolved

Closes #438

Changelog

  • skip

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@guidomodarelli guidomodarelli self-assigned this Dec 9, 2024
@guidomodarelli guidomodarelli linked an issue Dec 9, 2024 that may be closed by this pull request
@guidomodarelli
Copy link
Author

guidomodarelli commented Dec 11, 2024

Legend:
⚫ 🠆 The test hasn't started yet.
🟢 🠆 All checks passed.
🟡 🠆 There is at least one expected fail or skipped test and no failures.
🔴 🠆 There is at least one failed check.
⚪ 🠆 Doesn't apply.
🔧 🠆 Request changes.

Build deb wazuh-dashboard on amd64 🟢

root@ubuntu20:/vagrant# systemctl status wazuh-indexer
● wazuh-indexer.service - wazuh-indexer
     Loaded: loaded (/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-12-11 20:46:20 UTC; 1min 53s ago
       Docs: https://documentation.wazuh.com
   Main PID: 13740 (java)
      Tasks: 59 (limit: 4594)
     Memory: 1.3G
     CGroup: /system.slice/wazuh-indexer.service
             └─13740 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cac>

Dec 11 20:46:04 ubuntu20 systemd-entrypoint[13740]: WARNING: System::setSecurityManager has been called>
Dec 11 20:46:04 ubuntu20 systemd-entrypoint[13740]: WARNING: Please consider reporting this to the main>
Dec 11 20:46:04 ubuntu20 systemd-entrypoint[13740]: WARNING: System::setSecurityManager will be removed>
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: Dec 11, 2024 8:46:05 PM sun.util.locale.provider.Lo>
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: WARNING: COMPAT locale provider will be removed in >
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: WARNING: A terminally deprecated method in java.lan>
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: WARNING: System::setSecurityManager has been called>
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: WARNING: Please consider reporting this to the main>
Dec 11 20:46:05 ubuntu20 systemd-entrypoint[13740]: WARNING: System::setSecurityManager will be removed>
Dec 11 20:46:20 ubuntu20 systemd[1]: Started wazuh-indexer.
root@ubuntu20:/vagrant# systemctl status wazuh-dashboard
● wazuh-dashboard.service - wazuh-dashboard
     Loaded: loaded (/etc/systemd/system/wazuh-dashboard.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-12-11 20:47:30 UTC; 48s ago
   Main PID: 14256 (node)
      Tasks: 11 (limit: 4594)
     Memory: 183.2M
     CGroup: /system.slice/wazuh-dashboard.service
             └─14256 /usr/share/wazuh-dashboard/node/bin/node /usr/share/wazuh-dashboard/src/cli/dist

Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:38 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:38Z>
Dec 11 20:47:39 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:39Z>
Dec 11 20:47:39 ubuntu20 opensearch-dashboards[14256]: {"type":"log","@timestamp":"2024-12-11T20:47:39Z>

image
image

Build rpm wazuh-dashboard on x86_64 🟢

[vagrant@vbox ~]$ systemctl status wazuh-indexer
● wazuh-indexer.service - wazuh-indexer
   Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2024-12-12 12:46:28 UTC; 10min ago
     Docs: https://documentation.wazuh.com
 Main PID: 3419 (java)
    Tasks: 68 (limit: 24920)
   Memory: 1.4G
   CGroup: /system.slice/wazuh-indexer.service
           └─3419 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.a>
[vagrant@vbox ~]$ systemctl status wazuh-dashboard
● wazuh-dashboard.service - wazuh-dashboard
   Loaded: loaded (/etc/systemd/system/wazuh-dashboard.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2024-12-12 12:49:47 UTC; 7min ago
 Main PID: 3809 (node)
    Tasks: 11 (limit: 24920)
   Memory: 221.9M
   CGroup: /system.slice/wazuh-dashboard.service
           └─3809 /usr/share/wazuh-dashboard/node/bin/node /usr/share/wazuh-dashboard/src/cli/dist
[vagrant@vbox ~]$ 

image

[vagrant@vbox ~]$ hostnamectl 
   Static hostname: localhost.localdomain
Transient hostname: vbox
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 79950293caa84a4a8909e0424488e6c8
           Boot ID: d92a9cad327348fc89c91af8a3e5aa8e
    Virtualization: oracle
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-348.7.1.el8_5.x86_64
      Architecture: x86-64

@yenienserrano
Copy link
Member

Ubuntu arm64 🟢

image image image

…s, improving build traceability and retention management"

This reverts commit dbcc902.
…he build workflow for Wazuh Dashboard with plugins"

This reverts commit 9b0ca41.
Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aarch

image image

Copy link
Member

@Tostti Tostti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tostti Tostti merged commit 26f7f66 into 4.10.2 Dec 16, 2024
69 checks passed
@Tostti Tostti deleted the bug/438-review-the-action-of-building-packages-arm branch December 16, 2024 12:46
Tostti added a commit that referenced this pull request Dec 16, 2024
Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]>
Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review the action of building packages arm
3 participants