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

Makefile:14: recipe for target 'istanbul' failed #121

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
c1f8d1a
[Feature Added] Recreate genesis file using existing node key informa…
Jun 20, 2018
10f7056
Upgrade images (#2)
jbhurat Nov 5, 2018
616f857
Adding quick start
fixanoid Nov 29, 2018
e9ace97
Updating vendor deps
fixanoid Dec 3, 2018
bafd246
Updating genesis items
fixanoid Dec 3, 2018
434bc39
Update .travis.yml
fixanoid Dec 3, 2018
b9349b0
Update .travis.yml
fixanoid Dec 3, 2018
308d9a0
Replace glide with go mod (#6)
trung May 6, 2019
ffc2a6f
go get won't work with go mod replace directive (#7)
trung Jun 11, 2019
881ddc9
Restore the homestead flag which was incorrectly removed previously w…
SatpalSandhu61 Aug 1, 2019
3a46922
Added the Constantinople flag and upgraded to work with quorum v2.2.4.
SatpalSandhu61 Aug 1, 2019
5d1b425
Fixed TransactionSizeLimit, added IsQuorum and changed flags to start…
SatpalSandhu61 Aug 2, 2019
e679981
Add homestead and constantinople flags (#9)
SatpalSandhu61 Aug 2, 2019
403146b
Fixing issues that were causing the Travis build to fail.
SatpalSandhu61 Aug 19, 2019
853ad1d
Merge branch 'master' into fix-travis-build
SatpalSandhu61 Aug 19, 2019
05eccd2
Corrections to module dependencies
SatpalSandhu61 Aug 19, 2019
5bdc7e7
Merge remote-tracking branch 'origin/fix-travis-build' into fix-travi…
SatpalSandhu61 Aug 19, 2019
825c0c0
Recreated go.sum to fix checksums
SatpalSandhu61 Aug 19, 2019
eaa369d
Updates to go.sum
SatpalSandhu61 Aug 19, 2019
9de6f03
Adding command line flags for node IP and port, to reduce need for ma…
SatpalSandhu61 Aug 29, 2019
fda1f21
Merge pull request #10 from SatpalSandhu61/fix-travis-build
fixanoid Aug 29, 2019
ff99ffe
Merge pull request #11 from SatpalSandhu61/add-command-line-options-f…
fixanoid Sep 6, 2019
95d6e79
readme: add download badge
trung Sep 12, 2019
2a19796
Merge pull request #12 from trung/add-download-badge
fixanoid Sep 12, 2019
e12d15d
Supporting ceil2Nby3Block config in genesis
jbhurat Dec 13, 2019
ff8b5a4
Updated quorum version to 2.4.0
jbhurat Dec 16, 2019
c8e3c10
Merge pull request #13 from jbhurat/ceil2nby3block
fixanoid Jan 6, 2020
1ed67b5
add 'address' command to extract validator address from node key hex …
trung Apr 7, 2020
2d952db
automate release binary to bintray and add docs
trung Apr 8, 2020
8357dda
Merge pull request #16 from trung/release-automation
fixanoid Apr 8, 2020
20322db
replace travis with github actions (#17)
trung Apr 8, 2020
b11b31f
simplify Github Actions 'build' workflow (#18)
trung Apr 9, 2020
a80ca18
use xcode 10.3 (#19)
trung May 21, 2020
8e195b1
Creating seperate binary for qbft consensus
jbhurat Apr 28, 2021
c0af725
reinit to use qbft consensus
jbhurat Apr 28, 2021
254b3e5
Removed docker-compose support
jbhurat Jun 4, 2021
bd4295f
Adding fork blocks to genesis
jbhurat Jun 4, 2021
3771272
Fixing github actions to build
jbhurat Jun 4, 2021
cdb7adb
Fixing MacOS build issues
jbhurat Jun 7, 2021
c8f9106
Merge pull request #22 from ConsenSys/qbft
jbhurat Jun 7, 2021
de7cfdd
Added cloudsmith support
jbhurat Jun 7, 2021
338e090
Fixing github.com/satori/go.uuid as it contained a breaking update
jbhurat Jun 10, 2021
e506c84
Merge pull request #24 from ConsenSys/fix_satori_go_uuid
jbhurat Jun 10, 2021
00d4752
Merge pull request #23 from ConsenSys/cloudsmith_migration
jbhurat Jun 14, 2021
5c1f3bb
Renaming qibftBlock fork block to qbftBlock in genesis
jbhurat Jun 16, 2021
b4d96bc
Merge pull request #25 from ConsenSys/qbft_rename
jbhurat Jun 17, 2021
db1e05c
Renaming Qbft to QBFT and updated qbftBlock fork block to testQBFTBlock
jbhurat Jul 15, 2021
c1d37a0
Merge pull request #26 from ConsenSys/rename_qbftBlock
jbhurat Jul 16, 2021
89efae1
Update quorum dependency to Consensys/quorum repository
jbhurat Aug 20, 2021
2f286e8
Merge pull request #27 from ConsenSys/update_go_mod
jbhurat Aug 23, 2021
68ede1a
Prepare for release (#28)
ricardolyn Aug 25, 2021
f4b2e09
Fix issue with release.yml
ricardolyn Aug 25, 2021
86b2f06
Updated name of upload-artifacts step to correctly reference metadata…
jbhurat Aug 25, 2021
3a74013
Merge pull request #29 from ConsenSys/fix_release
jbhurat Aug 25, 2021
6d58df5
Rename package name github.com/jpmorganchase/istanbul-tools to github…
jbhurat Sep 1, 2021
9cd9149
Running goimports
jbhurat Sep 2, 2021
1b927b9
Merge pull request #30 from ConsenSys/update_package_names
jbhurat Sep 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
181 changes: 181 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
name: Build
on: [push, pull_request]
env:
GO_VERSION: 1.15.5
jobs:
build:
name: Build on ${{ matrix.vm }}
strategy:
fail-fast: false
matrix:
vm: ["ubuntu-latest", "macos-latest"]
runs-on: ${{ matrix.vm }}
steps:
- name: 'Setup Go ${{ env.GO_VERSION }}'
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
- name: Prepare environment
id: prepare
run: |
echo "::set-output name=gopath::$(go env GOPATH)"
echo "::set-output name=key::$(go env GOOS)_$(go env GOARCH)"
echo "::set-output name=version::${GITHUB_REF##*/}"
- name: Check out project files
uses: actions/checkout@v2
- name: Cache vendor
uses: actions/cache@v1
with:
key: ${{ runner.os }}-vendor-${{ hashFiles('go.mod') }}-${{ hashFiles('go.sum') }}
path: ${{ steps.prepare.outputs.gopath }}/pkg
- name: Build
# For MacOS, We use gtar and run purge command to workaround issue
# https://github.com/actions/virtual-environments/issues/2619
id: build
run: |
make istanbul qbft
mkdir -p build/artifact
tar_file=build/artifact/istanbul-tools_${{ steps.meta.outputs.version }}_${{ steps.meta.outputs.os-arch }}.tar.gz

if [ "${{ matrix.vm }}" == "macos-latest" ]; then
sudo /usr/sbin/purge
gtar cfvz ${tar_file} -C build/bin istanbul qbft
else
tar cfvz ${tar_file} -C build/bin istanbul qbft
fi

echo "::set-output name=tar_file::${tar_file}"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: istanbul-${{ matrix.vm }}
path: build/artifact
notify:
name: Notify Slack
needs:
- build
if: always() && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Prepare Slack message
id: status
uses: actions/[email protected]
with:
script: |
////////////////////////////////////
// retrieve workflow run data
////////////////////////////////////
console.log("get workflow run")
const wf_run = await github.actions.getWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.run_id }}
})
console.log(wf_run.data)
console.log("get jobs for workflow run:", wf_run.data.jobs_url)
const jobs_response = await github.request(wf_run.data.jobs_url)
////////////////////////////////////
// build slack notification message
////////////////////////////////////
// some utility functions
var date_diff_func = function(start, end) {
var duration = end - start
// format the duration
var delta = duration / 1000
var days = Math.floor(delta / 86400)
delta -= days * 86400
var hours = Math.floor(delta / 3600) % 24
delta -= hours * 3600
var minutes = Math.floor(delta / 60) % 60
delta -= minutes * 60
var seconds = Math.floor(delta % 60)
var format_func = function(v, text, check) {
if (v <= 0 && check) {
return ""
} else {
return v + text
}
}
return format_func(days, "d", true) + format_func(hours, "h", true) + format_func(minutes, "m", true) + format_func(seconds, "s", false)
}
var status_icon_func = function(s) {
switch (s) {
case "w_success":
return ":white_check_mark:"
case "w_failure":
return ":no_entry:"
case "w_cancelled":
return ":warning:"
case "success":
return "\u2713"
case "failure":
return "\u2717"
default:
return "\u20e0"
}
}
const commit = "${{ github.sha }}".substr(0, 6)
var pr = ""
for (p of wf_run.data.pull_requests) {
pr += ",<"+ p.url + "|#" + p.number + ">"
}
if (pr != "") {
pr = "for " + pr.substr(1)
}
// build the message
var fields = []
var is_wf_success = true
var is_wf_failure = false
for (j of jobs_response.data.jobs) {
console.log(j.name, ":", j.status, j.conclusion, j.started_at, j.completed_at)
// ignore the current job running this script
if (j.status != "completed") {
continue
}
if (j.conclusion != "success") {
is_wf_success = false
}
if (j.conclusion == "failure") {
is_wf_failure = true
}
fields.push({
type: "mrkdwn",
text: status_icon_func(j.conclusion) + " <" + j.html_url + "|" + j.name + ">\n \u21b3 completed in " + date_diff_func(new Date(j.started_at), new Date(j.completed_at))
})
}
var workflow_status = "w_cancelled"
if (is_wf_success) {
workflow_status = "w_success"
} else if (is_wf_failure) {
workflow_status = "w_failure"
}
var slack_msg = {
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: "<https://github.com/${{ github.repository }}|*${{ github.repository }}*>\nfrom *${{ github.ref }}@" + commit + "*"
}
},
{
type: "section",
text: {
type: "mrkdwn",
text: status_icon_func(workflow_status) + " *${{ github.workflow }}* " + pr + "\nWorkflow run <" + wf_run.data.html_url + "|#${{ github.run_number }}> completed in " + date_diff_func(new Date(wf_run.data.created_at), new Date(wf_run.data.updated_at))
}
},
{
type: "divider"
},
{
type: "section",
fields: fields
}
]
}
return slack_msg
- name: Send to Slack
if: success()
run: |
curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} -H "Content-type: application/json" --data '${{ steps.status.outputs.result }}'
211 changes: 211 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
name: Release
on:
push:
tags:
- 'v*'
env:
GO_VERSION: 1.15.5
BINTRAY_PACKAGE: istanbul
jobs:
build:
name: Build on ${{ matrix.vm }}
strategy:
fail-fast: false
matrix:
vm: ["ubuntu-latest", "macos-latest"]
runs-on: ${{ matrix.vm }}
steps:
- name: 'Setup Go ${{ env.GO_VERSION }}'
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
- name: Extract version metadata
id: meta
run: |
echo "::set-output name=os-arch::$(go env GOOS)_$(go env GOARCH)"
echo "::set-output name=version::${GITHUB_REF##*/}"
- name: Check out project files
uses: actions/checkout@v2
- name: Build
id: build
run: |
make istanbul qbft
mkdir -p build/artifact
tar_file=build/artifact/istanbul-tools_${{ steps.meta.outputs.version }}_${{ steps.meta.outputs.os-arch }}.tar.gz

