Skip to content

chore: cleanup obsolete CLI tasks - #6940

Merged
christyjacob4 merged 22 commits into
refactor-workers-snfrom
remove-obsolete-tasks
Oct 18, 2023
Merged

christyjacob4 merged 22 commits into
refactor-workers-snfrom
remove-obsolete-tasks

Conversation

@christyjacob4

@christyjacob4 christyjacob4 commented Oct 17, 2023 •

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Removes some obsolete CLI tasks that we don't use anymore
  • Fix Flaky tests

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Comment thread composer.lock

@shimonewman shimonewman Oct 17, 2023 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does the lock file needs to be pushed?

Comment thread app/worker.php Outdated
Console::error('[Error] Message: ' . $error->getMessage());
Console::error('[Error] File: ' . $error->getFile());
Console::error('[Error] Line: ' . $error->getLine());
Console::error('[Error] Trace: ' . $error->getTraceAsString());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

general question, do we want the trace on production?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

right. .removed it 👍

Comment thread phpunit.xml Outdated
<directory>./tests/e2e/Scopes</directory>
<directory>./tests/e2e/Services/Teams</directory>
<directory>./tests/e2e/Services/Realtime</directory>
<directory>./tests/e2e/Services/Webhooks</directory>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

iirc we moved the webhooks to the bottom like functions - because they take the longest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved it to the end 👍

*/
Console::info("Deleting builds for deployment " . $deploymentId);
$storageBuilds = $$getBuildsDevice($projectId);
$storageBuilds = $getBuildsDevice($projectId);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

uff, did that even work in the first place?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Surprisingly this didn't crash the worker 😅 and only failed when we deleted a deployment

@christyjacob4
christyjacob4 merged commit eed7045 into refactor-workers-sn Oct 18, 2023
@christyjacob4
christyjacob4 deleted the remove-obsolete-tasks branch October 18, 2023 20:13
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.

4 participants