diff mbox series

bitbake-server/worker: Hide os.fork() deprecation warning

Message ID 20250311104928.2980203-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit c636bd629896f56e5f3d4030da3d1f130590afc6
Headers show
Series bitbake-server/worker: Hide os.fork() deprecation warning | expand

Commit Message

Richard Purdie March 11, 2025, 10:49 a.m. UTC
We're fairly careful in bitbake about how we handle fork() calls and believe our code
to be safe. The upstream deprecation warning is problematic as it can appear in log
output as a WARNING, breaking tests. It also tends to alarm users.

Hide the warning for now to avoids the test failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 bin/bitbake-server | 1 +
 bin/bitbake-worker | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/bin/bitbake-server b/bin/bitbake-server
index e367ec2c12..a559109e3f 100755
--- a/bin/bitbake-server
+++ b/bin/bitbake-server
@@ -9,6 +9,7 @@  import os
 import sys
 import warnings
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 import logging
 sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib'))
 
diff --git a/bin/bitbake-worker b/bin/bitbake-worker
index 88217182fb..35fa1ab62b 100755
--- a/bin/bitbake-worker
+++ b/bin/bitbake-worker
@@ -9,6 +9,7 @@  import os
 import sys
 import warnings
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib'))
 from bb import fetch2
 import logging