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

feat(pegboard): integrate setup scripts #1147

Conversation

MasterPtato
Copy link
Contributor

Changes

Copy link
Contributor

graphite-app bot commented Sep 13, 2024

Your org requires the Graphite merge queue for merging into main

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

You can enable merging using labels in your Graphite merge queue settings.

Copy link
Contributor Author

MasterPtato commented Sep 13, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MasterPtato and the rest of your teammates on Graphite Graphite

@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_add_process_monitoring_wip_sqlite branch from 81dbbe7 to d3132bc Compare September 14, 2024 01:39
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_integrate_setup_scripts branch from 49eba8f to c939a61 Compare September 14, 2024 01:39
@MasterPtato MasterPtato marked this pull request as ready for review September 25, 2024 02:27
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_add_process_monitoring_wip_sqlite branch from d3132bc to 92504c4 Compare September 28, 2024 00:24
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_integrate_setup_scripts branch from c939a61 to c873078 Compare September 28, 2024 00:24
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_add_process_monitoring_wip_sqlite branch from 92504c4 to 36cebf1 Compare September 29, 2024 21:46
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_integrate_setup_scripts branch from c873078 to 3fed967 Compare September 29, 2024 21:46
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_add_process_monitoring_wip_sqlite branch from 36cebf1 to 281896a Compare October 1, 2024 18:09
@MasterPtato MasterPtato force-pushed the 09-13-feat_pegboard_integrate_setup_scripts branch from 3fed967 to 2d06c72 Compare October 1, 2024 18:09
This was referenced Oct 1, 2024
@@ -33,6 +33,12 @@ fn main() -> anyhow::Result<()> {
.context("`container_dir` arg required")?;
let pegboard_container_dir = Path::new(&pegboard_container_dir);

// Write PID to file
fs::write(
pegboard_container_dir.join("pid"),
Copy link
Member

Choose a reason for hiding this comment

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

nit: use consts for all files that are written. makes it easy to know what's in the folder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could you elaborate?

@@ -207,6 +226,8 @@ impl Ctx {
// Check file doesn't exist
if fs::metadata(&path).await.is_err() {
utils::download_file(container_runner_binary_url, &path).await?;

Command::new("chmod").arg("+x").arg(&path).output().await?;
Copy link
Member

Choose a reason for hiding this comment

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

nit: use fs api for this

Copy link
Contributor

graphite-app bot commented Oct 9, 2024

Merge activity

NathanFlurry pushed a commit that referenced this pull request Oct 9, 2024
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Oct 9, 2024
@graphite-app graphite-app bot deleted the 09-13-feat_pegboard_integrate_setup_scripts branch October 9, 2024 04: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.

2 participants