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

[CI] Mac incremental has failing tests on all branches #5327

Open
jmarrec opened this issue Dec 19, 2024 · 5 comments · May be fixed by #5341
Open

[CI] Mac incremental has failing tests on all branches #5327

jmarrec opened this issue Dec 19, 2024 · 5 comments · May be fixed by #5341

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented Dec 19, 2024

Issue overview

The following tests FAILED:

538 - GeometryFixture.FloorplanJS (SEGFAULT)

664 - BCLFixture.RemoteBCL_BCLSearchResult (Failed)

1561 - ModelFixture.FloorplanJSForwardTranslator (Failed)

1562 - ModelFixture.FloorplanJSForwardTranslator_Merging (SEGFAULT)

2636 - ModelFixture.ThreeJSReverseTranslator_FloorplanJS (SEGFAULT)

2637 - ModelFixture.ThreeJSReverseTranslator_FloorplanJS_SurfaceMatch (SEGFAULT)

2650 - ModelFixture.ThreeJSReverseTranslator_FloorplanJS_Site_ClimateZones_4166 (SEGFAULT)

Current Behavior

https://ci.openstudio.net/blue/organizations/jenkins/openstudio-incremental-osx/detail/PR-5321/2/pipeline

Expected Behavior

CI should be all green or it's pointless

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): mac
  • Version of OpenStudio (if using an intermediate build, include SHA): develop, 10eb60d
@jmarrec jmarrec changed the title Mac CI has failing tests on all branches [CI] Mac incremental has failing tests on all branches Dec 19, 2024
@wenyikuang
Copy link
Collaborator

The following tests did not run:
	2464 - ModelFixture.Issue_1322 (Disabled)
	2465 - ModelFixture.Issue_1683 (Disabled)
	2466 - ModelFixture.ShatteredModel_Existing_3424 (Disabled)
	3282 - EnergyPlusFixture.ReverseTranslator_RunPeriodControlSpecialDays (Disabled)
	3290 - EnergyPlusFixture.ForwardTranslator_ScheduleFixedInterval_TwoPoint (Disabled)
	3293 - EnergyPlusFixture.ForwardTranslator_ScheduleVariableInterval_Hourly_Shifted (Disabled)
	3295 - EnergyPlusFixture.ForwardTranslator_ScheduleVariableInterval_500_Shifted (Disabled)
	3296 - EnergyPlusFixture.ForwardTranslator_ScheduleVariableInterval_DaysTimeSeries (Disabled)
	3328 - EnergyPlusFixture.ReverseTranslator_SizingSystem (Disabled)
	3547 - ISOModelFixture.ForwardTranslator (Disabled)

The following tests FAILED:
	171 - SqlFileFixture.AnnualTotalCosts (Failed)
	472 - GeometryFixture.Plane_RayIntersection (Failed)
	3548 - ISOModelFixture.SimModel (Failed)
Errors while running CTest

Ran on my local arm mac's result, I think I need update/clean up the environment in mac, let me do it.

@wenyikuang
Copy link
Collaborator

I think there is some dependencies issue in the conan center about the zlib or something, maybe the default package is arm version now.

Since I cannot successfully build the OpenStudio after I wipe out the conan cache and install the dependencies from conan center.

@wenyikuang
Copy link
Collaborator

When I try to build the depencies from

conan install . \
    --build=* \
    -s arch=x86_64 \
    -s os=Macos \
    -s compiler=apple-clang \
    -s compiler.version=14 \
    -s compiler.libcxx=libc++ \
    -c tools.cmake.cmaketoolchain:generator=Ninja \
    --output-folder=../OS-build-release-v2

It will raise this issue.

libgettext/0.22: Waiting 5 seconds to retry...
libgettext/0.22: Downloading 26.1MB gettext-0.22.tar.gz
libgettext/0.22: WARN: network: Download failed, check server, possibly try again
("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))
libgettext/0.22: Waiting 5 seconds to retry...
libgettext/0.22: Downloading 26.1MB gettext-0.22.tar.gz
ERROR: libgettext/0.22: Error in source() method, line 91
	get(self, **self.conan_data["sources"][self.version], strip_root=True)
	ConanConnectionError: Download failed, check server, possibly try again
("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))

@wenyikuang
Copy link
Collaborator

Well, I tried build it in a clean mac from aws and works well.

@wenyikuang wenyikuang linked a pull request Jan 8, 2025 that will close this issue
19 tasks
@wenyikuang
Copy link
Collaborator

BCLFixture.RemoteBCL_BCLSearchResult

When I try to build the depencies from

conan install . \
    --build=* \
    -s arch=x86_64 \
    -s os=Macos \
    -s compiler=apple-clang \
    -s compiler.version=14 \
    -s compiler.libcxx=libc++ \
    -c tools.cmake.cmaketoolchain:generator=Ninja \
    --output-folder=../OS-build-release-v2

It will raise this issue.

libgettext/0.22: Waiting 5 seconds to retry...
libgettext/0.22: Downloading 26.1MB gettext-0.22.tar.gz
libgettext/0.22: WARN: network: Download failed, check server, possibly try again
("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))
libgettext/0.22: Waiting 5 seconds to retry...
libgettext/0.22: Downloading 26.1MB gettext-0.22.tar.gz
ERROR: libgettext/0.22: Error in source() method, line 91
	get(self, **self.conan_data["sources"][self.version], strip_root=True)
	ConanConnectionError: Download failed, check server, possibly try again
("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))

This is another issue, remedied by the script:

https://gist.github.com/wenyikuang/18239d61a00c179ec5b176bcc28ad23f

Basically the network is buggy gettextlib could only be fetched by ftp.

And conanprofile need to be updated to
[buildenv]
MACOSX_DEPLOYMENT_TARGET=10.15

To build boost correctly too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants