← 输入框|github.com|刷新
Skip to content

Archive OpenJDK builds from AdoptOpenjdk CI #687

Open

Description

@JakubVanek

It is necessary to archive the following builds:

  • JDK9
  • JDK10
  • JDK11
  • JDK12
  • JDK13
  • JDK14
  • JDK15

Activity

  1. self-assigned this
    on Sep 25, 2019
  2. JakubVanek commented on Sep 25, 2019

    @JakubVanek
    ContributorAuthor

    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'
    
  3. JakubVanek commented on Sep 25, 2019

    @JakubVanek
    ContributorAuthor

    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.

  4. JakubVanek commented on Sep 25, 2019

    @JakubVanek
    ContributorAuthor

    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)

  5. added this to the v1.1.0 milestone on Dec 2, 2019
  6. modified the milestones: v1.1.0, v1.0.0 on May 9, 2020
  7. changed the title [-]Archive JDK9 & JDK10 builds[/-] [+]Archive JDK9, JDK10, JDK11, JDK12, JDK13, JDK14, JDK15 builds[/+] on Nov 29, 2020
  8. jabrena commented on Dec 8, 2020

    @jabrena
    Member

    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
    
  9. jabrena commented on Dec 27, 2020

    @jabrena
    Member

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

  10. changed the title [-]Archive JDK9, JDK10, JDK11, JDK12, JDK13, JDK14, JDK15 builds[/-] [+]Archive OpenJDK builds from AdoptOpenjdk CI[/+] on Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions