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

Fix server numeric version #30699

Merged
merged 17 commits into from
Nov 8, 2023
Merged

Fix server numeric version #30699

merged 17 commits into from
Nov 8, 2023

Conversation

GuyAfik
Copy link
Contributor

@GuyAfik GuyAfik commented Nov 6, 2023

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

Before reviewing please read issue's solution (in jira)

fixes: link to the issue

Builds

  1. build where ctf-01 pack is not installed in xsoar-6 at all, but is installed in xsoar-8

  2. build where checking pan-os, qradar and ctf-01 packs showing that ctf-01 pack is installed only in xsoar-ng, while pan-os and qradar are installed in both xsoar-6 and xsoar-ng

the log

Found pack 'ctf01' with min version 8.2.0 that is higher than server version <6.x.x>

can be found in xsoar-6 jobs which means that it won't be installed over these servers

Description

  1. Fixes an issue where the collect tests does not take into consideration serverMinVersion from packmetadata.json, so for example if serverMinVersion in packmetadata is "8.2.0", it would still try to install the pack on XSOAR-6 master.
  2. Updated the implementation of the get_server_numeric_version to use the api to retrieve the correct server version.

Must have

  • Tests
  • Documentation

Copy link
Contributor

@yucohen yucohen left a comment

Choose a reason for hiding this comment

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

Nice!

@GuyAfik GuyAfik merged commit 79bfa7c into master Nov 8, 2023
17 checks passed
@GuyAfik GuyAfik deleted the fix_server_numeric_version branch November 8, 2023 15:20
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
* add default

* fix collect tests not find serverMinVersion in metadata

* change logic of get_server_numeric_version to use api

* pre-commit

* ut

* uts and test fix works

* pre-commit

* fix validate premium packs

* fix uts

* test also pan-os and qradar

* remove tested packs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants