mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Report test-workflows errors to Sentry (no-changelog) (#11944)
This commit is contained in:
committed by
GitHub
parent
41e9e39b5b
commit
fcbf0ea771
4
.github/workflows/test-workflows.yml
vendored
4
.github/workflows/test-workflows.yml
vendored
@@ -74,6 +74,8 @@ jobs:
|
|||||||
N8N_ENCRYPTION_KEY: ${{secrets.ENCRYPTION_KEY}}
|
N8N_ENCRYPTION_KEY: ${{secrets.ENCRYPTION_KEY}}
|
||||||
SKIP_STATISTICS_EVENTS: true
|
SKIP_STATISTICS_EVENTS: true
|
||||||
DB_SQLITE_POOL_SIZE: 4
|
DB_SQLITE_POOL_SIZE: 4
|
||||||
|
N8N_SENTRY_DSN: ${{secrets.CI_SENTRY_DSN}}
|
||||||
|
|
||||||
# -
|
# -
|
||||||
# name: Export credentials
|
# name: Export credentials
|
||||||
# if: always()
|
# if: always()
|
||||||
@@ -93,7 +95,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify Slack on failure
|
- name: Notify Slack on failure
|
||||||
uses: act10ns/slack@v2.0.0
|
uses: act10ns/slack@v2.0.0
|
||||||
if: failure()
|
if: failure() && github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
channel: '#alerts-build'
|
channel: '#alerts-build'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import fs from 'fs';
|
|||||||
import { diff } from 'json-diff';
|
import { diff } from 'json-diff';
|
||||||
import pick from 'lodash/pick';
|
import pick from 'lodash/pick';
|
||||||
import type { IRun, ITaskData, IWorkflowExecutionDataProcess } from 'n8n-workflow';
|
import type { IRun, ITaskData, IWorkflowExecutionDataProcess } from 'n8n-workflow';
|
||||||
import { ApplicationError, jsonParse } from 'n8n-workflow';
|
import { ApplicationError, jsonParse, ErrorReporterProxy } from 'n8n-workflow';
|
||||||
import os from 'os';
|
import os from 'os';
|
||||||
import { sep } from 'path';
|
import { sep } from 'path';
|
||||||
import { Container } from 'typedi';
|
import { Container } from 'typedi';
|
||||||
@@ -822,6 +822,11 @@ export class ExecuteBatch extends BaseCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
ErrorReporterProxy.error(e, {
|
||||||
|
extra: {
|
||||||
|
workflowId: workflowData.id,
|
||||||
|
},
|
||||||
|
});
|
||||||
executionResult.error = `Workflow failed to execute: ${(e as Error).message}`;
|
executionResult.error = `Workflow failed to execute: ${(e as Error).message}`;
|
||||||
executionResult.executionStatus = 'error';
|
executionResult.executionStatus = 'error';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user