Skip to content

Commit

Permalink
[CALCITE-4856] Gradle prepareVote fails with 'not authorized'
Browse files Browse the repository at this point in the history
Solve by documenting the `Pasf.git.pushRepositoryProvider=GITBOX`
flag. Without the flag, the `prepareVote` task pulls from
`github.com`, which no longer allows password-based authentication.

Add some sample git reports reports, run using `sqlsh`.
  • Loading branch information
julianhyde committed Oct 20, 2021
1 parent 0390069 commit bf962b8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions site/_docs/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,15 @@ Before you start:
a fix version assigned (most likely the version we are
just about to release)

Generate list of contributors:
Generate a list of contributors by running the following (changing the
date literal to the date of the previous release):
```
./sqlsh -o headers "select distinct author from git_commits where author_timestamp > DATE '2021-06-03' order by 1 "
# distinct authors
./sqlsh "select distinct author from git_commits where author_timestamp > DATE '2021-06-03' order by 1"
# most prolific authors
./sqlsh "select author, count(*) from git_commits where commit_timestamp > DATE '2021-06-03' group by author order by 2"
# number of commits, distinct authors, and JIRA cases
./sqlsh "select count(*) as c, count(distinct author) as a, count(*) filter (where message like '%CALCITE-%') as j from git_commits where commit_timestamp > DATE '2021-06-03' order by 1"
```

Smoke-test `sqlline` with Spatial and Oracle function tables:
Expand Down Expand Up @@ -773,7 +779,7 @@ git clean -xn
./gradlew prepareVote -Prc=0

# Push release candidate to ASF servers
./gradlew prepareVote -Prc=0 -Pasf
./gradlew prepareVote -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITBOX
{% endhighlight %}

#### Troubleshooting
Expand Down Expand Up @@ -916,7 +922,7 @@ Remember that UTC date changes at 4 pm Pacific time.
./gradlew publishDist -Prc=0

# Publish the release to ASF servers
./gradlew publishDist -Prc=0 -Pasf
./gradlew publishDist -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITBOX
{% endhighlight %}

Svnpubsub will publish to the
Expand Down

0 comments on commit bf962b8

Please sign in to comment.