Skip to content

Contracts Update Comparison #1

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

Open
wants to merge 767 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
767 commits
Select commit Hold shift + click to select a range
6c4a6c2
update pipeline.jsonc
Oct 7, 2019
bbd1d34
Merge pull request #350 from EOSIO/bump_version
arhag Oct 7, 2019
ca5afe9
Update the README.md build section
Oct 18, 2019
000d101
Merge branch 'develop' of github.com:EOSIO/eosio.contracts into docs/…
Oct 18, 2019
15ba163
clean up README.md, the referenced build section has the after build …
Oct 18, 2019
222907a
change pronoun in buyrex Ricardian summary
arhag Oct 19, 2019
c518578
change pronoun in buyrex Ricardian summary
arhag Oct 19, 2019
088c00a
change pronoun in buyrex Ricardian summary
arhag Oct 19, 2019
bdd14c0
Merge pull request #353 from EOSIO/system-ricardian-pronoun-1.8
arhag Oct 19, 2019
5cd84c7
Merge pull request #354 from EOSIO/system-ricardian-pronoun-1.9
arhag Oct 19, 2019
509a1d9
Merge pull request #355 from EOSIO/system-ricardian-pronoun-develop
arhag Oct 19, 2019
ac48222
Merge branch 'develop' of github.com:EOSIO/eosio.contracts into docs/…
Oct 22, 2019
cf5db63
update the token issue guide since now the token can be issued only t…
Oct 22, 2019
2f71085
correct problems introduced after merging with develop branch and res…
Oct 23, 2019
fdddaff
update the compile/build steps to include compilation of the tests as…
Oct 24, 2019
6694574
Fix for broken test metrics.
scottarnette Oct 24, 2019
09ff0ec
Fix for broken test metrics.
scottarnette Oct 24, 2019
cae5684
Merge pull request #359 from EOSIO/cicd-metrics-fix-r1.8
scottarnette Oct 25, 2019
314e8e8
Merge pull request #360 from EOSIO/cicd-metrics-fix-r1.9
scottarnette Oct 25, 2019
a013b9f
update documentation and code annotations
Oct 28, 2019
45731a4
correct the wrong dependencies
Oct 28, 2019
f7d0f70
correction for parts which not supposed to be in 1.8.x but in 1.9.x only
Oct 28, 2019
bf597f0
add missing precondition and wrong referenced source file in comments
Oct 28, 2019
adbbc66
Remove documentation from private functions
dskvr Oct 29, 2019
b816cc4
remove documentation from private method
dskvr Oct 29, 2019
418c654
Remove private methods and struct documentation for first iteration, …
dskvr Oct 29, 2019
2410224
Re-do the three tutorials to not have reference to cleos documentatio…
Oct 31, 2019
3219299
clean up one remaining TO DO.
Oct 31, 2019
f81c087
Take care of the last 4 TO DOs
Oct 31, 2019
66f6ea2
Remove documentation from private functions, private structs.
Oct 31, 2019
d1cf46b
final touches: use build everywhere instead of a mix of build and com…
Oct 31, 2019
f50526c
final touches: use build everywhere instead of a mix of build and com…
Oct 31, 2019
3f382c0
Do not provide documentation for get_core_symbol during this release.
dskvr Nov 1, 2019
7c3e333
Merge pull request #365 from EOSIO/docs/starter-1.8.x
arhag Nov 4, 2019
d0f979a
bump version to v1.8.0
arhag Nov 4, 2019
824f49e
Merge pull request #367 from EOSIO/bump-version-to-1.8.0
arhag Nov 4, 2019
a904dcc
Merge branch 'master' into merge-release-1.8.0-to-master
arhag Nov 4, 2019
c86ec43
Merge pull request #368 from EOSIO/merge-release-1.8.0-to-master
arhag Nov 4, 2019
4292fc1
Do not provide documentation for get_core_symbol during this release.
dskvr Nov 1, 2019
1f6751d
Merge pull request #356 from EOSIO/docs/starter
arhag Nov 6, 2019
d76c92c
Fix for determining eosio and cdt versions required for forked PRs.
scottarnette Nov 6, 2019
1b81cfd
Fix for determining eosio and cdt versions required for forked PRs.
scottarnette Nov 6, 2019
b4d0ed1
Determine EOSIO version same way as CDT.
scottarnette Nov 6, 2019
47cf265
Determine EOSIO version same way as CDT.
scottarnette Nov 6, 2019
1a2ba3f
Merge pull request #373 from EOSIO/cicd-fork-fix-r1.9
scottarnette Nov 6, 2019
8004ba7
Merge pull request #374 from EOSIO/cicd-fork-fix-r1.8
scottarnette Nov 6, 2019
f9a6dea
gke -> eks
Nov 7, 2019
0cab412
gke -> eks
Nov 7, 2019
44c532b
gke -> eks
Nov 7, 2019
1c9029c
testers
Nov 7, 2019
6a0df58
testers
Nov 7, 2019
c5432c0
testers
Nov 7, 2019
e32ad4a
removed eks file
Nov 7, 2019
c9e719c
Merge pull request #379 from EOSIO/1.9.x-gke-to-eks
scottarnette Nov 7, 2019
83c4d1e
Merge pull request #378 from EOSIO/1.8.x-gke-to-eks
scottarnette Nov 7, 2019
56483d0
Merge pull request #375 from EOSIO/master-gke-to-eks
arhag Nov 8, 2019
81104b0
use authorization of bidder for bidrefund deferred transaction
arhag Nov 11, 2019
e71acbe
use authorization of bidder for bidrefund deferred transaction
arhag Nov 11, 2019
428217d
bump version to v1.8.1
arhag Nov 12, 2019
3aaca27
Merge pull request #382 from EOSIO/bidrefund-authorization-1.8
arhag Nov 12, 2019
1e9f96f
Merge pull request #383 from EOSIO/bidrefund-authorization-1.9
arhag Nov 12, 2019
ee98a92
bump version to v1.9.0-rc2
arhag Nov 12, 2019
cae6d1e
Merge pull request #387 from EOSIO/bump-version-to-1.8.1
arhag Nov 12, 2019
54d55bb
Merge pull request #388 from EOSIO/bump-version-to-1.9.0-rc2
arhag Nov 12, 2019
ae95cf6
Merge branch 'master' into merge-release-1.8.1-to-master
arhag Nov 12, 2019
897d88c
Merge pull request #389 from EOSIO/merge-release-1.8.1-to-master
arhag Nov 12, 2019
533233b
avoid updating total_activated_stake after activation
arhag Nov 30, 2019
61436b0
avoid updating total_activated_stake after activation
arhag Nov 30, 2019
2882f5e
bump version to v1.8.2
arhag Dec 2, 2019
2dc0c72
bump version to v1.9.0-rc3
arhag Dec 2, 2019
bff1694
Merge pull request #399 from EOSIO/activation-robustness-1.8
arhag Dec 2, 2019
2c3d5c7
Merge pull request #400 from EOSIO/activation-robustness-1.9
arhag Dec 2, 2019
cc51898
Merge pull request #403 from EOSIO/bump-version-to-1.8.2
arhag Dec 2, 2019
2dcf59d
Merge pull request #404 from EOSIO/bump-version-to-1.9.0-rc3
arhag Dec 2, 2019
85b3ff4
Merge branch 'master' into merge-release-1.8.2-to-master
arhag Dec 2, 2019
79f63ad
Merge pull request #405 from EOSIO/merge-release-1.8.2-to-master
arhag Dec 2, 2019
1029e1d
REX changes - initial commit
zorba80 Nov 13, 2019
4507d1b
REX changes
zorba80 Nov 15, 2019
44f5884
Changes to REX return buckets
zorba80 Nov 19, 2019
be37597
REX changes testing
zorba80 Nov 19, 2019
d6de1a5
REX changes testing - 2
zorba80 Nov 21, 2019
43861c6
REX changes - fix unit tests
zorba80 Nov 28, 2019
6b6898c
REX changes - distribute ramfee and namebids
zorba80 Nov 29, 2019
048753c
REX changes - more testing
zorba80 Dec 2, 2019
2c91b6d
REX changes - unlent lower bound
zorba80 Dec 2, 2019
07584f7
REX changes - use microseconds instead of seconds
zorba80 Dec 2, 2019
e7b7b0c
REX changes - comments
zorba80 Dec 2, 2019
854a623
REX changes - time interval between REX pool updates
zorba80 Dec 9, 2019
4ef78d7
REX changes - larryk85's PR review
zorba80 Dec 9, 2019
798a329
REX changes - arhag's PR review
zorba80 Dec 10, 2019
dbf8c45
REX changes - tests
zorba80 Dec 11, 2019
77c5b9a
REX changes - updated comments
zorba80 Dec 11, 2019
d53d2d8
REX changes - additional checks
zorba80 Dec 11, 2019
05f75e9
REX changes - fix build issues
zorba80 Dec 11, 2019
5a5854e
REX changes - fix build issues
zorba80 Dec 12, 2019
23b6938
REX changes - tests
zorba80 Dec 12, 2019
46a5bd7
REX changes - tests
zorba80 Dec 12, 2019
a1b28f0
REX changes - code cleaning
zorba80 Dec 12, 2019
01e941e
REX changes - initial commit
zorba80 Nov 13, 2019
5348617
REX changes
zorba80 Nov 15, 2019
1a998d4
Changes to REX return buckets
zorba80 Nov 19, 2019
c255aa8
REX changes testing
zorba80 Nov 19, 2019
9f9e62d
REX changes testing - 2
zorba80 Nov 21, 2019
457d0ad
REX changes - fix unit tests
zorba80 Nov 28, 2019
bfe33f3
REX changes - distribute ramfee and namebids
zorba80 Nov 29, 2019
72e5836
REX changes - more testing
zorba80 Dec 2, 2019
a9895b9
REX changes - unlent lower bound
zorba80 Dec 2, 2019
2fa92a3
REX changes - use microseconds instead of seconds
zorba80 Dec 2, 2019
300e007
REX changes - comments
zorba80 Dec 2, 2019
8d6760b
REX changes - time interval between REX pool updates
zorba80 Dec 9, 2019
a78e2ee
REX changes - larryk85's PR review
zorba80 Dec 9, 2019
bed60a9
REX changes - arhag's PR review
zorba80 Dec 10, 2019
e1dfd52
REX changes - tests
zorba80 Dec 11, 2019
c7a62d7
REX changes - updated comments
zorba80 Dec 11, 2019
d9ccc22
REX changes - additional checks
zorba80 Dec 11, 2019
8759a62
REX changes - fix build issues
zorba80 Dec 11, 2019
e3d637b
REX changes - fix build issues
zorba80 Dec 12, 2019
705462c
REX changes - tests
zorba80 Dec 12, 2019
3647ed9
REX changes - tests
zorba80 Dec 12, 2019
b3cf026
REX changes - code cleaning
zorba80 Dec 12, 2019
2f5e46c
REX changes - arhag's PR review
zorba80 Dec 13, 2019
282534d
REX changes - arhag's PR review
zorba80 Dec 13, 2019
f98a233
Merge pull request #412 from EOSIO/rex-changes-3
zorba80 Dec 13, 2019
988bb42
Merge pull request #413 from EOSIO/rex-changes-4
zorba80 Dec 13, 2019
9f491b9
bump version to v1.8.3
arhag Dec 16, 2019
5905369
bump version to v1.9.0-rc4
arhag Dec 16, 2019
aa22170
Merge pull request #415 from EOSIO/bump-version-to-1.8.3
arhag Dec 16, 2019
51d06ae
Merge pull request #416 from EOSIO/bump-version-to-1.9.0-rc4
arhag Dec 16, 2019
f985180
Merge branch 'master' into merge-release-1.8.3-to-master
arhag Dec 16, 2019
7109f00
Merge pull request #418 from EOSIO/merge-release-1.8.3-to-master
arhag Dec 16, 2019
9a5df11
resource31
tbfleming Nov 27, 2019
6994ec3
buybandwidth
tbfleming Nov 27, 2019
334ab30
buybandwidth
tbfleming Nov 27, 2019
0a158b5
buybandwidth
tbfleming Nov 27, 2019
cd03591
buybandwidth
tbfleming Nov 27, 2019
7721480
buybandwidth
tbfleming Dec 2, 2019
7244d20
rentbw
tbfleming Dec 2, 2019
db44b35
rentbw
tbfleming Dec 2, 2019
04a98eb
rentbw
tbfleming Dec 3, 2019
04cf097
rentbw
tbfleming Dec 3, 2019
3c6f582
testing
tbfleming Dec 4, 2019
e9aed5f
testing
tbfleming Dec 4, 2019
93a8c08
tests
tbfleming Dec 5, 2019
518381f
tests
tbfleming Dec 5, 2019
a02c3ef
tests
tbfleming Dec 6, 2019
07dd2d3
tests
tbfleming Dec 6, 2019
0a6ca89
Fix eosio.reserve
tbfleming Dec 6, 2019
9673ab0
fix utilization update order
tbfleming Dec 9, 2019
b86accc
Fix adjusted_utilization
tbfleming Dec 9, 2019
cc7ab52
tests
tbfleming Dec 10, 2019
1030f84
tests
tbfleming Dec 10, 2019
f87dae9
prevent weight from getting too large
tbfleming Dec 10, 2019
e5889cd
tests
tbfleming Dec 11, 2019
5b7f15e
tests
tbfleming Dec 11, 2019
21e0d9a
Missing action wrapper
tbfleming Dec 11, 2019
70e6c55
Adjust min_rent_price description
tbfleming Dec 13, 2019
21a78fe
minor changes to rentbw system
arhag Dec 17, 2019
a78cccd
move comment (with the rentbw addition) to its proper place
arhag Dec 17, 2019
fed4141
also change description of decay_secs in rentbw_state_resource to ref…
arhag Dec 17, 2019
614579b
fix typo in previous commit
arhag Dec 17, 2019
929a53a
replace calc_rentbw_price with calc_rentbw_fee
arhag Dec 18, 2019
8a56206
prefer rounding in a way that ensures fee calculation does not give a…
arhag Dec 18, 2019
b728e01
fix name of configrentbw action wrapper type
arhag Dec 18, 2019
826a6cd
add default values for rent_days, decay_secs, and exponent
arhag Dec 18, 2019
0194167
add default values for min_rent_price and target_price as well
arhag Dec 18, 2019
abb52c3
fix wrong default value for rent_days
arhag Dec 18, 2019
8328052
fix comment
arhag Dec 19, 2019
ae8230d
fix comment description of some configuration options
arhag Dec 19, 2019
92362d8
remove defaults for min_rent_price and target_price since values that…
arhag Dec 19, 2019
5fc0dac
modify fee calculation to not give advantage to very small rentals ev…
arhag Dec 19, 2019
49c6b09
rename min_rent_price to min_rent_fee
arhag Dec 19, 2019
58fb95f
use optionals rather than 0 for config parameters to signal that it s…
arhag Dec 19, 2019
9be2374
replace target_price with the more meaningful max_price; also change …
arhag Dec 20, 2019
f197467
remove unnecessary precondition comment
arhag Dec 20, 2019
2703fda
small tweaks to comments
arhag Dec 20, 2019
64cc02d
quick fix to comment
arhag Dec 20, 2019
5eb391b
bump version to v1.9.0
arhag Jan 10, 2020
e88997c
Merge pull request #427 from EOSIO/bump-version-to-1.9.0
arhag Jan 10, 2020
2b129be
Merge branch 'master' into merge-release-1.9.0-to-master
arhag Jan 10, 2020
636406b
Merge pull request #428 from EOSIO/merge-release-1.9.0-to-master
arhag Jan 10, 2020
6cdab75
Wait for CDT binary.
scottarnette Jan 17, 2020
0bba461
Merge pull request #431 from EOSIO/cicd-retry-cdt-r1.9
arhag Jan 17, 2020
3cbe918
clean up @details and other arrangements to suppot the mdjavadoc gene…
Jan 21, 2020
121aab8
Testing Actions.
scottarnette Jan 24, 2020
46eab65
Debug test step in Actions.
scottarnette Jan 24, 2020
c8e9be5
Debug test step in Actions.
scottarnette Jan 24, 2020
5b057c1
Remove Travis.
scottarnette Jan 24, 2020
429bb40
Setup to only run on forked PRs.
scottarnette Jan 27, 2020
47d0fd0
Merge pull request #443 from EOSIO/cicd-actions-r1.9
scottarnette Jan 28, 2020
1f81915
move old (v1.2.1) eosio.msig and eosio.system contracts to new locati…
arhag Jan 30, 2020
7c04200
fix block_signing_authority binary_extension bug #435
arhag Jan 31, 2020
f212718
remove wdump from test
arhag Jan 31, 2020
7c6285c
Merge pull request #446 from EOSIO/435-producer-scheduling-1.9
arhag Jan 31, 2020
42dd4af
Merge pull request #436 from EOSIO/docs/del-explicit-details
arhag Feb 3, 2020
b75481e
bump version to v1.9.1
arhag Feb 3, 2020
5a6f81f
Merge pull request #448 from EOSIO/bump-version-to-1.9.1
arhag Feb 3, 2020
39bec1b
Merge branch 'master' into merge-release-1.9.1-to-master
arhag Feb 3, 2020
f6578c4
Merge pull request #449 from EOSIO/merge-release-1.9.1-to-master
arhag Feb 3, 2020
4c41231
Spliting index.md file, the content thus moved into new sections, ind…
Feb 6, 2020
b4dd8ad
Improve environment logging. Use eosio dependency as declared.
scottarnette Feb 6, 2020
e8e9040
Merge pull request #455 from EOSIO/cicd-docker-fix-r1.9
scottarnette Feb 6, 2020
df2d5d1
Add explicit titles
Feb 7, 2020
fc3c66d
fix a few broken links in eosio.contracts documentation
Feb 11, 2020
66fccf6
correct the msig how to title
Feb 12, 2020
2d02f4f
Merge pull request #454 from EOSIO/docs/1.9.x-split-index-md
arhag Feb 13, 2020
e4ed763
Actions now recognizes when all jobs are skipped.
scottarnette Feb 24, 2020
f433801
Merge pull request #464 from EOSIO/cicd-actions-tweak-r1.9
scottarnette Feb 25, 2020
e9bd3a6
Fix reruns on forked PRs.
scottarnette Feb 26, 2020
72a6bdd
Fix missing env for Actions.
scottarnette Feb 27, 2020
a3c21e7
Merge pull request #468 from EOSIO/cicd-actions-fix-r1.9
scottarnette Feb 27, 2020
84ca63e
resolves #1
Mar 9, 2020
1a474c7
fix build and deploy link in README.md
Mar 10, 2020
f1db063
Merge pull request #477 from EOSIO/docs/fix-link-readme-1.9
lparisc Mar 11, 2020
e2e371e
Merge pull request #473 from EOSIO/docs/1.9.x-remove-readme-md
lparisc Mar 17, 2020
dd4f523
use yield function to fix tests to work with EOSIO v2.0.5 and later
arhag May 20, 2020
b144c30
fixes #481
May 27, 2020
d44e7e8
update links and clean up annotations
Feb 12, 2020
ec98a8a
fixes #491
Jun 4, 2020
d88ee1a
Merge pull request #490 from EOSIO/docs/1.9.x-improvements
lparisc Jun 4, 2020
8cca21e
Merge pull request #501 from EOSIO/use-yield-function-1.9
revl Jun 25, 2020
3c5c876
Fix compilation with CDT develop
jeffreyssmith2nd Jun 17, 2020
5bbbc65
Add missing file to CMakeLists
jeffreyssmith2nd Jun 29, 2020
a80c11f
Merge pull request #510 from EOSIO/fix/build-develop-cdt
jeffreyssmith2nd Aug 10, 2020
bd8f504
Merge remote-tracking branch 'origin/release/1.9.x' into rentbw-1.9
Aug 11, 2020
5aa8d1c
Merge pull request #512 from deckb/rentbw-1.9
tbfleming Aug 12, 2020
70c3b55
fix shell prompt and codeblocks on upgrading system contract
Sep 25, 2020
1faf34e
fix shell prompt and codeblocks on how-to create issue transfer token
Sep 25, 2020
8fa6b79
fix shell prompt and codeblocks on how-to sign multisig
Sep 25, 2020
da8ca23
fix shell prompt and codeblocks on how-to vote
Sep 25, 2020
8cd26a8
fix shell prompt and codeblocks on how-to use eosio wrap
Sep 25, 2020
204459d
Merge pull request #522 from EOSIO/docs/fix-520-1.9
lparisc Sep 26, 2020
42fd226
updates on cpu, net and ram documentation
Nov 6, 2020
a726337
Add specific info for 1.9.x
Nov 6, 2020
402af5b
Merge pull request #533 from EOSIO/docs/1.9.x-update_net_description
lparisc Nov 6, 2020
7692a8a
rename rentbw to powerup
Nov 30, 2020
280fe9e
Add configure and usage guide for powerup
Nov 30, 2020
b17f0d3
add back a comment removed in error
Nov 30, 2020
065e865
Removing the word `rent` from comments/error messages. Fixing some mi…
Dec 1, 2020
0992ba3
Correctly provide weight over the asset received. This will be more u…
Dec 1, 2020
c357f9b
Add an Overview and Processing Expired Orders section.
Dec 2, 2020
ce5588b
Remove some rental language.
Dec 2, 2020
9660a5c
Merge pull request #536 from EOSIO/powerup-rename
deckb Dec 8, 2020
4fce5da
update powerup config/install docs
Dec 8, 2020
47df52c
Merge pull request #538 from EOSIO/docs/powerup-config
deckb Dec 9, 2020
b413827
Merge pull request #541 from EOSIO/powerup-1.9
b1bart Dec 16, 2020
5fdce69
Bump version to v1.9.2
Dec 16, 2020
ecd7259
Merge branch 'master' into merge-release-1.9.2-to-master
Dec 16, 2020
adad69f
Merge pull request #542 from EOSIO/bump-version-to-1.9.2
Dec 16, 2020
5101ded
Merge branch 'release/1.9.x' into merge-release-1.9.2-to-master
Dec 16, 2020
d7bc0a5
Merge pull request #544 from EOSIO/merge-release-1.9.2-to-master
b1bart Dec 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .cicd/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
set -eo pipefail
. ./.cicd/helpers/buildkite.sh
. ./.cicd/helpers/general.sh
. ./.cicd/helpers/dependency-info.sh
mkdir -p $BUILD_DIR
DOCKER_IMAGE=${DOCKER_IMAGE:-eosio/ci-contracts-builder:base-ubuntu-18.04-$SANITIZED_EOSIO_VERSION}
if [[ "$BUILDKITE" == 'true' ]]; then
buildkite-agent meta-data set cdt-url "$CDT_URL"
buildkite-agent meta-data set cdt-version "$CDT_VERSION"
buildkite-agent meta-data set docker-image "$DOCKER_IMAGE"
else
export CDT_URL
export CDT_VERSION
export DOCKER_IMAGE
fi
ARGS=${ARGS:-"--rm -v $(pwd):$MOUNTED_DIR"}
CDT_COMMANDS="dpkg -i $MOUNTED_DIR/eosio.cdt.deb && export PATH=/usr/opt/eosio.cdt/\\\$(ls /usr/opt/eosio.cdt/)/bin:\\\$PATH"
PRE_COMMANDS="$CDT_COMMANDS && cd /root/eosio/ && printf \\\"EOSIO commit: \\\$(git rev-parse --verify HEAD). Click \033]1339;url=https://github.com/EOSIO/eos/commit/\\\$(git rev-parse --verify HEAD);content=here\a for details.\n\\\" && cd $MOUNTED_DIR/build"
BUILD_COMMANDS="cmake -DBUILD_TESTS=true .. && make -j $JOBS"
COMMANDS="$PRE_COMMANDS && $BUILD_COMMANDS"
# Test CDT binary download to prevent failures due to eosio.cdt pipeline.
INDEX='1'
echo "$ curl -sSf $CDT_URL --output eosio.cdt.deb"
while ! $(curl -sSf $CDT_URL --output eosio.cdt.deb); do
echo "ERROR: Expected CDT binary for commit ${CDT_COMMIT} from $CDT_VERSION. It does not exist at $CDT_URL!"
printf "There must be a successful build against ${CDT_COMMIT} \033]1339;url=https://buildkite.com/EOSIO/eosio-dot-cdt/builds?commit=$CDT_COMMIT;content=here\a for this package to exist.\n"
echo "Attempt $INDEX, retry in 60 seconds..."
echo ''
INDEX=$(( $INDEX + 1 ))
sleep 60
done
# retry docker pull to protect against failures due to race conditions with eosio pipeline
INDEX='1'
echo "$ docker pull $DOCKER_IMAGE"
while [[ "$(docker pull $DOCKER_IMAGE 2>&1 | grep -ice "manifest for $DOCKER_IMAGE not found")" != '0' ]]; do
echo "ERROR: Docker image \"$DOCKER_IMAGE\" not found for eosio \"$EOSIO_VERSION\""'!'
printf "There must be a successful build against ${EOSIO_VERSION} \033]1339;url=${EOSIO_BK_URL};content=here\a for this container to exist.\n"
echo "Attempt $INDEX, retry in 60 seconds..."
echo ''
INDEX=$(( $INDEX + 1 ))
sleep 60
done
# run
echo "docker run $ARGS $(buildkite-intrinsics) $DOCKER_IMAGE bash -c \"$COMMANDS\""
eval docker run $ARGS $(buildkite-intrinsics) $DOCKER_IMAGE bash -c \"$COMMANDS\"
11 changes: 11 additions & 0 deletions .cicd/helpers/buildkite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# load buildkite intrinsic environment variables for use in docker run
function buildkite-intrinsics()
{
BK_ENV=''
if [[ -f $BUILDKITE_ENV_FILE ]]; then
while read -r var; do
BK_ENV="$BK_ENV --env ${var%%=*}"
done < "$BUILDKITE_ENV_FILE"
fi
echo "$BK_ENV"
}
40 changes: 40 additions & 0 deletions .cicd/helpers/dependency-info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
set -eo pipefail
[[ "$RAW_PIPELINE_CONFIG" == '' ]] && export RAW_PIPELINE_CONFIG="$1"
[[ "$RAW_PIPELINE_CONFIG" == '' ]] && export RAW_PIPELINE_CONFIG='pipeline.jsonc'
[[ "$PIPELINE_CONFIG" == '' ]] && export PIPELINE_CONFIG='pipeline.json'
# read dependency file
if [[ -f "$RAW_PIPELINE_CONFIG" ]]; then
echo 'Reading pipeline configuration file...'
cat "$RAW_PIPELINE_CONFIG" | grep -Po '^[^"/]*("((?<=\\).|[^"])*"[^"/]*)*' | jq -c .\"eosio-dot-contracts\" > "$PIPELINE_CONFIG"
CDT_VERSION=$(cat "$PIPELINE_CONFIG" | jq -r '.dependencies."eosio.cdt"')
EOSIO_VERSION=$(cat "$PIPELINE_CONFIG" | jq -r '.dependencies.eosio')
SANITIZED_EOSIO_VERSION=$(echo $EOSIO_VERSION | sed 's/\//\_/')
else
echo 'ERROR: No pipeline configuration file or dependencies file found!'
exit 1
fi
# search GitHub for commit hash by tag and branch, preferring tag if both match
if [[ "$BUILDKITE" == 'true' ]]; then
CDT_COMMIT=$((curl -s https://api.github.com/repos/EOSIO/eosio.cdt/git/refs/tags/$CDT_VERSION && curl -s https://api.github.com/repos/EOSIO/eosio.cdt/git/refs/heads/$CDT_VERSION) | jq '.object.sha' | sed "s/null//g" | sed "/^$/d" | tr -d '"' | sed -n '1p')
EOSIO_COMMIT=$((curl -s https://api.github.com/repos/EOSIO/eos/git/refs/tags/$EOSIO_VERSION && curl -s https://api.github.com/repos/EOSIO/eos/git/refs/heads/$EOSIO_VERSION) | jq '.object.sha' | sed "s/null//g" | sed "/^$/d" | tr -d '"' | sed -n '1p')
test -z "$CDT_COMMIT" && CDT_COMMIT=$(echo $CDT_VERSION | tr -d '"' | tr -d "''" | cut -d ' ' -f 1) # if both searches returned nothing, the version is probably specified by commit hash already
test -z "$EOSIO_COMMIT" && EOSIO_COMMIT=$(echo $EOSIO_VERSION | tr -d '"' | tr -d "''" | cut -d ' ' -f 1) # if both searches returned nothing, the version is probably specified by commit hash already
else
git clone https://github.com/EOSIO/eosio.cdt && cd eosio.cdt
git pull && git checkout $CDT_VERSION
CDT_COMMIT=$(git rev-parse --verify HEAD)
cd ..
git clone https://github.com/EOSIO/eos && cd eos
git pull && git checkout $EOSIO_VERSION
EOSIO_COMMIT=$(git rev-parse --verify HEAD)
cd ..
fi
if [[ "$EOSIO_COMMIT" == "$EOSIO_VERSION" ]]; then
EOSIO_BK_URL="https://buildkite.com/EOSIO/eosio/builds?commit=${EOSIO_COMMIT}"
else
EOSIO_BK_URL="https://buildkite.com/EOSIO/eosio/builds?branch=${EOSIO_VERSION}"
fi
echo "Using eosio \"$EOSIO_VERSION\"..."
echo "Using cdt ${CDT_COMMIT} from \"$CDT_VERSION\"..."
export CDT_URL="https://eos-public-oss-binaries.s3-us-west-2.amazonaws.com/${CDT_COMMIT:0:7}-eosio.cdt-ubuntu-18.04_amd64.deb"
6 changes: 6 additions & 0 deletions .cicd/helpers/general.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export ROOT_DIR=$( dirname "${BASH_SOURCE[0]}" )/../..
export BUILD_DIR=$ROOT_DIR/build
export CICD_DIR=$ROOT_DIR/.cicd
export HELPERS_DIR=$CICD_DIR/helpers
export JOBS=${JOBS:-"$(getconf _NPROCESSORS_ONLN)"}
export MOUNTED_DIR='/workdir'
Loading