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

Symbols and relationships in a symbol graph are non-deterministically ordered #59602

Open
QuietMisdreavus opened this issue Jun 21, 2022 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SymbolGraphGen The swiftSymbolGraphGen library, responsible for gathering and emitting symbol graphs.

Comments

@QuietMisdreavus
Copy link
Contributor

Radar: rdar://95598551

When emitting a symbol graph, the symbols and relationships can change ordering between runs, even if there are no changes to symbol and relationships data. I believe the ordering is currently determined by the order in which symbols are crawled within the module, but regardless, this causes issues with testing, reproducible builds, and storing symbol graph output in text-diff-able environments like Git repositories. We should investigate what it would take to force an ordering for symbols and relationships in the symbol graph.

@QuietMisdreavus QuietMisdreavus added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SymbolGraphGen The swiftSymbolGraphGen library, responsible for gathering and emitting symbol graphs. labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. SymbolGraphGen The swiftSymbolGraphGen library, responsible for gathering and emitting symbol graphs.
Projects
None yet
Development

No branches or pull requests

1 participant