Fix lftools install in rtd verify job 81/63681/4
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 16 Apr 2020 04:06:56 +0000 (14:06 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 17 Apr 2020 00:27:41 +0000 (10:27 +1000)
Issue: RELENG-2846
Change-Id: I5c3cd6bf8f4af887ba00aa2e1a4d42775caac80a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-rtd-verify-7edbef07d90560cf.yaml [new file with mode: 0644]
shell/rtd-verify.sh

diff --git a/releasenotes/notes/fix-rtd-verify-7edbef07d90560cf.yaml b/releasenotes/notes/fix-rtd-verify-7edbef07d90560cf.yaml
new file mode 100644 (file)
index 0000000..d986ad1
--- /dev/null
@@ -0,0 +1,13 @@
+---
+fixes:
+  - |
+    Fix the rtd verify script failure. The script attempts to install
+    lftools dev with --user and fails on the error.
+
+    Error:
+
+      [Errno 13] Permission denied: '/usr/local/lib/python3.6'
+
+    This code is actually required when a new commands are added to lftools,
+    the docs verify job needs to run the new command and install dev version
+    lftools version.
index 86254a1..a1b1330 100644 (file)
@@ -30,9 +30,14 @@ fi
 git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
 git submodule update
 
+
+# When a new commands are added in lftools, the docs verify job needs to
+# run the new command which requires installing the lftools dev version
 if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then
-    # Install patchset lftools
-    python3 -m pip install --user -e .
+    # shellcheck disable=SC1090
+    source ~/lf-env.sh
+    lf-activate-venv pip
+    pip install -e .
 fi
 
 echo "---> Generating docs"