Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: INFENG-942: Conditionally bypass build-react job checks #10145

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

davidfluck-hpe
Copy link
Contributor

@davidfluck-hpe davidfluck-hpe commented Oct 28, 2024

Ticket

INFENG-942

Description

The release job is skipping the React build step because there are two jobs that attempt to skip the entire job if no changes are detected in specific directories. Previously, bumpversion made it so that, by dint of updating various files, the job would not be skipped. Now that we aren't using it, though, certain downstream jobs are failing because React wasn't built.

To fix this, I've added a "force" variable to the build-react job, to allow conditionally bypassing the checks if indicated by the caller. This preserves existing behavior, to avoid potentially other unintended consequences of beginning to build React everywhere, but also to avoid running up CircleCI compute bills, as this much extra build time would probably have a material effect on spending.

Test Plan

Given that it's a CircleCI change and it's release-affecting, I think a visual spot check is okay.

Checklist

  • Changes have been manually QA'd
  • New features have been approved by the corresponding PM
  • User-facing API changes have the "User-facing API Change" label
  • Release notes have been added as a separate file under docs/release-notes/
    See Release Note for details.
  • Licenses have been included for new code which was copied and/or modified from any external code

jobs that attempt to skip the entire job if no changes are detected in
specific directories. Previously, bumpversion made it so that, by dint
of updating various files, the job would not be skipped. Now that we
aren't using it, though, certain downstream jobs are failing because
React wasn't built.

To fix this, I've added a "force" variable to the build-react job, to
allow conditionally bypassing the checks if indicated by the
caller. This preserves existing behavior, to avoid potentially other
unintended consequences of beginning to build React everywhere, but also
to avoid running up CircleCI compute bills, as this much extra build
time would probably have a material effect on spending.
@davidfluck-hpe davidfluck-hpe requested a review from a team as a code owner October 28, 2024 22:14
@cla-bot cla-bot bot added the cla-signed label Oct 28, 2024
Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit c0ea08c
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/67200e7b2b963600076b580e

@davidfluck-hpe davidfluck-hpe changed the title INFENG-942: Conditionally bypass build-react job checks build: INFENG-942: Conditionally bypass build-react job checks Oct 28, 2024
@davidfluck-hpe davidfluck-hpe merged commit 5ea169c into main Oct 28, 2024
18 of 58 checks passed
@davidfluck-hpe davidfluck-hpe deleted the INFENG-942-dont-skip-react-build branch October 28, 2024 22:23
davidfluck-hpe added a commit that referenced this pull request Oct 28, 2024
The release job is skipping the React build step because there are two
jobs that attempt to skip the entire job if no changes are detected in
specific directories. Previously, bumpversion made it so that, by dint
of updating various files, the job would not be skipped. Now that we
aren't using it, though, certain downstream jobs are failing because
React wasn't built.

To fix this, I've added a "force" variable to the build-react job, to
allow conditionally bypassing the checks if indicated by the
caller. This preserves existing behavior, to avoid potentially other
unintended consequences of beginning to build React everywhere, but also
to avoid running up CircleCI compute bills, as this much extra build
time would probably have a material effect on spending.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants