Recently, the e2e tests across all dApps have been consistently failing. The failure happens where Cypress appears to use IPv6, causing the tests to fail in the CI setup. The underlying infrastructure of GitHub Actions may have different network configurations across different runs. Sometimes, the environment might resolve localhost to 127.0.0.1 (IPv4), while other times it might resolve to ::1 (IPv6), leading to inconsistencies in the connection check.
The solution implemented in this PR sets the environment variable NODE_OPTIONS=--dns-result-order=ipv4first to prioritize IPv4 DNS resolution.
Recently, the e2e tests across all dApps have been consistently failing. The failure happens where Cypress appears to use IPv6, causing the tests to fail in the CI setup. The underlying infrastructure of GitHub Actions may have different network configurations across different runs. Sometimes, the environment might resolve
localhost
to127.0.0.1 (IPv4)
, while other times it might resolve to::1 (IPv6)
, leading to inconsistencies in the connection check.The solution implemented in this PR sets the environment variable
NODE_OPTIONS=--dns-result-order=ipv4first
to prioritize IPv4 DNS resolution.