Make WordPress Core

Opened 17 months ago

Last modified 13 days ago

#63617 new defect (bug)

Account for when artifacts expire or go missing during performance testing

Reported by: desrosj Owned by:
Priority: normal Milestone: 7.2
Component: Build/Test Tools Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

The performance testing workflow attempts to download the build artifact for the previous commit for the purposes of comparing metrics for a given commit. When artifacts expire or go missing, the workflow results in a failure.

This is most common when committing code to older branches (especially those only receiving security updates) because of the long periods of time between commits. An example of this ​can be seen in a recent commit to the 6.5 branch. This is not the only scenario though. Artifacts can also be deleted both manually and programmatically.

When artifacts go missing, the branch should be taken into account to raise an appropriate level of concern.

For example, it should continue to fail when this happens on trunk or the most recent release's branch as this may indicate a problem with the workflow or a service outage. But if the branch is older than that, the workflow can probably succeed with a warning or some type of notice as it's likely due to an expired artifact

Change History (5)

This ticket was mentioned in ​Slack in #core by desrosj. ​View the logs.


9 months ago

This ticket was mentioned in ​PR #11894 on ​WordPress/wordpress-develop by ​@arkaprabhachowdhury.


6 months ago
#2

  • Keywords has-patch added; needs-patch removed

## What?
Updates the performance workflow so missing previous-build artifacts only fail the workflow for runk and the latest release branch.

For older branches, the workflow now logs a warning and skips the previous-build comparison instead of failing.

## Why?
Build artifacts for older branches are more likely to expire or be missing due to long gaps between commits. In those cases, failing the workflow is too strict.

Contribution tracking issue: ​https://github.com/rtCamp/wp-contributions/issues/2953

#3 @arkaprabhachowdhury
3 months ago

Opened [PR #11894](​https://github.com/WordPress/wordpress-develop/pull/11894) to address this ticket. What? Updates the performance workflow so missing previous-build artifacts only fail the workflow for runk and the latest release branch. For older branches, the workflow now logs a warning and skips the previous-build comparison instead of failing. Why? Build artifacts for older branches are more likely to expire or be missing due to long gaps between commits. In those cases, failing the workflow is too strict. Contribution tracking issue: ​https://github.com/rtCamp/wp-contributions/issues/2953 The PR includes focused regression coverage, and its validation details are recorded in the PR description.

I picked this up because the ticket describes a concrete core behavior or edge case that remains relevant in current WordPress. The proposed change is intentionally scoped to the ticket and is submitted here for code review, with the technical discussion remaining on this ticket.

​@arkaprabhachowdhury commented on ​PR #11894:


13 days ago
#4

Requested changes are addressed in \666e05a839\:\n\n- Added \determine-matrix\ to \slack-notifications.needs\ so matrix failures are reported correctly.\n- Rebased onto current trunk to replace the expired performance base artifact.\n\nActionlint, Zizmor, and all performance test and comparison jobs are passing.\n\n@lancewillett, could you please take another look?

#5 @lancewillett
13 days ago

  • Milestone Awaiting Review → 7.2

Moving this Build/Test Tools fix to 7.2. PR ​https://github.com/WordPress/wordpress-develop/pull/11894 keeps missing-artifact failures visible on trunk and the latest release branch, while warning and skipping the previous-build comparison on older branches.

The revised Slack dependency also reports matrix-selection failures correctly. The branch-selection scenarios, actionlint, and CI pass; the workflow security scan has no new findings.

Note: See TracTickets for help on using tickets.