★ wanayoo — archive 1999 https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/687Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive OpenJDK builds from AdoptOpenjdk CI #687

Open
JakubVanek opened this issue Sep 13, 2019 · 5 comments
Open

Archive OpenJDK builds from AdoptOpenjdk CI #687

JakubVanek opened this issue Sep 13, 2019 · 5 comments

Comments

@JakubVanek
Copy link
Contributor

@JakubVanek JakubVanek commented Sep 13, 2019

It is necessary to archive the following builds:

  • JDK9
  • JDK10
  • JDK11
  • JDK12
  • JDK13
  • JDK14
  • JDK15
@JakubVanek
Copy link
Contributor Author

@JakubVanek JakubVanek commented Sep 25, 2019

Using Git directly is not possible.

root@scw-zen-feynman:~/openjdk-ev3-archive# git push fork master
Warning: Permanently added the RSA host key for IP address '140.82.118.3' to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa': 
Counting objects: 19, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 907.75 MiB | 4.38 MiB/s, done.
Total 19 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), done.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: d1180c81c8bdff16a03c2ac7a6f00210
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File stretch-jdk10/jdk-ev3.tar.gz is 193.83 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File stretch-jdk10/jmods-ev3.tar.gz is 154.28 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File stretch-jdk10/jri-ev3.tar.gz is 113.50 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File stretch-jdk9/jdk-ev3.tar.gz is 189.79 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File stretch-jdk9/jmods-ev3.tar.gz is 149.85 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File stretch-jdk9/jri-ev3.tar.gz is 108.32 MB; this exceeds GitHub's file size limit of 100.00 MB
To github.com:JakubVanek/openjdk-ev3-archive
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:JakubVanek/openjdk-ev3-archive'
@JakubVanek JakubVanek assigned jabrena and unassigned JakubVanek Sep 25, 2019
@JakubVanek
Copy link
Contributor Author

@JakubVanek JakubVanek commented Sep 25, 2019

I think it should be possible to use GitHub releases. However with them I can't create a PR and I don't have write access to the repository, so I can't do the upload.

@JakubVanek
Copy link
Contributor Author

@JakubVanek JakubVanek commented Sep 25, 2019

Debian packages: https://drive.google.com/drive/folders/187hS5iBhUrILgcY8MhKWJ4BX0IT8jtZg?usp=sharing
(I think it would be nice to upload them alongside the tar.gz archives)

@jabrena jabrena added this to the v1.1.0 milestone Dec 2, 2019
@jabrena jabrena modified the milestones: v1.1.0, v1.0.0 May 9, 2020
@jabrena jabrena changed the title Archive JDK9 & JDK10 builds Archive JDK9, JDK10, JDK11, JDK12, JDK13, JDK14, JDK15 builds Nov 29, 2020
@jabrena
Copy link
Member

@jabrena jabrena commented Dec 8, 2020

POC In progress for OpenJDK9:

#!/bin/bash

echo "Downloading artifacts for OpenJDK 9 Stretch"
wget https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/job/stretch-9/lastSuccessfulBuild/artifact/build/jdk-ev3.tar.gz
wget https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/job/stretch-9/lastSuccessfulBuild/artifact/build/jmods-ev3.tar.gz
wget https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/job/stretch-9/lastSuccessfulBuild/artifact/build/jri-ev3.tar.gz
wget https://ci.adoptopenjdk.net/view/ev3dev/job/eljbuild/job/stretch-9/lastSuccessfulBuild/artifact/build/metadata

echo "Splitting jdk-ev3.tar.gz"
split -b 50m jdk-ev3.tar.gz "jdk-ev3.tar.gz.part."
cat jdk-ev3.tar.gz.part.* > new-jdk-ev3.tar.gz
tar -xf new-jdk-ev3.tar.gz
cmp jdk-ev3.tar.gz new-jdk-ev3.tar.gz

echo "Splitting jmods-ev3.tar.gz"
split -b 50m jmods-ev3.tar.gz "jmods-ev3.tar.gz.part."
cat jmods-ev3.tar.gz.part.* > new-jmods-ev3.tar.gz
tar -xf new-jmods-ev3.tar.gz
cmp jmods-ev3.tar.gz new-jmods-ev3.tar.gz

echo "Splitting jri-ev3.tar.gz"
split -b 50m jri-ev3.tar.gz "jri-ev3.tar.gz.part."
cat jri-ev3.tar.gz.part.* > new-jri-ev3.tar.gz
tar -xf new-jri-ev3.tar.gz
cmp jri-ev3.tar.gz new-jri-ev3.tar.gz

echo "Removing files"
rm -rf jdk
rm -rf jmods
rm -rf jri

rm jdk-ev3.tar.gz
rm jmods-ev3.tar.gz
rm jri-ev3.tar.gz

rm new-jdk-ev3.tar.gz
rm new-jmods-ev3.tar.gz
rm new-jri-ev3.tar.gz
@jabrena
Copy link
Member

@jabrena jabrena commented Dec 27, 2020

A better way without any process to split files:
https://github.com/ev3dev-lang-java/openjdk-ev3/releases/tag/openjdk9

@jabrena jabrena changed the title Archive JDK9, JDK10, JDK11, JDK12, JDK13, JDK14, JDK15 builds Archive OpenJDK builds from AdoptOpenjdk CI Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.