Skip to content

Commit

Permalink
Performance tests: fix results file path
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed May 15, 2024
1 parent 7e51316 commit e4b210b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const config = require( '../config' );

const ARTIFACTS_PATH =
process.env.WP_ARTIFACTS_PATH || path.join( process.cwd(), 'artifacts' );
const RESULTS_FILE_SUFFIX = '.performance-results.raw.json';
const RAW_RESULTS_FILE_SUFFIX = '.performance-results.raw.json';
const RESULTS_FILE_SUFFIX = '.performance-results.json';

/**
* @typedef WPPerformanceCommandOptions
Expand Down Expand Up @@ -492,7 +493,7 @@ async function runPerformanceTests( branches, options ) {
logAtIndent( 0, 'Calculating results' );

const resultFiles = getFilesFromDir( ARTIFACTS_PATH ).filter( ( file ) =>
file.endsWith( RESULTS_FILE_SUFFIX )
file.endsWith( RAW_RESULTS_FILE_SUFFIX )
);
/** @type {Record<string,Record<string, Record<string, Record<string, number>>>>} */
const results = {};
Expand Down

0 comments on commit e4b210b

Please sign in to comment.