Repository navigation
chore: rolling promotion dev -> main #615
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
Changes from 5 commits
020c252
f076c51
d504e7e
16f651b
953a783
623d389
7857939
4d082fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -426,6 +426,20 @@ export async function listMembers(teamName: string): Promise<string[] | null> { | |
| return config.members; | ||
| } | ||
|
|
||
| /** Kill all running workers for a team's members. Best-effort — continues on failure. */ | ||
| export async function killTeamMembers(teamName: string): Promise<void> { | ||
| const config = await getTeam(teamName); | ||
| if (!config) return; | ||
|
|
||
| for (const member of config.members) { | ||
| try { | ||
| await killWorkersByName(member); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. |
||
| } catch { | ||
| // Best-effort — continue with other members | ||
| } | ||
|
Comment on lines
+437
to
+439
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the "best-effort" approach of continuing on failure is reasonable here, completely swallowing errors in the empty It would be beneficial to log the error to provide visibility into potential issues. } catch (error) {
console.error(`Failed to kill workers for member "${member}":`, error);
// Best-effort — continue with other members
} |
||
| } | ||
| } | ||
|
|
||
| /** Set team lifecycle status. */ | ||
| export async function setTeamStatus(teamName: string, status: TeamStatus): Promise<void> { | ||
| const filePath = teamFilePath(teamName); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change from
stdio: 'inherit'tostdio: ['pipe', 'pipe', 'inherit']forexecSyncwill suppress the standard output of the installation commands. The output is piped but not captured or displayed, which will hide installation progress from the user. This can make it seem like the installation is hanging and complicates debugging.For interactive installation scripts like this, showing the output is crucial for user experience. I recommend reverting this change to restore the previous behavior.
This feedback also applies to the other
execSynccalls modified in this file (lines 162 and 390).