You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/03/28 17:35:01 UTC

[GitHub] [flink-statefun] sjwiesman opened a new pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step

sjwiesman opened a new pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79
 
 
   The python walkthrough is based on the python greeter example and includes skeleton code to quickly get started. Python does not have an equivalent to maven archetype so I wanted to provide a zip download.
   
   I just realized that the link on master and rc3 is broken because the .gitignore does not allow zip files. I'm also don't think we can include the zip due to requirements not to ship binary files (but please correct me if I'm wrong here).
   
   The best solution I could come up with was a bash file `./downloads/copy-walkthrough-distribution.sh` the copies the `statefun-examples/statefun-greeter-python` and modifies certain files, and then a Jekyll plugin that creates the zip file as a build step. 
   
   I am happy for suggestions if someone has a better idea of how to do this. 
   
   cc @tzulitai 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#issuecomment-605554070
 
 
   After some time thinking about this, I think we probably shouldn’t rush adding the zip dist building as a Maven build step.
   
   The problem is: every time you do a `mvn clean package`, it generates a git diff with the regenerated zip file, even if the contents are actually identical. It’ll be a bit confusing.
   
   We could add that build step behind a Maven profile that developers have to enable to build the doc walkthrough dists, but that’s almost the same work for devs as just manually executing the script.
   
   For now, lets proceed like so:
   - Only generate the wallthrough zip in the docs buildbot (using the new `docs/download/create-walkthrough.sh`) and have that published with the docs. That’s the only time it’ll really be needed to be checked for an update, anyways. When building the docs locally, that download link will be broken, but I think that’s fine for now.
   - That means I’ll be removing the Maven build step + zip from the repo + remain excluded in the .gitignore.
   - Lets revisit this once we realize we need more and more Python zip dists in the docs
   
   Sorry for the back and forth on the solution, but after some thinking I think this is the safest approach to take first.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#issuecomment-605554070
 
 
   After some time thinking about this, I think we probably shouldn’t rush adding the zip dist building as a Maven build step.
   
   The problem is: every time you do a `mvn clean package`, it generates a git diff with the regenerated zip file, even if the contents are actually identical. It’ll be a bit confusing.
   
   We could add that build step behind a Maven profile that developers have to enable to build the doc walkthrough dists, but that’s almost the same work for devs as just manually executing the script.
   
   For now, lets proceed like so:
   - Only generate the wallthrough zip in the docs buildbot (using the new `tools/docs/create_python_walkthrough.sh`) and have that published with the docs. That’s the only time it’ll really be needed to be checked for an update, anyways. When building the docs locally, that download link will be broken, but I think that’s fine for now.
   - That means I’ll be removing the Maven build step + zip from the repo + remain excluded in the .gitignore.
   - Lets revisit this once we realize we need more and more Python zip dists in the docs
   
   Sorry for the back and forth on the solution, but after some thinking I think this is the safest approach to take first.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai edited a comment on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#issuecomment-605554070
 
 
   After some time thinking about this, I think we probably shouldn’t rush adding the zip dist building as a Maven build step.
   
   The problem is: every time you do a `mvn clean package`, it generates a git diff with the regenerated zip file, even if the contents are actually identical. It’ll be a bit confusing.
   
   We could add that build step behind a Maven profile that developers have to enable to build the doc walkthrough dists, but that’s almost the same work for devs as just manually executing the script.
   
   For now, lets proceed like so:
   - Only generate the wallthrough zip in the docs buildbot (using the old `docs/download/build-walkthrough.sh`) and have that published with the docs. That’s the only time it’ll really be needed to be checked for an update, anyways. When building the docs locally, that download link will be broken, but I think that’s fine for now.
   - That means I’ll be removing the Maven build step + zip from the repo + remain excluded in the .gitignore.
   - Lets revisit this once we realize we need more and more Python zip dists in the docs
   
   Sorry for the back and forth on the solution, but after some thinking I think this is the safest approach to take first.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] sjwiesman commented on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
sjwiesman commented on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#issuecomment-605653039
 
 
   Sounds good, thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai closed pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai closed pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai commented on a change in pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai commented on a change in pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#discussion_r399735561
 
 

 ##########
 File path: tools/releasing/update_branch_version.sh
 ##########
 @@ -77,6 +77,9 @@ perl -pi -e "s#version_title: \"$OLD_VERSION\"#version_title: \"$NEW_VERSION\"#"
 find . -name 'Dockerfile*' -type f -exec perl -pi -e "s#FROM flink-statefun:$OLD_VERSION#FROM flink-statefun:$NEW_VERSION#" {} \;
 perl -pi -e "s#VERSION_TAG=$OLD_VERSION#VERSION_TAG=$NEW_VERSION#" tools/docker/build-stateful-functions.sh
 
+# Rebuild python walkthrough dist with updated versions
+./../docs/create_python_walkthrough.sh
 
 Review comment:
   This should be the relative path from project root:
   ```suggestion
   tools/docs/create_python_walkthrough.sh
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai commented on a change in pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai commented on a change in pull request #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#discussion_r399734879
 
 

 ##########
 File path: statefun-examples/statefun-python-greeter/pom.xml
 ##########
 @@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>statefun-parent</artifactId>
 
 Review comment:
   this should be `statefun-examples`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink-statefun] tzulitai commented on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step

Posted by GitBox <gi...@apache.org>.
tzulitai commented on issue #79: [FLINK-16730][docs] Add walkthrough distribution as build step
URL: https://github.com/apache/flink-statefun/pull/79#issuecomment-605554070
 
 
   After some time thinking about this, I think we probably shouldn’t rush adding the zip dist building as a Maven build step.
   
   The problem is: every time you do a `mvn clean package`, it generates a git diff with the regenerated zip file, even if the contents are actually identical. It’ll be a bit confusing.
   
   We could add that build step behind a Maven profile that developers have to enable to build the doc walkthrough dists, but that’s almost the same work for devs as just manually executing the script.
   
   For now, lets proceed like so:
   - Only generate the wallthrough zip in the docs buildbot and have that published with the docs. That’s the only time it’ll really be needed to be checked for an update, anyways. When building the docs locally, that download link will be broken, but I think that’s fine for now.
   - That means I’ll be removing the Maven build step + zip from the repo + remain excluded in the .gitignore.
   - Lets revisit this once we realize we need more and more Python zip dists in the docs
   
   Sorry for the back and forth on the solution, but after some thinking I think this is the safest approach to take first.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services