Skip to content

Commit 806d81e

Browse files
authored
Merge pull request #2602 from sebix/fix-workflows
Fix workflows: AMQP test skip, Update Ubuntu runner
2 parents ec37d0c + eef02e7 commit 806d81e

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
codespell:
2020
name: Find and notify about common misspellings
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-latest
2222
# This should not fail the whole workflow run
2323
continue-on-error: true
2424

.github/workflows/debian-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-latest
2020
env:
2121
# Fixes https://github.com/actions/virtual-environments/issues/3080
2222
STORAGE_OPTS: overlay.mount_program=/usr/bin/fuse-overlayfs

.github/workflows/regexploit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ on:
1919
jobs:
2020
regexploit:
2121
name: Find regular expressions which are vulnerable to ReDoS
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2323
# This should not fail the whole workflow run
2424
continue-on-error: true
2525

2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@v3
2929
- name: Install regexploit
30-
run: pip install regexploit
30+
#run: pip install regexploit
31+
# See https://github.com/doyensec/regexploit/pull/16
32+
run: pip install git+https://github.com/sebix/regexploit.git@unsupported-ops-yaml
3133
- name: Run regexploit
3234
run: /home/runner/work/intelmq/intelmq/.github/workflows/scripts/regexploit.sh

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Please refer to the [NEWS](NEWS.md) for a list of changes which have an affect o
3737
- Replace `/opt/intelmq` example paths in bots with variable `VAR_STATE_PATH` for correct paths in LSB-path setups like with packages (PR#2587 by Sebastian Wagner).
3838

3939
### Tests
40+
- `intelmq.tests.lib.test_pipeline.TestAmqp.test_acknowledge`: Skip on all Python versions when running on CI (PR#2602 by Sebastian Wagner).
41+
- `.github/workflows/codespell.yml`, `debian-package.yml`, `regexploit.yml`: Upgrade to `ubuntu-latest` runners (PR#2602 by Sebastian Wagner).
4042

4143
### Tools
4244

intelmq/tests/bots/collectors/http/test_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_gzip(self, mocker):
107107
output['feed.url'] = 'http://localhost/foobar.gz'
108108
del output['extra.file_name']
109109
self.assertMessageEqual(0, output)
110-
self.assertLogMatches('Report downloaded \(29B\).', 'INFO')
110+
self.assertLogMatches(r'Report downloaded \(29B\).', 'INFO')
111111

112112
def test_zip_auto(self, mocker):
113113
"""

intelmq/tests/bots/collectors/mail/test_collector_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ def test_fetch(self, mocker):
5656
with mock.patch('imbox.Imbox', new=MockedTxtImbox):
5757
self.run_bot()
5858
self.assertMessageEqual(0, REPORT_FOOBARTXT)
59-
self.assertLogMatches('Report downloaded \(9B\).', 'INFO')
59+
self.assertLogMatches(r'Report downloaded \(9B\).', 'INFO')

intelmq/tests/lib/test_pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ def test_reject(self):
266266
self.pipe.reject_message()
267267
self.assertEqual(SAMPLES['normal'][1], self.pipe.receive())
268268

269-
@unittest.skipIf(os.getenv('CI') == 'true' and sys.version_info[:2] in ((3, 8), (3, 11), (3, 12)),
270-
'Fails on CI with Python 3.8 and 3.11')
269+
@unittest.skipIf(os.getenv('CI') == 'true', 'Fails on CI')
271270
def test_acknowledge(self):
272271
self.pipe.send(SAMPLES['normal'][0])
273272
self.pipe.receive()

0 commit comments

Comments
 (0)