You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2021/02/26 22:34:58 UTC
[spark-website] branch asf-site updated: Capture Jekyll document
generation errors in the github action
This is an automated email from the ASF dual-hosted git repository.
srowen pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/spark-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 6f878f5 Capture Jekyll document generation errors in the github action
6f878f5 is described below
commit 6f878f5f9a36f415de2136a17505e2a63e730b07
Author: attilapiros <pi...@gmail.com>
AuthorDate: Fri Feb 26 16:34:45 2021 -0600
Capture Jekyll document generation errors in the github action
For testing purpose I have reverted a fix where a conflict was resolved (temporary change).
Warnings are filtered out as these lines are coming form Ruby:
```
/var/lib/gems/2.7.0/gems/bundler-1.17.2/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated
/var/lib/gems/2.7.0/gems/bundler-1.17.2/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated
```
Author: attilapiros <pi...@gmail.com>
Closes #316 from attilapiros/capture-jekyll-generation-errors.
---
.github/workflows/doc_gen.yml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/doc_gen.yml b/.github/workflows/doc_gen.yml
index 58c36b8..720b235 100644
--- a/.github/workflows/doc_gen.yml
+++ b/.github/workflows/doc_gen.yml
@@ -27,7 +27,15 @@ jobs:
run: |
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
- bundle exec jekyll build
+ OLD_IFS=$IFS
+ IFS=
+ GEN_ERRORS=$(bundle exec jekyll build 3>&2 2>&1 1>&3)
+ if [ $(echo $GEN_ERRORS| grep -v -e '^$'| grep -c -v "rubygems_integration") -ne 0 ]; then
+ echo "Error during document generation:"
+ echo $GEN_ERRORS
+ exit 1
+ fi
+ IFS=$OLD_IFS
CHANGED_FILE=( $(git ls-files --modified --other --exclude-standard --directory | grep -v sitemap.xml) )
if [ ${#CHANGED_FILE[@]} -ne 0 ]; then
echo "Not all documentation was generated and/or not the right Jekyll version was used! Modified / untracked files (excluding sitemap.xml):"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org