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

refactor(core): Add tests to workflowPostExecute in TelemetryEventRelay #12437

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

RicardoE105
Copy link
Contributor

@RicardoE105 RicardoE105 commented Jan 3, 2025

Summary

Prep work to be able to add new logic to the workflowPostExecute method in the TelemetryEventRelay class. As part of the free AI credits feature, we need this to be able to add two new properties to the telemetry event once a manual node execution finish. See requirement here.

See coverage here -> https://app.codecov.io/gh/n8n-io/n8n/pull/12437/blob/packages/cli/src/events/relays/telemetry.event-relay.ts#L592

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-3050/add-telemetry-events

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@RicardoE105 RicardoE105 changed the title Add tests to workflowPostExecute in TelemetryEventRelay refactor(code): Add tests to workflowPostExecute in TelemetryEventRelay Jan 3, 2025
@RicardoE105 RicardoE105 changed the title refactor(code): Add tests to workflowPostExecute in TelemetryEventRelay refactor(core): Add tests to workflowPostExecute in TelemetryEventRelay Jan 3, 2025
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 3, 2025
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@RicardoE105 RicardoE105 requested a review from mutdmour January 3, 2025 02:14
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

Thanks for increasing coverage here

Copy link

cypress bot commented Jan 3, 2025

n8n    Run #8543

Run Properties:  status check passed Passed #8543  •  git commit 0388996cb9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Project n8n
Branch Review add-tests-to-workflowPostExecute
Run status status check passed Passed #8543
Run duration 04m 49s
Commit git commit 0388996cb9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Committer Ricardo Espinoza
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 484
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Jan 3, 2025

✅ All Cypress E2E specs passed

@RicardoE105 RicardoE105 merged commit b78210c into master Jan 3, 2025
38 of 39 checks passed
@RicardoE105 RicardoE105 deleted the add-tests-to-workflowPostExecute branch January 3, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants