Open bernardnormier opened 2 weeks ago
The dependency looks correct
And the log shows IceGrid was build before the IceGrid/simple test.
How do you explain that the IceGrid Slice only gets built on the second attempt?
Compiling ../../../slice/IceGrid/Admin.ice Generating -> generated/Admin.cs
Compiling ../../../slice/IceGrid/Descriptor.ice Generating -> generated/Descriptor.cs
Compiling ../../../slice/IceGrid/Exception.ice Generating -> generated/Exception.cs
Compiling ../../../slice/IceGrid/FileParser.ice Generating -> generated/FileParser.cs
Compiling ../../../slice/IceGrid/Registry.ice Generating -> generated/Registry.cs
Compiling ../../../slice/IceGrid/Session.ice Generating -> generated/Session.cs
Compiling ../../../slice/IceGrid/UserAccountMapper.ice Generating -> generated/UserAccountMapper.cs
IceGrid -> /workspaces/ice/csharp/lib/net8.0/IceGrid.dll
So it seems like the first IceGrid build didn't trigger the compilation of the required Slice files, and then the IceGrid/simple build fails because IceGrid assembly doesn't contain the required generated types.
I was able to reproduce it once in the devcontainer, but could not reproduce it with more build verbosity.
In an Ubuntu container. It sounds like a build dependency issue.
A clean build failed with:
$ make dotnet msbuild msbuild/ice.proj /p:UseSharedCompilation=false /nr:false /m /p:Configuration=Debug MSBuild version 17.11.4+37eb419ad for .NET make[1]: Entering directory '/workspaces/ice/cpp' make[1]: Nothing to be done for 'slice2cs'. make[1]: Leaving directory '/workspaces/ice/cpp' Determining projects to restore... All projects are up-to-date for restore. Ice -> /workspaces/ice/csharp/lib/net8.0/Ice.dll client -> /workspaces/ice/csharp/test/Slice/structure/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Slice/macros/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Slice/escape/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/IceUtil/inputUtil/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/IceSSL/configuration/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/IceSSL/configuration/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/IceGrid/simple/msbuild/server/net8.0/server.dll server -> /workspaces/ice/csharp/test/IceDiscovery/simple/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/IceDiscovery/simple/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/IceBox/configuration/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/IceBox/admin/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/udp/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/udp/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/timeout/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/timeout/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/threadPoolPriority/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/threadPoolPriority/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/stream/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/slicing/objects/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/slicing/objects/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/slicing/objects/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/slicing/exceptions/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/slicing/exceptions/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/slicing/exceptions/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/servantLocator/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/servantLocator/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/servantLocator/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/servantLocator/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/seqMapping/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/seqMapping/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/seqMapping/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/seqMapping/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/scope/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/scope/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/retry/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/retry/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/retry/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/proxy/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/proxy/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/proxy/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/proxy/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/properties/msbuild/client/net8.0/client.dll plugin -> /workspaces/ice/csharp/test/Ice/plugin/msbuild/plugin/net8.0/Plugin.dll client -> /workspaces/ice/csharp/test/Ice/plugin/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/optional/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/optional/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/optional/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/operations/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/operations/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/operations/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/operations/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/objects/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/objects/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/objects/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/networkProxy/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/networkProxy/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/namespacemd/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/namespacemd/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/middleware/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/metrics/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/metrics/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/metrics/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/metrics/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/maxDispatches/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/maxDispatches/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/maxConnections/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/maxConnections/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/logger/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/location/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/location/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/invoke/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/invoke/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/inheritance/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/inheritance/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/inheritance/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/info/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/info/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/inactivityTimeout/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/inactivityTimeout/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/idleTimeout/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/idleTimeout/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/hold/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/hold/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/hash/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/faultTolerance/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/faultTolerance/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/facets/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/facets/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/facets/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/executor/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/executor/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/executor/msbuild/client/net8.0/client.dll serveramd -> /workspaces/ice/csharp/test/Ice/exceptions/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/exceptions/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/exceptions/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/exceptions/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/enums/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/enums/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/echo/msbuild/server/net8.0/server.dll serveramd -> /workspaces/ice/csharp/test/Ice/dictMapping/msbuild/serveramd/net8.0/serveramd.dll server -> /workspaces/ice/csharp/test/Ice/dictMapping/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/dictMapping/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/dictMapping/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/defaultValue/msbuild/client/net8.0/client.dll client -> /workspaces/ice/csharp/test/Ice/defaultServant/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/binding/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/binding/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/background/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/background/msbuild/client/net8.0/client.dll core -> /workspaces/ice/csharp/test/Ice/assemblies/msbuild/core/net8.0/core.dll server -> /workspaces/ice/csharp/test/Ice/ami/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/ami/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/ami/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/admin/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Ice/admin/msbuild/client/net8.0/client.dll server -> /workspaces/ice/csharp/test/Ice/adapterDeactivation/msbuild/server/net8.0/server.dll collocated -> /workspaces/ice/csharp/test/Ice/adapterDeactivation/msbuild/collocated/net8.0/collocated.dll client -> /workspaces/ice/csharp/test/Ice/adapterDeactivation/msbuild/client/net8.0/client.dll IceBox -> /workspaces/ice/csharp/lib/net8.0/IceBox.dll IceStorm -> /workspaces/ice/csharp/lib/net8.0/IceStorm.dll IceLocatorDiscovery -> /workspaces/ice/csharp/lib/net8.0/IceLocatorDiscovery.dll IceDiscovery -> /workspaces/ice/csharp/lib/net8.0/IceDiscovery.dll Glacier2 -> /workspaces/ice/csharp/lib/net8.0/Glacier2.dll server -> /workspaces/ice/csharp/test/Glacier2/router/msbuild/server/net8.0/server.dll client -> /workspaces/ice/csharp/test/Glacier2/router/msbuild/client/net8.0/client.dll Compiling ../../../slice/IceGrid/Admin.ice Generating -> generated/Admin.cs Compiling ../../../slice/IceGrid/Descriptor.ice Generating -> generated/Descriptor.cs Compiling ../../../slice/IceGrid/Exception.ice Generating -> generated/Exception.cs Compiling ../../../slice/IceGrid/FileParser.ice Generating -> generated/FileParser.cs Compiling ../../../slice/IceGrid/Registry.ice Generating -> generated/Registry.cs Compiling ../../../slice/IceGrid/Session.ice Generating -> generated/Session.cs Compiling ../../../slice/IceGrid/UserAccountMapper.ice Generating -> generated/UserAccountMapper.cs IceGrid -> /workspaces/ice/csharp/lib/net8.0/IceGrid.dll client -> /workspaces/ice/csharp/test/IceGrid/simple/msbuild/client/net8.0/client.dll testservice -> /workspaces/ice/csharp/test/IceBox/configuration/msbuild/testservice/net8.0/testservice.dll testservice -> /workspaces/ice/csharp/test/IceBox/admin/msbuild/testservice/net8.0/testservice.dll IceBoxNet -> /workspaces/ice/csharp/bin/net8.0/iceboxnet.dll user -> /workspaces/ice/csharp/test/Ice/assemblies/msbuild/user/net8.0/user.dll client -> /workspaces/ice/csharp/test/Ice/assemblies/msbuild/client/net8.0/client.dll