if [ "${{ matrix.vm }}" == "macos-latest" ]; then
sudo /usr/sbin/purge
gtar cfvz ${tar_file} -C build/bin istanbul qbft
else
tar cfvz ${tar_file} -C build/bin istanbul qbft
fi

echo "::set-output name=tar_file::${tar_file}"
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: ${{ steps.meta.outputs.os-arch }}
path: build/artifact
deploy-cloudsmith:
name: 'Deploy binary to Cloudsmith for ${{ matrix.goarch }}'
needs:
- build
strategy:
fail-fast: false
matrix:
goarch: [ "linux_amd64", "darwin_amd64" ]
runs-on: ubuntu-latest
steps:
- name: 'Prepare environment'
id: env
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
echo "::set-output name=version::${GITHUB_REF##*/}"
- name: 'Download artifacts'
uses: actions/download-artifact@v2
with:
path: artifact
- name: 'Upload artifacts to Cloudsmith'
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "raw"
owner: "consensys"
repo: "quorum-tools"
file: "artifact/${{ matrix.goarch }}/istanbul-tools_${{ steps.env.outputs.version }}_${{ matrix.goarch }}.tar.gz"
name: "istanbul-tools_${{ steps.env.outputs.version }}_${{ matrix.goarch }}.tar.gz"
summary: "istanbul-tools ${{ steps.env.outputs.version }} - binary distribution for ${{ matrix.goarch }}"
description: "See https://github.com/ConsenSys/istanbul-tools/"
version: "${{ steps.env.outputs.version }}"
notify:
name: Notify Slack
needs:
- build
- deploy-cloudsmith
if: always()
runs-on: ubuntu-latest
steps:
- name: Prepare Slack message
id: status
uses: actions/[email protected]
with:
script: |
////////////////////////////////////
// retrieve workflow run data
////////////////////////////////////
console.log("get workflow run")
const wf_run = await github.actions.getWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.run_id }}
})
console.log(wf_run.data)
console.log("get jobs for workflow run:", wf_run.data.jobs_url)
const jobs_response = await github.request(wf_run.data.jobs_url)
////////////////////////////////////
// build slack notification message
////////////////////////////////////
// some utility functions
var date_diff_func = function(start, end) {
var duration = end - start
// format the duration
var delta = duration / 1000
var days = Math.floor(delta / 86400)
delta -= days * 86400
var hours = Math.floor(delta / 3600) % 24
delta -= hours * 3600
var minutes = Math.floor(delta / 60) % 60
delta -= minutes * 60
var seconds = Math.floor(delta % 60)
var format_func = function(v, text, check) {
if (v <= 0 && check) {
return ""
} else {
return v + text
}
}
return format_func(days, "d", true) + format_func(hours, "h", true) + format_func(minutes, "m", true) + format_func(seconds, "s", false)
}
var status_icon_func = function(s) {
switch (s) {
case "w_success":
return ":white_check_mark:"
case "w_failure":
return ":no_entry:"
case "w_cancelled":
return ":warning:"
case "success":
return "\u2713"
case "failure":
return "\u2717"
default:
return "\u20e0"
}
}
const commit = "${{ github.sha }}".substr(0, 6)
var pr = ""
for (p of wf_run.data.pull_requests) {
pr += ",<"+ p.url + "|#" + p.number + ">"
}
if (pr != "") {
pr = "for " + pr.substr(1)
}
// build the message
var fields = []
var is_wf_success = true
var is_wf_failure = false
for (j of jobs_response.data.jobs) {
console.log(j.name, ":", j.status, j.conclusion, j.started_at, j.completed_at)
// ignore the current job running this script
if (j.status != "completed") {
continue
}
if (j.conclusion != "success") {
is_wf_success = false
}
if (j.conclusion == "failure") {
is_wf_failure = true
}
fields.push({
type: "mrkdwn",
text: status_icon_func(j.conclusion) + " <" + j.html_url + "|" + j.name + ">\n \u21b3 completed in " + date_diff_func(new Date(j.started_at), new Date(j.completed_at))
})
}
var workflow_status = "w_cancelled"
if (is_wf_success) {
workflow_status = "w_success"
} else if (is_wf_failure) {
workflow_status = "w_failure"
}
var slack_msg = {
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: "<https://github.com/${{ github.repository }}|*${{ github.repository }}*>\nfrom *${{ github.ref }}@" + commit + "*"
}
},
{
type: "section",
text: {
type: "mrkdwn",
text: status_icon_func(workflow_status) + " *${{ github.workflow }}* " + pr + "\nWorkflow run <" + wf_run.data.html_url + "|#${{ github.run_number }}> completed in " + date_diff_func(new Date(wf_run.data.created_at), new Date(wf_run.data.updated_at))
}
},
{
type: "divider"
},
{
type: "section",
fields: fields
}
]
}
return slack_msg
- name: Send to Slack
if: success()
run: |
curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} -H "Content-type: application/json" --data '${{ steps.status.outputs.result }}'
Loading