Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Apr 23, 2025

This script checks that all files in our c10 copy are in sync with our pinned version of PyTorch.

NOTE TO REVIEWERS: as part reviewing this PR, please weigh in on whether this is a sensible policy. Instinctively, I wanted to allow temporary divergence from the pinned PyTorch version, but I'm unable to articulate why. It now seems like this is the only sensible policy, as our c10 copy is logically part of our PyTorch pin.

Test Plan: 1) detected us being out of sync when I wrote this PR
2) CI to run it and make sure that we are clean now

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Apr 23, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 23, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10403

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

swolchok added a commit that referenced this pull request Apr 23, 2025
This script checks that all files in our c10 copy are in sync with our pinned version of PyTorch.

Test Plan: 1) detected us being out of sync when I wrote this PR
2) CI to run it and make sure that we are clean now


ghstack-source-id: 90ff96c
ghstack-comment-id: 2825037146
Pull-Request-resolved: #10403
@swolchok swolchok mentioned this pull request Apr 23, 2025
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 23, 2025
Copy link
Contributor

@mergennachin mergennachin left a comment

Choose a reason for hiding this comment

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

Yeah, this looks like a good policy

@@ -0,0 +1,13 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this file being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops! supposed to be the thing that the workflow calls

exit 1
fi

while IFS= read -r -d '' file; do
Copy link
Contributor

Choose a reason for hiding this comment

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

Thoughts on continuing after errors (instead of exiting on first mismatch)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Apr 23, 2025
This script checks that all files in our c10 copy are in sync with our pinned version of PyTorch.

Test Plan: 1) detected us being out of sync when I wrote this PR
2) CI to run it and make sure that we are clean now

ghstack-source-id: f19bb5c
ghstack-comment-id: 2825037146
Pull-Request-resolved: #10403
[ghstack-poisoned]
@swolchok swolchok merged commit c1886a1 into gh/swolchok/423/head Apr 23, 2025
@swolchok swolchok deleted the gh/swolchok/424/head branch April 23, 2025 19:42
@swolchok
Copy link
Contributor Author

swolchok commented Apr 23, 2025

ugh, I don't recall clicking the merge button on this PR. will re-send (all it did was merge into previous PR)

@swolchok
Copy link
Contributor Author

clicking the merge button

accidentally sent this out with the order of the stack reversed and I guess that's how github chose to reflect what I did. replacement is #10413

kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
This script checks that all files in our c10 copy are in sync with our pinned version of PyTorch.

Test Plan: 1) detected us being out of sync when I wrote this PR
2) CI to run it and make sure that we are clean now

ghstack-source-id: ca04bfa
ghstack-comment-id: 2825037146
Pull-Request-resolved: pytorch/executorch#10403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants