Skip to content

[skip ci] Skip activity api test#28070

Closed
ShaileshParmar11 wants to merge 1 commit into
mainfrom
skip-activity-api-tests
Closed

[skip ci] Skip activity api test#28070
ShaileshParmar11 wants to merge 1 commit into
mainfrom
skip-activity-api-tests

Conversation

@ShaileshParmar11
Copy link
Copy Markdown
Contributor

Describe your changes:

Mirrors #28068 on a separate branch. Skips the Activity API Playwright suites (Entity Changes, Reactions, Comments, Homepage Widget) by switching test.describetest.describe.fixme, and drops the duplicated inline timeout comments now that the suites are skipped.

Skip CI

Commit message and PR title both include [skip ci] per the GitHub skip-workflow-runs guide so Actions workflows are not triggered for this PR.

Investigation TODOs (captured in code):

  1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
  2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it — decoupling UI assertions from event latency.

Type of change:

  • Improvement

Tests:

No new tests; this PR only marks existing suites as fixme until the async event propagation investigation lands.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.

Mark Activity API Playwright describe blocks as fixme while async
event propagation is investigated, and drop the redundant inline
timeout comments. Mirrors the change in #28068 on a separate branch.

Investigation TODOs are captured in code above the first fixme block.

[skip ci]
Copilot AI review requested due to automatic review settings May 13, 2026 06:58
@ShaileshParmar11 ShaileshParmar11 requested a review from a team as a code owner May 13, 2026 06:58
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels May 13, 2026
Comment on lines +45 to +47
// Investigation needed:
// 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
// 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.
Copy link
Copy Markdown

@gitar-bot gitar-bot Bot May 13, 2026

Choose a reason for hiding this comment

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

💡 Quality: TODO comments missing ticket references

The investigation comments added at lines 45-47 describe future work but do not include a ticket/issue reference. Per project guidelines, TODOs must include ticket references so they can be tracked and not forgotten.

Consider referencing the related issue (e.g., #28068 or a dedicated tracking issue) so this fixme doesn't become permanently stale.

Add ticket reference to the TODO comment so it can be tracked:

// TODO(#28068): Investigation needed:
// 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
// 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.

Was this helpful? React with 👍 / 👎

@gitar-bot
Copy link
Copy Markdown

gitar-bot Bot commented May 13, 2026

Code Review 👍 Approved with suggestions 0 resolved / 1 findings

Skips unstable Activity API Playwright suites using fixme decorators to stabilize the test environment. Ensure the added investigation TODOs are updated with tracking ticket references.

💡 Quality: TODO comments missing ticket references

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityAPI.spec.ts:45-47

The investigation comments added at lines 45-47 describe future work but do not include a ticket/issue reference. Per project guidelines, TODOs must include ticket references so they can be tracked and not forgotten.

Consider referencing the related issue (e.g., #28068 or a dedicated tracking issue) so this fixme doesn't become permanently stale.

Add ticket reference to the TODO comment so it can be tracked
// TODO(#28068): Investigation needed:
// 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
// 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.
🤖 Prompt for agents
Code Review: Skips unstable Activity API Playwright suites using fixme decorators to stabilize the test environment. Ensure the added investigation TODOs are updated with tracking ticket references.

1. 💡 Quality: TODO comments missing ticket references
   Files: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityAPI.spec.ts:45-47

   The investigation comments added at lines 45-47 describe future work but do not include a ticket/issue reference. Per project guidelines, TODOs must include ticket references so they can be tracked and not forgotten.
   
   Consider referencing the related issue (e.g., #28068 or a dedicated tracking issue) so this `fixme` doesn't become permanently stale.

   Fix (Add ticket reference to the TODO comment so it can be tracked):
   // TODO(#28068): Investigation needed:
   // 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
   // 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Copy link
Copy Markdown
Contributor

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.

Pull request overview

Disables the flaky Activity API Playwright coverage by marking the Activity API suites as fixme, to avoid blocking on asynchronous activity event propagation latency while the root cause is investigated.

Changes:

  • Switched the Activity API Playwright suites (Entity Changes, Reactions, Comments, Homepage Widget) from test.describe to test.describe.fixme.
  • Removed repeated inline timeout-explanation comments and added a single investigation note at the top of the file.

test.describe(
// Investigation needed:
// 1. Profile actual event propagation time — measure how long it typically takes from a PATCH/PUT call to the event appearing in /api/v1/activity, then tighten the ceiling.
// 2. If synchronous flushing is not feasible, restructure tests to assert entity state directly via the entity API, seed a pre-built activity event, and verify only that the UI renders it decoupling UI assertions from event latency.
@github-actions
Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 62%
62.54% (64746/103520) 43.25% (35263/81531) 46.06% (10377/22529)

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants