Add commit SHA for all the repositories in packages name #389
Labels
level/task
Task issue
mvp
MVP
request/operational
Operational request
type/enhancement
New feature or request
Description
From Wazuh 5,
wazuh-dashboard
packages are composed by several components, thewazuh-dashboard
and the plugins. The source code of these components are stores in different Git repositories. We need to unambiguously identify awazuh-dashboard
package, which is not the case now as the package name only contains the commit SHA from thewazuh-dashboard
repo.To ensure that changes on any of the plugins effectively identifies a package, even if the commit in the wazuh-dashboard repository is the same, we will suffix the package after the combination of the commit SHA of the 4 repositories together (
wazuh-dashboard
,wazuh-dashboard-plugins
,wazuh-security-dashboards-plugin
andwazuh-dashboard-reporting
).Use case scenario (current)
State A
Inputs: deb, x64
wazuh-dashboard
wazuh-dashboard-plugins
wazuh-security-dashboards-plugin
wazuh-dashboards-reporting
Output:
wazuh-dashboard_5.0.0-1_amd64_0fe31a0.deb
State A+1
Inputs: deb, x64
wazuh-dashboard
wazuh-dashboard-plugins
wazuh-security-dashboards-plugin
wazuh-dashboards-reporting
Output:
wazuh-dashboard_5.0.0-1_amd64_0fe31a0.deb
Conclusions
Although the wazuh-dashboard-plugins repo has new code, the package is not built as there is a package in the S3 bucket suffixed with the same commit SHA.
Use case scenario (expected)
State A
Inputs: deb, x64
wazuh-dashboard
wazuh-dashboard-plugins
wazuh-security-dashboards-plugin
wazuh-dashboards-reporting
Output:
wazuh-dashboard_5.0.0-1_amd64_0fe31a0-4aa24f2-c243585-f09ab30.deb
State A+1
Inputs: deb, x64
wazuh-dashboard
wazuh-dashboard-plugins
wazuh-security-dashboards-plugin
wazuh-dashboards-reporting
Output:
wazuh-dashboard_5.0.0-1_amd64_0fe31a0-e67630d-c243585-f09ab30.deb
The text was updated successfully, but these errors were encountered: