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

netlify: force rebuild with every merge to avoid 'failed' message in badge #1640

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

manekenpix
Copy link
Member

Description

Whenever a PR is merged and no changes were made to next, our badge reports a failed build. This happens because netlify detects that no changes were made to the next front-end and cancels the build, and for some reason it considers this a failed attempt.
This bug has been reported, and it seems that the solution to avoid this behavior (for now) is to force a build even when no changes were made to the next front-end.

This PR makes the necessary changes to our netlify.toml to force the next build.

@manekenpix manekenpix added the area: CI/CD Continuous integration / Continuous delivery label Feb 3, 2021
@manekenpix manekenpix self-assigned this Feb 3, 2021
@manekenpix manekenpix changed the title netlify: force rebuild with every merge to avoid failed message in badge netlify: force rebuild with every merge to avoid 'failed' message in badge Feb 3, 2021
PedroFonsecaDEV
PedroFonsecaDEV previously approved these changes Feb 3, 2021
birtony
birtony previously approved these changes Feb 3, 2021
Copy link
Contributor

@birtony birtony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, they say the request to fix this was submitted a year ago and still nothing! As far as we don't trigger tons of empty deployments, this solution should work fine 👍🏼

@@ -2,6 +2,7 @@
base = "src/frontend/next/"
publish = "out"
command = "npm run build"
ignore = "/bin/false"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment above this line linking to this PR, which documents why we do this.

@HyperTHD HyperTHD added this to the 1.6 Release milestone Feb 3, 2021
chrispinkney
chrispinkney previously approved these changes Feb 3, 2021
Copy link
Contributor

@chrispinkney chrispinkney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

birtony
birtony previously approved these changes Feb 3, 2021
humphd
humphd previously approved these changes Feb 3, 2021
@manekenpix manekenpix merged commit 16e1244 into Seneca-CDOT:master Feb 3, 2021
@manekenpix manekenpix deleted the fix-netlify-badge branch February 3, 2021 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CI/CD Continuous integration / Continuous delivery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants