Changeset 59582
- Timestamp:
- 01/06/2025 09:19:51 PM (7 days ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/reusable-performance.yml
r59577 r59582 332 332 # Only needed when publishing results. 333 333 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/trunk' && ! inputs.memcached && ! inputs.multisite }} 334 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 335 id: commit-timestamp 336 with: 337 github-token: ${{ secrets.GITHUB_TOKEN }} 338 script: | 339 const commit_details = await github.rest.git.getCommit({ owner: context.repo.owner, repo: context.repo.repo, commit_sha: context.sha }); 340 return parseInt((new Date( commit_details.data.author.date ).getTime() / 1000).toFixed(0)) 334 # Write to an environment variable to have the output available in later steps of the job. 335 run: echo "COMMITTED_AT=$(git show -s $GITHUB_SHA --format='%cI')" >> $GITHUB_ENV 341 336 342 337 - name: Publish performance results … … 345 340 env: 346 341 BASE_SHA: ${{ steps.base-sha.outputs.result }} 347 COMMITTED_AT: ${{ steps.commit-timestamp.outputs.result }}348 342 CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }} 349 343 HOST_NAME: "www.codevitals.run" -
trunk/tests/performance/log-results.js
r59577 r59582 12 12 */ 13 13 const https = require( 'https' ); 14 const [ token, branch, hash, baseHash, timestamp, host ] =14 const [ token, branch, hash, baseHash, date, host ] = 15 15 process.argv.slice( 2 ); 16 16 const { median, parseFile, accumulateValues } = require( './utils' ); … … 88 88 hash, 89 89 baseHash, 90 timestamp: parseInt( timestamp, 10 ),90 timestamp: date, 91 91 metrics: metrics, 92 92 baseMetrics: baseMetrics,
Note: See TracChangeset
for help on using the changeset viewer.