Skip to content

Non-deterministic build systems results across language versions and platforms #4099

Description

@vsanthanam

Description

Main and latest released version are the same commit on this repo at the moment (this is often the case), and platform support does not usually change between commits.

And yet, I get very odd results across versions of my library where random platforms are suddenly failing the build:

In this particular example, iOS is red on main but green on 2.3.0, even though these are literally the same commit (b48a03d)

Repro

This happens essentially anytime the build system is run, whether I land a commit or release a new version. The build system results are seemingly random.

Expected Behavior

Anytime the build system is run against this repo, I get non-deterministic failures. Sometimes a particular swift version and platform combination will fail, sometimes it will not. The GitHub actions associated with the repo build the project for all these platforms and more, and while I do not necessarily expect the SPM build system to mirror my configuration exactly, I do expect its failures to be predictable. A given Swift Version/Platform combination should not suddenly disappear on a commit and randomly reappear in the next commit. The same commit built twice should produce the same results.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage dataThe index is showing incorrect metadata for a package

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions