Git Product home page Git Product logo

diploma-code's Introduction

Additional automation scripts for OpenJDK Updates project

This repository contains several useful bash scripts to make backporting for OpenJDK project easier

To run those you'd need:

* bash
* curl
* jq
* git
* Github PAT

Description

All scripts utilise and rely on established OpenJDK Project's development processes, naming conventions and services' APIs and should not be considered general-use tools.

backport.sh <JDK_ISSUE_ID> - tries to find and backport issue JDK-<JDK_ISSUE_ID> to the current git repo. Uses other scripts below to find issues that the given one depends on.

check-copyright.sh <JDK_MAIN_COMMIT> - if a merge conflict arises while running backport.sh, this script checks that the only changes left unmerged are Copyright notices in files and does git cherry-pick -X theirs if that's the case

get-prev-changes.sh <JDK_MAIN_COMMIT> <JDK_REPO_PATH> - in case of a merge conflict, check JDK which JDK main repo commits changed conflicted lines and suggest those commits/issues as dependencies

get-issue-deps.sh <JDK_ISSUE_ID> - checks if Pull Request for a given issue has a dependency which need to go in first

Example

In your local copy of jdk17u-dev run:

git checkout 18c4c253b38 # go to commit without changes being backported
export GH_PAT='<your_github_pat>'
./backport.sh 8269404 # has conflits, successfully finds JDK-8268276 as a dependency

git reset --hard # need to remove conflict
./backport.sh 8268276
./backport.sh 8269404 # now applying cleanly

diploma-code's People

Contributors

roru avatar

Watchers

 avatar

Forkers

antonkozlov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.