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

Exploratory if the symbols are generated correctly for all project components. #21735

Closed
4 tasks done
Tracked by #9913
Dwordcito opened this issue Feb 5, 2024 · 6 comments
Closed
4 tasks done
Tracked by #9913
Assignees
Labels
level/subtask type/enhancement New feature or request

Comments

@Dwordcito
Copy link
Member

Dwordcito commented Feb 5, 2024

Description

This issue aims to make a exploratory session of current #9913 stage 1 development.

Verifications should be performed on the following issues to check if debug symbols are successfully being generated and created in the right places.

These verifications must be performed by a different collaborator than the originally assigned to the issue, and a full detail of procedures, logs and results must be provided.
Evidence of success must be provided as well.

DoD

  • Every package generation process runs succesfully
  • A binary with debug symbols is generated at compile stag3e
  • Binaries and debug symbols are separated at the package generation stage
@tdrauncieal
Copy link
Contributor

I take the issue on Windows #21733

@aritosteles
Copy link
Contributor

I'll take DEB issue.

@tdrauncieal
Copy link
Contributor

@aritosteles
Copy link
Contributor

aritosteles commented Apr 15, 2024

LGTM!!

Evidence for #21731(Macos)
image

@Leoquicenoz
Copy link
Contributor

LGTM!!

Evidence for #21732 (deb)

Finished running lintian.

WARNING generated by debuild:
Making debian/rules executable!

+ get_checksum 4.9.0 540dc54 no
+ wazuh_version=4.9.0
+ short_commit_hash=540dc54
+ base_name=wazuh-manager_4.9.0-0
+ symbols_base_name=wazuh-manager-dbg_4.9.0-0
+ [[ amd64 == \p\p\c\6\4\l\e ]]
+ deb_file=wazuh-manager_4.9.0-0_amd64.deb
+ symbols_deb_file=wazuh-manager-dbg_4.9.0-0_amd64.deb
+ [[ no == \n\o ]]
++ sed 's/\.deb/_540dc54&/'
+ deb_file=wazuh-manager_4.9.0-0_amd64_540dc54.deb
++ sed 's/\.deb/_540dc54&/'
+ symbols_deb_file=wazuh-manager-dbg_4.9.0-0_amd64_540dc54.deb
+ pkg_path=/build_wazuh/manager
+ [[ no == \y\e\s ]]
+ find /build_wazuh/manager -type f -name 'wazuh-manager*deb' -exec mv '{}' /var/local/wazuh/ ';'
++ ls -Art /home/leo/Desktop/debug_symbols/deb/wazuh/packages/output/
++ tail -n 1
+ echo 'Package wazuh-manager-dbg_4.9.0-0_amd64.deb added to /home/leo/Desktop/debug_symbols/deb/wazuh/packages/output/.'
Package wazuh-manager-dbg_4.9.0-0_amd64.deb added to /home/leo/Desktop/debug_symbols/deb/wazuh/packages/output/.
+ return 0
+ return 0
+ clean 0
+ exit_code=0
+ find /home/leo/Desktop/debug_symbols/deb/wazuh/packages/debs/amd64/manager '(' -name '*.sh' -o -name '*.tar.gz' -o -name 'wazuh-*' ')' '!' -name docker_builder.sh -exec rm -rf '{}' +
+ exit 0


ls output/
wazuh-manager_4.9.0-0_amd64.deb  wazuh-manager-dbg_4.9.0-0_amd64.deb

@tdrauncieal
Copy link
Contributor

tdrauncieal commented Apr 15, 2024

wazuh rpm server generation evidence

