Skip to content

Conversation

@jeanschmidt
Copy link
Contributor

On scaleDown:

  • [FIX] Guaranteed stop the runners from the oldest to the newest, avoiding having runners for too long;
  • [FIX] Fixed bug where a runner could be removed from GHA but kept running on AWS;
  • [IMPROVED] Try to maintain always a minimum of minAvailableRunners runners;

@vercel
Copy link

vercel bot commented Oct 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
torchci ⬜️ Ignored (Inspect) Oct 12, 2022 at 11:29AM (UTC)

@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 Oct 10, 2022
Copy link
Member

@seemethere seemethere left a comment

Choose a reason for hiding this comment

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

LGTM, want to get a second review from @izaitsevfb

{
runnerType: 'ignore-no-org-no-repo',
instanceId: '001',
launchTime: dateRef
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

dateRef
          .clone()
          .subtract(minimumRunningTimeInMinutes + x, 'minutes')
          .toDate()

can be extracted as a reusable local function.

expect(mockedTerminateRunner).toBeCalledTimes(6);
{
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
const { awsR, ghR } = getRunnerPair('keep-lt-min-no-ghrunner-no-ghr-02');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not do const { awsR } = getRunnerPair(...) to avoid lint warning?

Copy link
Contributor

@izaitsevfb izaitsevfb left a comment

Choose a reason for hiding this comment

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

I've added a bunch of comments, they are basically nits, mostly FYI, something to consider in the future. Overall everything looks pretty good, the code is clean and easy to understand.

@jeanschmidt jeanschmidt merged commit 63f4a29 into main Oct 12, 2022
@jeanschmidt jeanschmidt deleted the jeanschmidt/fix_scaleDown_runnerSort branch October 12, 2022 11:31
malfet added a commit that referenced this pull request Oct 17, 2022
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants