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

[pull] main from microsoft:main #70

Merged
merged 26 commits into from
Oct 28, 2023

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 25, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@restack-app
Copy link

restack-app bot commented Oct 25, 2023

No applications have been configured for previews targeting branch: main. To do so go to restack console and configure your applications for previews.

@commit-lint
Copy link

commit-lint bot commented Oct 25, 2023

Features

Tests

Documentation

Bug Fixes

Chore

Contributors

pavelfeldman, playwrightmachine, mxschmitt, debs-obrien, yury-s, gregberge, jsenin, sand4rt, dgozman

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@coderabbitai
Copy link

coderabbitai bot commented Oct 25, 2023

Important

Auto Review Skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json

@pr-code-reviewer
Copy link

pr-code-reviewer bot commented Oct 25, 2023

👋 Hi there!

  1. Update the Chromium version badge to the latest version (e.g., 119.0.6045.59) to reflect the current version of Chromium being used.
  2. Remove the Firefox and WebKit version badges if they are not relevant or outdated for the project.
  3. Ensure that all the badge links are correct and up-to-date, directing users to the appropriate resources.


Automatically generated with the help of gpt-3.5-turbo.
Feedback? Please don't hesitate to drop me an email at [email protected].

@instapr
Copy link

instapr bot commented Oct 25, 2023

  • Please remove the unnecessary line referencing future dates.
  • Consider providing more specific details in the PR body instead of redirecting to commits and changes.
  • Remove the sponsorship message from the PR body.

@sweep-ai
Copy link

sweep-ai bot commented Oct 25, 2023

Apply Sweep Rules to your PR?

  • Apply: Leftover TODOs in the code should be handled.
  • Apply: All new business logic should have corresponding unit tests in the tests/ directory.
  • Apply: Any clearly inefficient or repeated code should be optimized or refactored.

@pr-explainer-bot
Copy link

Hey there! Looks like you need a Pull Request review markdown doc. Let's get started!

Changes ✔️

  1. Added a new file testUtils.ts in the packages/trace-viewer/src/ui directory.
  2. Added UITestStatus type with possible values: 'none', 'running', 'scheduled', 'passed', 'failed', 'skipped'.
  3. Added testStatusIcon function that returns an icon based on the given UITestStatus.
  4. Added testStatusText function that returns a text based on the given UITestStatus.

Suggestions 💡

In uiModeView.tsx:

  • Line 38: Imported testStatusIcon function from ./testUtils.
  • Line 38: Imported UITestStatus type from ./testUtils.
  • Line 361: Changed the type of selectedItem from { testFile?: SourceLocation, testCase?: TestCase } to { treeItem?: TreeItem, testFile?: SourceLocation, testCase?: TestCase }.
  • Line 517: Removed the icon mapping logic and replaced it with testStatusIcon function.
  • Line 543: Removed the icon mapping logic and replaced it with testStatusIcon function.
  • Line 795: Changed the type of status in TreeItem from 'none' | 'running' | 'scheduled' | 'passed' | 'failed' | 'skipped' to UITestStatus.

Bugs 🐛

Potential bugs:

  • In testUtils.ts, the testStatusIcon function does not have a default case for the status parameter. It should handle the case when the status is not one of the defined values.
  • In testUtils.ts, the testStatusText function does not have a default case for the status parameter. It should handle the case when the status is not one of the defined values.

Improvements 🚀

In uiModeView.tsx, the logic for mapping icons based on the status property can be refactored for better readability. Here's an improved version:

import { testStatusIcon } from './testUtils';
import type { UITestStatus } from './testUtils';

const TestList: React.FC<{
  // ...
  onItemSelected: (item: { treeItem?: TreeItem, testCase?: TestCase, testFile?: SourceLocation }) => void,
  // ...
}> = ({
  // ...
  onItemSelected,
  // ...
}) => {
  // ...
  const icon = (treeItem: TreeItem) => testStatusIcon(treeItem.status);
  // ...
  return (
    // ...
    <Tree
      // ...
      icon={icon}
      // ...
    />
    // ...
  );
};

Rating ⭐⭐⭐⭐⭐⭐⭐

I rate the code a 7 out of 10 based on readability, performance, and security.

That's it! Hope this helps with your Pull Request review. Let me know if you need anything else. Cheers!

@pull pull bot added the ⤵️ pull label Oct 25, 2023
playwrightmachine and others added 21 commits October 25, 2023 12:32
Fixes #27741

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Node.js 20 was promoted to LTS on 2023-10-24.

Fixes #27812
This seems more reliable nowadays as rimraf.

#27712

---------

Signed-off-by: Max Schmitt <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@ammar-ahmed-butt ammar-ahmed-butt merged commit 0b20f9a into ammar-knowledge:main Oct 28, 2023
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.

10 participants