Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Potential Inconsistency from resetInterfaceStore with Stale Artifacts #4697

Open
Labels
status: in discussionNot actionable, because discussion is still ongoing or there's no decision yet status: needs triage type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..
@soulomoon

Description

When resetInterfaceStore is invoked, there is no session restart after resetting the GHC artifact’s GetModificationTime.
As a result, two different versions of the same artifact may be used within the same session:

  1. The version loaded before resetInterfaceStore, version A.
  2. The version loaded after resetInterfaceStore, version B.

This mismatch could potentially lead to inconsistencies or incorrect behavior, since the our build system may simultaneously rely on outdated and updated artifacts.

But there is no easy way to workaround this. The main point is that the rule GetModificationTime is seperated from the caller rule of resetInterfaceStore. The caller rule of resetInterfaceStore actually have much left to do. And we can not restart session here, otherwise the caller rule would end up in a loop since resetInterfaceStore would just be called again and we need to restart session again. Further, doing one session restart per GHC artifact is also not a workable choice:(

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in discussionNot actionable, because discussion is still ongoing or there's no decision yet status: needs triage type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /