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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent: add support to FQDN in ManagerHost #340

Merged
merged 7 commits into from
Jun 9, 2023
Merged

agent: add support to FQDN in ManagerHost #340

merged 7 commits into from
Jun 9, 2023

Conversation

dougsland
Copy link
Contributor

GitHub-Issue: #276

dougsland added 2 commits June 6, 2023 14:34
GitHub-Issue: #276

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
As an effort to move the network bits to the same place.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Copy link
Member

@engelmi engelmi left a comment

Choose a reason for hiding this comment

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

Looks great! I only have a few nit-picky comments.

And thanks for adding unit tests! Having one test file for one function under test seems better than one test file containing multiple (as it is currently - we'll have to refactor that).

src/libhirte/test/common/network/get_address_test.c Outdated Show resolved Hide resolved
src/libhirte/common/network.c Outdated Show resolved Hide resolved
src/libhirte/common/network.c Outdated Show resolved Hide resolved
dougsland added 3 commits June 7, 2023 08:31
More modules are using bool_to_str, adding to a module.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
convert the code to use typesafe_inet_ntop function.
Also created typesafe_inet_ntop6 regarding IPv6.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
make sure we have network bits in related source/tests.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
@dougsland
Copy link
Contributor Author

dougsland commented Jun 8, 2023

@engelmi ouch not sure how to access the logs from GitHub actions:

>>> MALLOC_PERTURB_=199 valgrind --leak-check=full --error-exitcode=1 --track-origins=yes /__w/hirte/hirte/builddir/src/libhirte/test/common/network/get_address_test

Maybe setup a valgrind env here?

[root@node1 hirte]# meson test -C builddir
ninja: Entering directory `/root/hirte/builddir'
ninja: no work to do.
1/8 cfg_test                    OK              0.03s
2/8 list_test                   OK              0.03s
3/8 parse-util_test             OK              0.03s
4/8 string-util_test            OK              0.03s
5/8 isIPv4Addr_test             OK              0.02s
6/8 isIPv6Addr_test             OK              0.02s
7/8 assemble_tcp_address        OK              0.01s
8/8 get_address_test            OK              0.02s

Ok:                 8
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /root/hirte/builddir/meson-logs/testlog.txt

@mwperina
Copy link
Member

mwperina commented Jun 8, 2023

@engelmi ouch not sure how to access the logs from GitHub actions:

Maybe #346 will help here

@pypingou
Copy link
Member

pypingou commented Jun 8, 2023

Could you rebase to see if the new CI config helps?

@dougsland
Copy link
Contributor Author

@engelmi ouch not sure how to access the logs from GitHub actions:

Maybe #346 will help here

cool, let me try.

@dougsland
Copy link
Contributor Author

do we have tools commands like /retest? @pypingou @mwperina

/retest

It was missing a _cleanup_free_ macro, good catch valgrind!

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
@dougsland
Copy link
Contributor Author

@mwperina @engelmi @rhatdan @pypingou (and others) ready for review and fly.

@engelmi
Copy link
Member

engelmi commented Jun 9, 2023

do we have tools commands like /retest? @pypingou @mwperina

/retest

No, at least there is no bot configured that would pick up those commands. We are using "plain" github actions. So if a step fails, its best to click on "Details" - on the following page you can trigger a re-run manually, look at the CI logs and download artifacts (like the unit test logs).

Copy link
Member

@engelmi engelmi left a comment

Choose a reason for hiding this comment

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

LGTM

@engelmi engelmi merged commit 1a23528 into eclipse-bluechi:main Jun 9, 2023
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.

4 participants