$ ./generate_package.sh -t manager --system rpm
.
.
.
Provides: wazuh-manager = 4.9.0-0 wazuh-manager(x86-64) = 4.9.0-0
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh /usr/sbin/groupadd /usr/sbin/useradd
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh /usr/sbin/groupdel /usr/sbin/userdel
Requires(posttrans): /bin/sh
Conflicts: ossec-hids ossec-hids-agent wazuh-agent wazuh-local
Obsoletes: wazuh-api < 4.0.0
Processing files: wazuh-manager-debuginfo-4.9.0-0.x86_64
Provides: wazuh-manager-debuginfo = 4.9.0-0 wazuh-manager-debuginfo(x86-64) = 4.9.0-0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/local/lib/rpm/check-files /build_wazuh/rpmbuild/BUILDROOT/wazuh-manager-4.9.0-0.x86_64
Wrote: /build_wazuh/rpmbuild/SRPMS/wazuh-manager-4.9.0-0.src.rpm
Wrote: /build_wazuh/rpmbuild/RPMS/wazuh-manager-debuginfo_4.9.0-0_x86_64_30b258c.rpm
Wrote: /build_wazuh/rpmbuild/RPMS/wazuh-manager_4.9.0-0_x86_64_30b258c.rpm
Executing(%clean): /bin/sh -e /usr/local/var/tmp/rpm-tmp.SM4SmV
+ umask 022
+ cd /build_wazuh/rpmbuild/BUILD
+ cd wazuh-manager-4.9.0
+ rm -fr /build_wazuh/rpmbuild/BUILDROOT/wazuh-manager-4.9.0-0.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0
+ return 0
+ get_checksum 4.9.0 30b258c no
+ src=no
+ [[ no == \y\e\s ]]
+ [[ no == \y\e\s ]]
+ mv /build_wazuh/rpmbuild/RPMS/wazuh-manager-debuginfo_4.9.0-0_x86_64_30b258c.rpm /build_wazuh/rpmbuild/RPMS/wazuh-manager_4.9.0-0_x86_64_30b258c.rpm /var/local/wazuh
Package wazuh-manager_4.9.0-0_x86_64_30b258c.rpm added to /workspace/wazuh/packages/output/.

$ ll output/
total 317072
-rw-r--r-- 1 root root 291204772 abr 15 12:11 wazuh-manager_4.9.0-0_x86_64_30b258c.rpm
-rw-r--r-- 1 root root  33471700 abr 15 12:07 wazuh-manager-debuginfo_4.9.0-0_x86_64_30b258c.rpm

wazuh rpm agent generation evidence

$ ./generate_package.sh -t agent --system rpm
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  32.77kB
Step 1/23 : FROM centos:6
6: Pulling from library/centos
ff50d722b382: Pull complete 
Digest: sha256:a93df2e96e07f56ea48f215425c6f1673ab922927894595bb5c0ee4c5a955133
Status: Downloaded newer image for centos:6
 ---> 5bf9684f4720
Step 2/23 : RUN rm /etc/yum.repos.d/* && echo "exactarch=1" >> /etc/yum.conf
 ---> Running in de771b6efe7c
.
.
.
Provides: wazuh-agent-debuginfo = 4.9.0-0 wazuh-agent-debuginfo(x86-64) = 4.9.0-0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/local/lib/rpm/check-files /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.9.0-0.x86_64
Wrote: /build_wazuh/rpmbuild/SRPMS/wazuh-agent-4.9.0-0.src.rpm
Wrote: /build_wazuh/rpmbuild/RPMS/wazuh-agent_4.9.0-0_x86_64_30b258c.rpm
Wrote: /build_wazuh/rpmbuild/RPMS/wazuh-agent-debuginfo_4.9.0-0_x86_64_30b258c.rpm
Executing(%clean): /bin/sh -e /usr/local/var/tmp/rpm-tmp.22ZMpk
+ umask 022
+ cd /build_wazuh/rpmbuild/BUILD
+ cd wazuh-agent-4.9.0
+ rm -fr /build_wazuh/rpmbuild/BUILDROOT/wazuh-agent-4.9.0-0.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0
+ return 0
+ get_checksum 4.9.0 30b258c no
+ src=no
+ [[ no == \y\e\s ]]
+ [[ no == \y\e\s ]]
+ mv /build_wazuh/rpmbuild/RPMS/wazuh-agent-debuginfo_4.9.0-0_x86_64_30b258c.rpm /build_wazuh/rpmbuild/RPMS/wazuh-agent_4.9.0-0_x86_64_30b258c.rpm /var/local/wazuh
Package wazuh-agent-debuginfo_4.9.0-0_x86_64_30b258c.rpm added to /workspace/wazuh/packages/output/.

$ ll output/
total 25428
-rw-r--r-- 1 root root 10918927 abr 15 12:54 wazuh-agent_4.9.0-0_x86_64_30b258c.rpm
-rw-r--r-- 1 root root 15115670 abr 15 12:54 wazuh-agent-debuginfo_4.9.0-0_x86_64_30b258c.rpm

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/subtask type/enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

6 participants