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

chore: move update pr script to actual script with tests #1684

Merged
merged 6 commits into from
Nov 25, 2024

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Nov 22, 2024

Closes #1683

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
194 194 0 0 0
Test Changes Summary ✨3 πŸ—‘οΈ3

✨ New Tests (3)

  1. Stop button and elapsed time label appear when query is running (tenant/queryEditor/queryEditor.test.ts)
  2. Stop button and elapsed time label disappear after query is stopped (tenant/queryEditor/queryEditor.test.ts)
  3. Dont save button in unsaved changes modal allows to change text (tenant/queryEditor/queryTemplates.test.ts)

πŸ—‘οΈ Deleted Tests (3)

  1. Stop button and elapsed time label appears when query is running (tenant/queryEditor/queryEditor.test.ts)
  2. Stop button and elapsed time label disappears after query is stopped (tenant/queryEditor/queryEditor.test.ts)
  3. Dont save button in unsaved changes modal allows text to change (tenant/queryEditor/queryTemplates.test.ts)

Bundle Size: βœ…

Current: 66.10 MB | Main: 66.10 MB
Diff: 0.00 KB (0.00%)

βœ… Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • πŸ“Š indicates links to detailed reports.
  • πŸ”Ί indicates increase, πŸ”½ decrease, and βœ… no change in bundle size.

pull_number: context.issue.number,
body: newBody,
});
const updatePRDescription = require('./.github/workflows/scripts/update-pr-description.js');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved script from yml to scripts

@astandrik astandrik requested a review from Copilot November 23, 2024 07:46
@astandrik astandrik changed the title chore: enhance tests yml chore: move update pr script to actual script with tests Nov 23, 2024
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 15 changed files in this pull request and generated 1 suggestion.

Files not reviewed (10)
  • .github/workflows/scripts/tests/update-pr-description.test.ts: Evaluated as low risk
  • .github/workflows/scripts/utils/bundle.js: Evaluated as low risk
  • config-overrides.js: Evaluated as low risk
  • .github/workflows/scripts/tests/results.test.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/test.test.ts: Evaluated as low risk
  • .github/workflows/scripts/utils/test.js: Evaluated as low risk
  • .github/workflows/scripts/utils/results.js: Evaluated as low risk
  • .github/workflows/scripts/update-pr-description.js: Evaluated as low risk
  • .github/workflows/quality.yml: Evaluated as low risk
  • .github/workflows/scripts/utils/format.js: Evaluated as low risk

.github/workflows/scripts/__tests__/format.test.ts Outdated Show resolved Hide resolved
@astandrik astandrik requested a review from Copilot November 23, 2024 09:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 15 changed files in this pull request and generated 1 suggestion.

Files not reviewed (10)
  • .github/workflows/quality.yml: Evaluated as low risk
  • config-overrides.js: Evaluated as low risk
  • .github/workflows/scripts/utils/test.js: Evaluated as low risk
  • tests/suites/tenant/queryEditor/queryTemplates.test.ts: Evaluated as low risk
  • tests/suites/tenant/queryEditor/queryEditor.test.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/update-pr-description.test.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/types.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/test.test.ts: Evaluated as low risk
  • .github/workflows/scripts/utils/format.js: Evaluated as low risk
  • .github/workflows/scripts/utils/results.js: Evaluated as low risk
Comments skipped due to low confidence (1)

.github/workflows/scripts/update-pr-description.js:57

  • The regex pattern used to replace the CI section might not handle edge cases well. Consider using a more robust pattern to ensure it matches the intended section accurately.
const ciSectionRegex = /## CI Results[\s\S]*?(?=\n## (?!CI Results)|$)/;

.github/workflows/scripts/__tests__/bundle.test.ts Outdated Show resolved Hide resolved
@astandrik astandrik requested a review from Copilot November 23, 2024 09:58

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 15 changed files in this pull request and generated no suggestions.

Files not reviewed (10)
  • .github/workflows/quality.yml: Evaluated as low risk
  • .github/workflows/scripts/tests/format.test.ts: Evaluated as low risk
  • tests/suites/tenant/queryEditor/queryEditor.test.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/update-pr-description.test.ts: Evaluated as low risk
  • config-overrides.js: Evaluated as low risk
  • .github/workflows/scripts/utils/test.js: Evaluated as low risk
  • tests/suites/tenant/queryEditor/queryTemplates.test.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/types.ts: Evaluated as low risk
  • .github/workflows/scripts/tests/test.test.ts: Evaluated as low risk
  • .github/workflows/scripts/utils/format.js: Evaluated as low risk
@astandrik astandrik added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit a46ebbe Nov 25, 2024
7 checks passed
@astandrik astandrik deleted the astandrik.enhance-tests-1683 branch November 25, 2024 08:09
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.

move update pr script to actual script with tests
2 participants