You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some change recently caused the tests for ospect::os::fqdn to fail. GitHub Actions run for 34441db (run) succeeded but the following 1a39af0 (run) failed. The commit does not touch this function at all.
When testing locally the low-level function used to implement this (getaddrinfo), the same error happens:
#include<limits.h>#include<stdio.h>#include<unistd.h>#include<netdb.h>intmain(void)
{
interr;
longhost_name_max=sysconf(_SC_HOST_NAME_MAX);
charhostname[host_name_max+1];
err=gethostname(hostname, sizeof(hostname));
if (err!=0) {
fprintf(stderr, "failed to get hostname: %d", err);
return1;
}
printf("hostname: %s\n", hostname);
structaddrinfohints= {0};
hints.ai_family=PF_UNSPEC;
hints.ai_socktype=0;
hints.ai_protocol=0;
hints.ai_flags=AI_CANONNAME;
structaddrinfo*info;
err=getaddrinfo(hostname, NULL, &hints, &info);
if (err!=0) {
fprintf(stderr, "failed to get hostname information: %s\n", gai_strerror(err));
return1;
}
printf("fqdn: %s\n", info->ai_canonname);
freeaddrinfo(info);
return0;
}
When running this code, the call to getaddrinfo fails with EAI_NONAME ("nodename nor servname provided, or not known"). This indicates that we call this function incorrectly (either nodename or servname must be provided but we are clearly doing so).
The run for commit 34441db was on macOS 12.6.9 whereas the run for commit 1a39af0 was on macOS 12.7. There is a chance that some system-level change was introduced that broke us.
The text was updated successfully, but these errors were encountered:
Some change recently caused the tests for
ospect::os::fqdn
to fail. GitHub Actions run for 34441db (run) succeeded but the following 1a39af0 (run) failed. The commit does not touch this function at all.When testing locally the low-level function used to implement this (
getaddrinfo
), the same error happens:When running this code, the call to
getaddrinfo
fails withEAI_NONAME
("nodename nor servname provided, or not known"). This indicates that we call this function incorrectly (eithernodename
orservname
must be provided but we are clearly doing so).The run for commit 34441db was on macOS 12.6.9 whereas the run for commit 1a39af0 was on macOS 12.7. There is a chance that some system-level change was introduced that broke us.
The text was updated successfully, but these errors were encountered: