8000 Ubuntu 24.04 packages · Issue #2571 · certtools/intelmq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ubuntu 24.04 packages #2571

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

Closed
sebix opened this issue Feb 27, 2025 · 5 comments
Closed

Ubuntu 24.04 packages #2571

sebix opened this issue Feb 27, 2025 · 5 comments
Assignees

Comments

@sebix
Copy link
Member
sebix commented Feb 27, 2025

No description provided.

@sebix sebix added this to the 3.3.2 Bugfix release milestone Feb 27, 2025
@sebix sebix self-assigned this Feb 27, 2025
@sebix
Copy link
Member Author
sebix commented Feb 27, 2025

test failures:

[   59s] ======================================================================
[   59s] FAIL: test_event (intelmq.tests.bots.parsers.misp.test_parser.TestMISPParserBot.test_event)
[   59s] Test if correct Event has been produced.
[   59s] ----------------------------------------------------------------------
[   59s] Traceback (most recent call last):
[   59s]   File "/usr/src/packages/BUILD/intelmq/tests/bots/parsers/misp/test_parser.py", line 59, in test_event
[   59s]     self.run_bot()
[   59s]   File "/usr/src/packages/BUILD/intelmq/lib/test.py", line 392, in run_bot
[   59s]     self.assertLessEqual(len(re.findall(' - WARNING - ', self.loglines_buffer)), allowed_warning_count)
[   59s] AssertionError: 1 not less than or equal to 0
[   59s] 
[   59s] ======================================================================
[   59s] FAIL: test_phishing (intelmq.tests.bots.parsers.cleanmx.test_parser.TestCleanMXParserBot.test_phishing)
[   59s] ----------------------------------------------------------------------
[   59s] Traceback (most recent call last):
[   59s]   File "/usr/src/packages/BUILD/intelmq/tests/bots/parsers/cleanmx/test_parser.py", line 175, in test_phishing
[   59s]     self.run_bot()
[   59s]   File "/usr/src/packages/BUILD/intelmq/lib/test.py", line 392, in run_bot
[   59s]     self.assertLessEqual(len(re.findall(' - WARNING - ', self.loglines_buffer)), allowed_warning_count)
[   59s] AssertionError: 1 not less than or equal to 0
[   59s] 
[   59s] ----------------------------------------------------------------------

@kamil-certat
Copy link
Contributor
kamil-certat commented Mar 3, 2025

What would you say about extending the assertion to print the matching log lines? Those assertions are currently a little irritating to debug, I'd suggest something like:

self.assertLessEqual(len(re.findall(' - WARNING - ', self.loglines_buffer)), allowed_warning_count, "\n".join(re.findall(' - WARNING - [^\n]*', self.loglines_buffer)))

We should then be able to quickly get the information, what is wrong. The same would be good for other log assertions.

@sebix
Copy link
Member Author
sebix commented Mar 3, 2025

Yeah, sure

@sebix
Copy link
Member Author
sebix commented Mar 4, 2025

In both cases, the warning is about datetime.datetime.fromtimestamp:

DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version.
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).

sebix added a commit to sebix/intelmq that referenced this issue Mar 4, 2025
in intelmq.bots.parsers.misp.parser and intelmq.bots.parsers.cleanmx.parser Replace the deprecated datetime function `utcfromtimestamp` for Ubuntu 24.04 compatibility with fromtimestamp(..., UTC)

fixes certtools#2576
related to certtools#2571
sebix added a commit to sebix/intelmq that referenced this issue Mar 4, 2025
in intelmq.bots.parsers.misp.parser and intelmq.bots.parsers.cleanmx.parser Replace the deprecated datetime function `utcfromtimestamp` for Ubuntu 24.04 compatibility with fromtimestamp(..., UTC)

fixes certtools#2576
related to certtools#2571
sebix added a commit to sebix/intelmq that referenced this issue Mar 4, 2025
in intelmq.bots.parsers.misp.parser and intelmq.bots.parsers.cleanmx.parser Replace the deprecated datetime function `utcfromtimestamp` for Ubuntu 24.04 compatibility with fromtimestamp(..., UTC)

fixes certtools#2576
related to certtools#2571
@sebix
Copy link
Member Author
sebix commented Mar 5, 2025

With #2577 the intelmq packages are now building for Ubuntu 24.04.

The packages for mailgen are also failing, that's tracked at Intevation/intelmq-mailgen#47

@sebix sebix closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0