Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Better guidance for what to delete.
  • Loading branch information
Marcelo Vanzin committed Jun 13, 2018
commit 58e92371ee30e3a3aea212f1a51144945e9b7a2b
29 changes: 16 additions & 13 deletions release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,28 +177,31 @@ Publishing to CRAN is done using <a href="https://cran.r-project.org/submit.html
Since it requires further manual steps, please also contact the <a href="mailto:[email protected]">PMC</a>.


<h4>Remove Old Releases from Development Repository and Mirror Network</h4>
<h4> Remove RC artifacts from repositories</h4>

Spark always keeps two releases in the mirror network: the most recent release on the current and
previous branches. To delete older versions simply use svn rm. The `downloads.js` file in the
website `js/` directory must also be updated to reflect the changes. For instance, the two
releases should be 1.1.1 and 1.0.2, but not 1.1.1 and 1.1.0.

```
$ svn rm https://dist.apache.org/repos/dist/release/spark/spark-1.1.0
```

You should also delete the RC directories from the staging repository. For example:
After the vote passes and you moved the approved RC to the release repository, you should delete
the RC directories from the staging repository. For example:

```
svn rm https://dist.apache.org/repos/dist/dev/spark/v2.3.1-rc1-bin/ \
https://dist.apache.org/repos/dist/dev/spark/v2.3.1-rc1-docs/ \
-m"Removing RC artifacts."
```

Make sure to also remove the unpublished staging repositories from the <a href="https://repository.apache.org/">Apache Nexus Repository Manager</a>.
Make sure to also remove the unpublished staging repositories from the
<a href="https://repository.apache.org/">Apache Nexus Repository Manager</a>.


<h4>Remove Old Releases from Mirror Network</h4>

Spark always keeps the latest maintance released of each branch in the mirror network.
To delete older versions simply use svn rm:

```
$ svn rm https://dist.apache.org/repos/dist/release/spark/spark-1.1.0
```

When removing older releases, also update `js/download.js` to indicate the release is not mirrored
You will also need to update `js/download.js` to indicate the release is not mirrored
anymore, so that the correct links are generated on the site.

Also take a moment to check `HiveExternalCatalogVersionsSuite.scala` starting with branch-2.2
Expand Down
26 changes: 14 additions & 12 deletions site/release-process.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,26 +376,28 @@ <h4>Publish to CRAN</h4>
<p>Publishing to CRAN is done using <a href="https://cran.r-project.org/submit.html">this form</a>.
Since it requires further manual steps, please also contact the <a href="mailto:[email protected]">PMC</a>.</p>

<h4>Remove Old Releases from Development Repository and Mirror Network</h4>
<h4> Remove RC artifacts from repositories</h4>

<p>Spark always keeps two releases in the mirror network: the most recent release on the current and
previous branches. To delete older versions simply use svn rm. The <code>downloads.js</code> file in the
website <code>js/</code> directory must also be updated to reflect the changes. For instance, the two
releases should be 1.1.1 and 1.0.2, but not 1.1.1 and 1.1.0.</p>

<pre><code>$ svn rm https://dist.apache.org/repos/dist/release/spark/spark-1.1.0
</code></pre>

<p>You should also delete the RC directories from the staging repository. For example:</p>
<p>After the vote passes and you moved the approved RC to the release repository, you should delete
the RC directories from the staging repository. For example:</p>

<pre><code>svn rm https://dist.apache.org/repos/dist/dev/spark/v2.3.1-rc1-bin/ \
https://dist.apache.org/repos/dist/dev/spark/v2.3.1-rc1-docs/ \
-m"Removing RC artifacts."
</code></pre>

<p>Make sure to also remove the unpublished staging repositories from the <a href="https://repository.apache.org/">Apache Nexus Repository Manager</a>.</p>
<p>Make sure to also remove the unpublished staging repositories from the
<a href="https://repository.apache.org/">Apache Nexus Repository Manager</a>.</p>

<h4>Remove Old Releases from Mirror Network</h4>

<p>Spark always keeps the latest maintance released of each branch in the mirror network.
To delete older versions simply use svn rm:</p>

<pre><code>$ svn rm https://dist.apache.org/repos/dist/release/spark/spark-1.1.0
</code></pre>

<p>When removing older releases, also update <code>js/download.js</code> to indicate the release is not mirrored
<p>You will also need to update <code>js/download.js</code> to indicate the release is not mirrored
anymore, so that the correct links are generated on the site.</p>

<p>Also take a moment to check <code>HiveExternalCatalogVersionsSuite.scala</code> starting with branch-2.2
Expand Down