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

Move install-related dev scripts to device/ folder #1793

Merged
merged 12 commits into from
May 15, 2024

Conversation

jotaen4tinypilot
Copy link
Contributor

@jotaen4tinypilot jotaen4tinypilot commented Apr 25, 2024

Related #1716. Stacked on #1791.

This PR moves both install-related dev scripts to a new subfolder device/. This is mostly for clarity, to communicate that these two scripts are not supposed to be executed on a dev machine.

Initially I thought we should also move the enable-passwordless-sudo script there as well, but I’m not so sure about that anymore, because I think it also would be possible to run it in a dev environment. E.g., we also run it on CI for the e2e tests.
Review on CodeApprove

Base automatically changed from dev-scripts/check to master April 26, 2024 13:38
Copy link
Contributor

@jdeanwallace jdeanwallace left a comment

Choose a reason for hiding this comment

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

Automated comment from CodeApprove ➜

⏳ Approval Pending (2 unresolved comments)
Approval will be granted automatically when all comments are resolved


In: Discussion

Initially I thought we should also move the enable-passwordless-sudo script there as well

Apart from using in it CI, as you mentioned, we also only reference it in the CONTRIBUTING doc. I would also say it should stay put.


In: Discussion
I also think dev-scripts/debug-logs should be moved to the device/subdirectory, but it looks like it only exists for backwards compatibility. So I would probably not touch it at this point.


In: CONTRIBUTING.md:

> Line 166
1. Run the [`dev-scripts/device/install-from-source`](dev-scripts/install-from-source) script to build and install your branch's code. For example:

Missed one: dev-scripts/install-from-source -> dev-scripts/device/install-from-source


👀 @jotaen4tinypilot it's your turn please take a look

Copy link
Contributor Author

@jotaen4tinypilot jotaen4tinypilot left a comment

Choose a reason for hiding this comment

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

Automated comment from CodeApprove ➜

In: Discussion
It’s my understanding as well that we cannot move it right now, unfortunately. I’m actually wondering whether we are able to delete that script by now.


In: CONTRIBUTING.md:
Oh, thanks, fixed.

Copy link
Contributor

@jdeanwallace jdeanwallace left a comment

Choose a reason for hiding this comment

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

Automated comment from CodeApprove ➜

Approved: I have approved this change on CodeApprove and all of my comments have been resolved.

@jdeanwallace jdeanwallace dismissed their stale review May 15, 2024 17:18

Review approved on CodeApprove

@jotaen4tinypilot jotaen4tinypilot merged commit ef838a4 into master May 15, 2024
13 checks passed
@jotaen4tinypilot jotaen4tinypilot deleted the dev-scripts/device branch May 15, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants