[
https://issues.apache.org/jira/browse/BEAM-6228?focusedWorklogId=176790&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-176790
]
ASF GitHub Bot logged work on BEAM-6228:
----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Dec/18 23:19
Start Date: 18/Dec/18 23:19
Worklog Time Spent: 10m
Work Description: swegner opened a new pull request #7312: [BEAM-6228]
Ensure the website can build without a git repository
URL: https://github.com/apache/beam/pull/7312
During the 2.9.0 release, we realized that the website could not be built
from the source archive because the build assumes a git environment. This
change explicitly handles the case of building outside of git.
I validated this using the following steps:
1. Download a zip archive of this branch and unzip in a new directory:
https://github.com/swegner/beam/archive/website_git.zip
a. Copy gradle wrapper files which are [excluded from
export](https://github.com/apache/beam/blob/d3fbf8059c1282fc12251538121830381dfaff6f/.gitattributes#L32).
1. From the unzipped directory, build and test the website: `./gradlew -p
website check stageWebsite --scan`
The build [now succeeds](https://gradle.com/s/qjon5mqdxh4n4) and staged
website was uploaded to
http://apache-beam-website-pull-requests.storage.googleapis.com/swegner-archive/index.html
------------------------
Follow this checklist to help us incorporate your contribution quickly and
easily:
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in
ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA
issue, if applicable. This will automatically link the pull request to the
issue.
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
It will help us expedite review of your Pull Request if you tag someone
(e.g. `@username`) to look at it.
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
--- | --- | --- | --- | --- | --- | --- | ---
Go | [](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/)
| --- | --- | --- | --- | --- | ---
Java | [](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)
[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)
Python | [](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/)
| --- | [](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)
</br> [](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Python_VR_Flink/lastCompletedBuild/)
| --- | --- | ---
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 176790)
Time Spent: 10m
Remaining Estimate: 0h
> Website build from source release fails due to git dependency
> -------------------------------------------------------------
>
> Key: BEAM-6228
> URL: https://issues.apache.org/jira/browse/BEAM-6228
> Project: Beam
> Issue Type: New Feature
> Components: website
> Reporter: Scott Wegner
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The website build assumes a git environment, and will fail if built outside
> of git. As a result, we cannot build the website from the source release.
> [~kenn] noticed this during 2.9.0 release validation. See:
> https://lists.apache.org/thread.html/dc816a5f8c82dd4d19e82666209305ec67d46440fe8edba4534f9b63@%3Cdev.beam.apache.org%3E
> {code}
> > Configure project :beam-website
> No git repository found for :beam-website. Accessing grgit will cause an NPE.
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'website/build.gradle' line: 143
> * What went wrong:
> A problem occurred evaluating project ':beam-website'.
> > Cannot get property 'branch' on null object
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)