Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions extension/tasks/dependabotV2/dependabot/experiments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export const DEFAULT_EXPERIMENTS: Record<string, string | boolean> = {
'enable-file-parser-python-local': true,
'npm-fallback-version-above-v6': true,
'lead-security-dependency': true,
// NOTE: 'enable-record-ecosystem-meta' is not currently implemented in Dependabot-CLI.
// This experiment is primarily for GitHub analytics and doesn't add much value in the DevOps implementation.
// See: https://github.com/dependabot/dependabot-core/pull/10905
// TODO: Revisit this if/when Dependabot-CLI supports it.
//'enable-record-ecosystem-meta': true,
'enable-record-ecosystem-meta': true,
'enable-shared-helpers-command-timeout': true,
'enable-engine-version-detection': true,
'avoid-duplicate-updates-package-json': true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ describe('DependabotOutputProcessor', () => {
expect(result).toBe(true);
});

it('should process "record_ecosystem_meta"', async () => {
const result = await processor.process(update, 'record_ecosystem_meta', data);

expect(result).toBe(true);
});

it('should process "record_update_job_error"', async () => {
const result = await processor.process(update, 'record_update_job_error', data);

Expand Down
4 changes: 4 additions & 0 deletions extension/tasks/dependabotV2/dependabot/output-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ export class DependabotOutputProcessor {
// No action required
return true;

case 'record_ecosystem_meta':
// No action required
return true;

case 'record_update_job_error':
error(`Update job error: ${data['error-type']} ${JSON.stringify(data['error-details'])}`);
return false;
Expand Down