This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from hyperledger/release-1.4
Release 1.4.4 update from upstream
- Loading branch information
Showing
196 changed files
with
4,803 additions
and
1,845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
name: Automatically Trigger Azure Pipeline | ||
jobs: | ||
trigger: | ||
name: TriggerAZP | ||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci-run') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger Build | ||
run: | | ||
author=$(jq -r ".issue.user.login" "${GITHUB_EVENT_PATH}") | ||
commenter=$(jq -r ".comment.user.login" "${GITHUB_EVENT_PATH}") | ||
org=$(jq -r ".repository.owner.login" "${GITHUB_EVENT_PATH}") | ||
pr_number=$(jq -r ".issue.number" "${GITHUB_EVENT_PATH}") | ||
project=$(jq -r ".repository.name" "${GITHUB_EVENT_PATH}") | ||
repo=$(jq -r ".repository.full_name" "${GITHUB_EVENT_PATH}") | ||
comment_url="https://api.github.com/repos/${repo}/issues/${pr_number}/comments" | ||
pr_url="https://api.github.com/repos/${repo}/pulls/${pr_number}" | ||
pr_resp=$(curl "${pr_url}") | ||
isReviewer=$(echo "${pr_resp}" | jq -r .requested_reviewers | jq -c ".[] | select(.login | contains(\"${commenter}\"))" | wc -l) | ||
if [[ "${commenter}" = "${author}" ]] || [[ "${isReviewer}" -ne 0 ]]; then | ||
sha=$(echo "${pr_resp}" | jq -r ".head.sha") | ||
az extension add --name azure-devops | ||
echo ${AZP_TOKEN} | az devops login --organization "https://dev.azure.com/${org}" | ||
runs=$(az pipelines build list --project ${project} | jq -c ".[] | select(.sourceVersion | contains(\"${sha}\"))" | jq -r .status | grep -v completed | wc -l) | ||
if [[ $runs -eq 0 ]]; then | ||
az pipelines build queue --commit-id ${sha} --project ${project} --definition-name Pull-Request | ||
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d '{"body": "AZP build triggered!"}' "${comment_url}" | ||
else | ||
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d '{"body": "AZP build already running!"}' "${comment_url}" | ||
fi | ||
else | ||
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d '{"body": "You are not authorized to trigger builds for this pull request!"}' "${comment_url}" | ||
fi | ||
env: | ||
AZP_TOKEN: ${{ secrets.AZP_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Fabric Maintainers | ||
* @ale-linux @binhn @c0rwin @christo4ferris @denyeart @guoger @JonathanLevi @jyellick @kchristidis @manish-sethi @mastersingh24 @muralisrini @sykesm @yacovm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Hyperledger Security Policy | ||
|
||
## Reporting a Security Bug | ||
|
||
If you think you have discovered a security issue in any of the Hyperledger projects, we'd love to hear from you. We will take all security bugs seriously and if confirmed upon investigation we will patch it within a reasonable amount of time and release a public security bulletin discussing the impact and credit the discoverer. | ||
|
||
There are two ways to report a security bug. The easiest is to email a description of the flaw and any related information (e.g. reproduction steps, version) to [security at hyperledger dot org](mailto:[email protected]). | ||
|
||
The other way is to file a confidential security bug in our [JIRA bug tracking system](https://jira.hyperledger.org). Be sure to set the “Security Level” to “Security issue”. | ||
|
||
The process by which the Hyperledger Security Team handles security bugs is documented further in our [Defect Response page](https://wiki.hyperledger.org/display/HYP/Defect+Response) on our [wiki](https://wiki.hyperledger.org). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
GO_VER=1.11.5 | ||
GO_VER=1.12.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr) | ||
trigger: | ||
- release-1.* | ||
pr: none | ||
|
||
variables: | ||
GOPATH: $(Agent.BuildDirectory)/go | ||
PATH: $(Agent.BuildDirectory)/go/bin:/usr/local/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | ||
GOVER: 1.12.12 | ||
|
||
jobs: | ||
- job: UnitTests | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- template: install_deps.yml | ||
- checkout: self | ||
path: 'go/src/github.com/hyperledger/fabric' | ||
displayName: Checkout Fabric Code | ||
- script: ./ci/scripts/setup_hsm.sh | ||
displayName: Install SoftHSM | ||
- script: make unit-test | ||
displayName: Run Unit Tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: RELEASE-$(Date:yyyyMMdd)$(Rev:.rrr) | ||
trigger: none | ||
pr: none | ||
|
||
variables: | ||
- group: credentials | ||
- name: GOPATH | ||
value: $(Agent.BuildDirectory)/go | ||
- name: GOVER | ||
value: 1.12.12 | ||
|
||
stages: | ||
- stage: BuildBinaries | ||
dependsOn: [] | ||
displayName: "Build Fabric Binaries" | ||
jobs: | ||
- job: Build | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
Linux-amd64: | ||
TARGET: linux-amd64 | ||
MacOS-amd64: | ||
TARGET: darwin-amd64 | ||
Windows-amd64: | ||
TARGET: windows-amd64 | ||
steps: | ||
- template: install_deps.yml | ||
- checkout: self | ||
path: 'go/src/github.com/hyperledger/fabric' | ||
displayName: Checkout Fabric Code | ||
- script: ./ci/scripts/create_binary_package.sh | ||
displayName: Compile Binary and Create Tarball | ||
- publish: release/$(TARGET)/hyperledger-fabric-$(TARGET)-$(RELEASE).tar.gz | ||
artifact: hyperledger-fabric-$(TARGET)-$(RELEASE).tar.gz | ||
displayName: Publish Release Artifact | ||
|
||
- stage: BuildAndPushDockerImages | ||
dependsOn: [] | ||
displayName: "Build and Push Fabric Docker Images" | ||
jobs: | ||
- job: Docker | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- template: install_deps.yml | ||
- checkout: self | ||
path: 'go/src/github.com/hyperledger/fabric' | ||
displayName: Checkout Fabric Code | ||
- script: ./ci/scripts/publish_docker.sh | ||
env: | ||
DOCKER_PASSWORD: $(DockerHub-Password) | ||
DOCKER_USERNAME: $(DockerHub-Username) | ||
displayName: Publish Docker Images | ||
|
||
- stage: DraftRelease | ||
displayName: "Draft GitHub Release" | ||
dependsOn: | ||
- BuildBinaries | ||
- BuildAndPushDockerImages | ||
jobs: | ||
- job: Release | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- download: current | ||
patterns: '*.tar.gz' | ||
displayName: Download Artifacts | ||
- checkout: self | ||
- task: GitHubRelease@0 | ||
inputs: | ||
action: create | ||
addChangeLog: true | ||
assets: $(Pipeline.Workspace)/*amd64*/* | ||
compareWith: lastFullRelease | ||
gitHubConnection: fabric-release | ||
isDraft: true | ||
releaseNotesFile: release_notes/v$(RELEASE).md | ||
repositoryName: $(Build.Repository.Name) | ||
releaseNotesSource: file | ||
tag: v$(RELEASE) | ||
tagSource: manual | ||
title: v$(RELEASE) | ||
displayName: Draft Release of Fabric |
Oops, something went wrong.