Skip to content

RFC: some issues with go?

Jan Vermaete openembedded-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1netdata: enable Go-based pluginsmeta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb+15 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] RFC: some issues with go?

Could someone review this patch that enables the Go-based plugins of Netdata?

I tested it in QEMU with the Go example package enable locally.

I have this error when building the image (with Kas)
----------------------------------------------------

NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 5371 tasks of which 5341 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
Exception ignored in: <function SetupHome.__del__ at 0x7fe2f82682c0>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/kas/libcmds.py", line 166, in __del__
shutil.rmtree(self.tmpdirname)
File "/usr/lib/python3.11/shutil.py", line 732, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.11/shutil.py", line 660, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.11/shutil.py", line 660, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.11/shutil.py", line 660, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
[Previous line repeated 2 more times]
File "/usr/lib/python3.11/shutil.py", line 683, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.11/shutil.py", line 681, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'rounder_example_test.go'

Workaround for network access
-----------------------------

I there a way to avoid the 'do_compile[network] = "1"'. It seems to be needed to fetch the Go packages specified in the go.mod file.

INSAGE_SKIP
-----------

How to avoid the QA error/warning already-stripped?

ERROR: netdata-1.47.1-r0 do_package: QA Issue: File '/usr/libexec/netdata/plugins.d/go.d.plugin' from netdata was already stripped, this will prevent future debugging! [already-stripped]
ERROR: netdata-1.47.1-r0 do_package: Fatal QA errors were found, failing task.

Jan Vermaete (1):
netdata: enable Go-based plugins

 .../recipes-webadmin/netdata/netdata_1.47.1.bb  | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2