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

Explain why vendored repositories are considered out-of-date #24857

Closed
wants to merge 3 commits into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Jan 8, 2025

Work towards #23243

@fmeum fmeum removed the request for review from lberki January 8, 2025 12:15
@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Jan 8, 2025
@fmeum fmeum force-pushed the 23243-explain-invalidation branch from 30ebaf3 to cf07137 Compare January 8, 2025 12:18
Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, can you please take a look at the presubmit failures and update/add the test cases?

@fmeum fmeum force-pushed the 23243-explain-invalidation branch from cf07137 to 9018577 Compare January 8, 2025 13:43
@fmeum fmeum requested a review from meteorcloudy January 8, 2025 15:46
@fmeum
Copy link
Collaborator Author

fmeum commented Jan 8, 2025

@bazel-io fork 8.1.0

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but wait for @Wyverald to also take a look

@meteorcloudy
Copy link
Member

Ping @Wyverald !

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jan 20, 2025
};
/** A sentinel "input" that's always out-of-date to signify parse failure. */
public static final RepoRecordedInput PARSE_FAILURE =
new NeverUpToDateRepoRecordedInput("malformed marker file entry encountered");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got this error from internal check:

[ClassInitializationDeadlock] Possible class initialization deadlock: NeverUpToDateRepoRecordedInput is a subclass of the containing class RepoRecordedInput
      new NeverUpToDateRepoRecordedInput("malformed marker file entry encountered");
          ^
    (see http://go/bugpattern/ClassInitializationDeadlock)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed

byte[] areRepositoryAndMarkerFileConsistent(RepositoryFunction handler, Environment env)
sealed interface RepoDirectoryState {
record UpToDate(byte[] markerDigest) implements RepoDirectoryState {}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


[ArrayRecordComponent] Record components should not be arrays.
      record UpToDate(byte[] markerDigest) implements RepoDirectoryState {}
                             ^
    (see http://go/bugpattern/ArrayRecordComponent)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ignored this one, but made the interface private to the file.

@fmeum fmeum force-pushed the 23243-explain-invalidation branch from ad54539 to cfa0a28 Compare January 21, 2025 17:03
@fmeum fmeum force-pushed the 23243-explain-invalidation branch from cfa0a28 to 32ae6f8 Compare January 21, 2025 17:04
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jan 24, 2025
@fmeum fmeum deleted the 23243-explain-invalidation branch January 24, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants