Repository: spark
Updated Branches:
  refs/heads/master ee1304199 -> 08ef7d718


[MINOR][R][BUILD] More reliable detection of R version for Windows in AppVeyor

## What changes were proposed in this pull request?

This PR proposes to use https://rversions.r-pkg.org/r-release-win instead of 
https://rversions.r-pkg.org/r-release to check R's version for Windows 
correctly.

We met a syncing problem with Windows release (see #15709) before. To cut this 
short, it was ...

- 3.3.2 release was released but not for Windows for few hours.
- `https://rversions.r-pkg.org/r-release` returns the latest as 3.3.2 and the 
download link for 3.3.1 becomes `windows/base/old` by our script
- 3.3.2 release for WIndows yet
- 3.3.1 is still not in `windows/base/old` but `windows/base` as the latest
- Failed to download with `windows/base/old` link and builds were broken

I believe this problem is not only what we met. Please see 
https://github.com/krlmlr/r-appveyor/commit/01ce943929993bbf27facd2cdc20ae2e03808eb4
 and also this `r-release-win` API came out between 3.3.1 and 3.3.2 (assuming 
to deal with this issue), please see 
`https://github.com/metacran/rversions.app/issues/2`.

Using this API will prevent the problem although it looks quite rare assuming 
from the commit logs in 
https://github.com/metacran/rversions.app/commits/master. After 3.3.2, both  
`r-release-win` and `r-release` are being updated together.

## How was this patch tested?

AppVeyor tests.

Author: hyukjinkwon <gurwls...@gmail.com>

Closes #18859 from HyukjinKwon/use-reliable-link.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/08ef7d71
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/08ef7d71
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/08ef7d71

Branch: refs/heads/master
Commit: 08ef7d71875378e324dd23c6d2739e606799c818
Parents: ee13041
Author: hyukjinkwon <gurwls...@gmail.com>
Authored: Tue Aug 8 23:18:59 2017 +0900
Committer: hyukjinkwon <gurwls...@gmail.com>
Committed: Tue Aug 8 23:18:59 2017 +0900

----------------------------------------------------------------------
 dev/appveyor-install-dependencies.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/08ef7d71/dev/appveyor-install-dependencies.ps1
----------------------------------------------------------------------
diff --git a/dev/appveyor-install-dependencies.ps1 
b/dev/appveyor-install-dependencies.ps1
index cf82389..a357fbf 100644
--- a/dev/appveyor-install-dependencies.ps1
+++ b/dev/appveyor-install-dependencies.ps1
@@ -26,7 +26,7 @@ Function InstallR {
   }
 
   $urlPath = ""
-  $latestVer = $(ConvertFrom-JSON $(Invoke-WebRequest 
http://rversions.r-pkg.org/r-release).Content).version
+  $latestVer = $(ConvertFrom-JSON $(Invoke-WebRequest 
http://rversions.r-pkg.org/r-release-win).Content).version
   If ($rVer -ne $latestVer) {
     $urlPath = ("old/" + $rVer + "/")
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to