Problem/Motivation
The response from Bitbucket Pipelines is not correctly validated and so deployments are never marked as complete. This causes the changelog to endlessly grow.
Steps to reproduce
1. Enable a Bitbucket Pipelines front end environment.
2. Make content changes and note that the changelog count increases.
3. Perform a deployment.
Expected Result:
Changelog clears and deployment is marked as triggered.
Actual Result:
Changelog doesn't change and a warning is displayed.
Proposed resolution
Respond correctly to the 201 CREATED response from Bitbucket.
Issue fork build_hooks-3206509
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
andycarlbergMy merge request includes another minor bug fix for deployments that are "In Progress" and didn't have a result to display. If that needs to just be separated to it's own issue, let me know. It seemed minor enough to just include.
Comment #4
larowlanWe should be able to write a kernel test for this.
See
\Drupal\Tests\build_hooks\Kernel\BuildHooksKernelTestBase::assertFrontendEnvironmentBuildHookfor an example of how that would look, you could mimic both the success and the fail.Comment #5
andycarlbergAdded the Kernel test. The test also uncovered incorrect names in the schema file so I updated those accordingly.
Comment #7
larowlanNice catch, kernel tests++
this will go out as 3.0.1