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

Add VCS aware file change event querying #96

Merged
merged 15 commits into from
Oct 21, 2024
Merged

Conversation

yamadapc
Copy link
Contributor

This PR adds a prototype of VCS aware change lists queries.

It adds a new filesystem implementation which uses a rust implementation of git diffing / yarn lock/state reading to get the list of changed files.

There is a README.md explaining details including how to roll-out / next steps. As it is, this branch does not consume the event lists returned by VCS, as I'd like to measure the accuracy of the changes.

Additionally, an example binary is provided which can be used to list changes.

@yamadapc yamadapc marked this pull request as ready for review September 29, 2024 22:35
@yamadapc yamadapc changed the title Prototype VCS aware file change event querying Add VCS aware file change event querying Sep 29, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need to support this

.arg("--deleted")
.arg("--modified")
.arg("--others")
.arg("-z") // We separate rows by \0 to avoid issues with newlines
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you are able to distinguish CI builds (which won't have a working tree changes) then you can shortcut a bunch of time spent here.

@yamadapc yamadapc requested a review from a team October 3, 2024 06:18
@yamadapc
Copy link
Contributor Author

yamadapc commented Oct 4, 2024

I'll remove the yarn v1 parser - https://gist.github.com/yamadapc/285bc0614027aadf25fd22154dae1538

@yamadapc yamadapc enabled auto-merge (squash) October 21, 2024 23:38
@yamadapc yamadapc merged commit 895ce50 into main Oct 21, 2024
17 checks passed
@yamadapc yamadapc deleted the issue/vcs-aware-event-lists branch October 21, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants