-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove/update lines causing build failures #8009
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
Conversation
Some interesting notes:
Sphinx 1.3 Behavior Sphinx 1.4 Behavior
Sphinx 1.5 Behavior
Where to Go From Here?
What direction do you guys want to take? Any thoughts? |
The best option IMO would be to fix the code examples and then use Sphinx >= 1.5 to see this as soon as possible during Travis builds. |
There is one additional complication when choosing this option: warnings are thrown by As far as I can tell, there are no alternatives for This means we can't use the "turn warnings into errors" flags ( |
ab7dcdb
to
4a22ca9
Compare
4a22ca9
to
686a827
Compare
Rebased onto |
Is there anything about this PR that should be changed? We should get builds working... |
Is the |
Oh and changes to our build infrastructure should be made in the |
Yes, the |
@@ -254,7 +254,6 @@ to specify a tag that contains the template: | ||
<tag name="data_collector" | ||
template="data_collector/template.html.twig" | ||
id="app.request_collector" | ||
<!-- priority="300" --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should now be added as a comment before the tag
element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated as requested.
a10e9c3
to
18ee5e2
Compare
Ok; split out build environment changes into #8030 and squashed commits here with requested changes. |
…frawley) This PR was merged into the 2.7 branch. Discussion ---------- Fix and align travis and platform build environments This pull request fixes the `platform.sh` deploy and aligns the `platform.sh` and `travis-ci.org` build to use the same version constraints and environments. Per @xabbuh in #8009 (comment) this PR has been made against the `2.7` branch. Original implementation pulled from #8010 and #8009. Changes include: - Update the `pip` version requirements pulled in by [_build/.requirements.txt](https://github.com/robfrawley/symfony-docs/blob/feature-align-travis-and-platform-build/_build/.requirements.txt) to latest releases, except for `sphinx` which must be downgraded to `1.3` until we find a solution for `sphinx-php` (which there doesn't seem to be much interest in fixing: #7402 (comment), #7422, fabpot/sphinx-php#33). - Use the same package management and constraint requirements for both `platform.sh` and `travis-ci.org` by having both utilize the `_build/.requirements.txt` file when calling `pip`. - Use the same documentation build command to compile the documentation HTML (`make`) while still calling `sphinx` with "strict mode" (or, more accurately, "turn warnings into errors mode") for `travis-ci.org`. - On `platform.sh`, since the `vitrualenv` folder is at the documentation root, remove all `rst` files contained within it (pulled in from the `pip` packages) via a `find` command, so as to ensure the build doesn't pull them in (they would never appear in the output as they don't exist in the doctree, but if they contain errors or other inconsistencies, this could cause the build to fail while reading in their sources). - `find .virtualenv -type f -name "*.rst" -delete` Commits ------- 764bc37 align travis and platform build environments
Thank you @robfrawley. |
This PR was merged into the 3.3 branch. Discussion ---------- Remove/update lines causing build failures This pull request amends the invalid code blocks within the documentation to fix the build errors (both locally and on `platform.sh`). ~~Additionally, this normalizes the dependency installation and build calls executed by both `travis` and `platform.sh` so they both use the same environment to build the documentation. _This is important as currently, often one will fail while the other will succeed; this should not ever happen and they should both either fail or succeed._~~ See #8004 (comment) and #8004 (comment) for the origin story. ~~*Note: This should likely be applied to the `3.3` branch which is where the errors originate, will update the target branch once this is confirmed.*~~ Commits ------- 18ee5e2 fix invalid code lines and remove extra space
This pull request amends the invalid code blocks within the documentation to fix the build errors (both locally and on
platform.sh
).Additionally, this normalizes the dependency installation and build calls executed by bothtravis
andplatform.sh
so they both use the same environment to build the documentation. This is important as currently, often one will fail while the other will succeed; this should not ever happen and they should both either fail or succeed.See #8004 (comment) and #8004 (comment) for the origin story.
Note: This should likely be applied to the3.3
branch which is where the errors originate, will update the target branch once this is confirmed.