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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update pySigma to v0.11.3 #127

Merged
merged 9 commits into from
Feb 8, 2024
Merged

chore: Update pySigma to v0.11.3 #127

merged 9 commits into from
Feb 8, 2024

Conversation

kelnage
Copy link
Collaborator

@kelnage kelnage commented Feb 7, 2024

This PR updates pySigma-backend-loki to use the latest (v.0.11.3) version of pySigma. Unfortunately we have a slight chicken-and-egg issue here, in that it's failing the CI because of the integration check (I need to update pySigma-plugin-directory to reflect the new version - which is true - once we actually do our release) - but that is causing all our tests to fail and thus preventing the PR from being merged 馃う

Hence I have removed the integration test from the main test workflow and created a new integration workflow for testing this instead. That workflow is configured as a soft-fail that doesn't prevent PRs, but does encourage us to check it (especially prior to a release). I decided to test the integration workflow on all the supported versions of Python - but arguably that shouldn't be necessary (I think) - testing it on just the latest version we support might be more than acceptable?

I also removed our dependency on the sysmon pipeline as this was preventing me from updating to pySigma v.0.11.3 (the pipeline still only support v0.10) and was only being used in our prior testing scripts.

Fixes #126.

Only includes for the tests/sigma_backend_tester.py which is no longer
our preferred method of testing the backend.
apply can be applied to either SigmaRule or SigmaCorrelationRule
Trying to prevent chicken and egg arguments.
@kelnage kelnage requested a review from a team as a code owner February 7, 2024 17:50
@kelnage kelnage linked an issue Feb 7, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Feb 7, 2024

Pull Request Test Coverage Report for Build 7829167770

  • 0 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 99.151%

Totals Coverage Status
Change from base Build 7396880007: 0.002%
Covered Lines: 467
Relevant Lines: 471

馃挍 - Coveralls

Copy link
Member

@mostafa mostafa left a comment

Choose a reason for hiding this comment

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

LGTM! Just a comment.

(also, good job on separating the integration test, makes it more manageable.)

sigma/pipelines/loki/loki.py Show resolved Hide resolved
The integration test results should not be impacted by the versions of
ubuntu, python or poetry used, so we can use the latest for each.
Copy link
Member

@mostafa mostafa left a comment

Choose a reason for hiding this comment

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

Thanks! 馃憦

@kelnage kelnage merged commit 33a5357 into main Feb 8, 2024
11 of 13 checks passed
@kelnage kelnage deleted the update-pySigma-0.11.3 branch February 8, 2024 12:00
@kelnage kelnage restored the update-pySigma-0.11.3 branch February 16, 2024 15:53
@kelnage kelnage deleted the update-pySigma-0.11.3 branch February 16, 2024 15:54
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.

Update to latest version of pySigma v0.11
3 participants