Kamil Śliwak
22af3a555a
Merge pull request #10736 from BinacsLee/binacs-update-install-deps
...
[scripts/install_deps.sh] support MacOS Big Sur
2021-01-12 09:57:11 +01:00
Kamil Śliwak
085f88d349
Create unit tests for prepare_report.py
2021-01-11 17:06:59 +01:00
Kamil Śliwak
6628f19fd8
Modernize prepare_report.py and make it easier to extend
...
- Add argument parser
- Add type annotations
- Use pathlib
- Split into functions
- Use dataclasses to separate report data from presentation
- Provide more information if the script is interrupted
2021-01-11 17:06:59 +01:00
Kamil Śliwak
887497a406
prepare_report: Make error/missing data placeholders actually look like placeholders
2021-01-11 17:06:59 +01:00
Kamil Śliwak
fe7cc2097b
prepare_report: Report missing metadata as well
2021-01-11 17:06:59 +01:00
Kamil Śliwak
9f58f77b50
prepare_report: Unify error/missing data handling between JS and Python versions
2021-01-11 17:06:59 +01:00
Kamil Śliwak
a036cbea19
prepare_report.js: Replace var with const/let + minor cleanup
2021-01-11 17:06:59 +01:00
Kamil Śliwak
42786c2d29
Extract the script embedded in storebytecode.sh into a separate file
2021-01-11 17:06:59 +01:00
Kamil Śliwak
34e21c929a
Fix a test for unicode direction override failing because of Windows line endings
2020-12-16 15:24:41 +01:00
Kamil Śliwak
4a16b13a57
get_version.sh: Quote the ? wildcard that could otherwise break the regex in the presence of a single-letter file name
2020-12-12 07:49:54 +01:00
Kamil Śliwak
893a5b6e60
Remove unused variables
2020-12-12 06:30:57 +01:00
Kamil Śliwak
f712662a66
ASTImportTest.sh: Fix the script ignoring all but the first file from a multi-source test when testing input equivalence
2020-12-12 06:30:57 +01:00
Kamil Śliwak
81668eb26a
soltest_all: Fix an error being printed to a file called 2 rather than to stderr
2020-12-12 06:30:57 +01:00
Kamil Śliwak
ac12274acd
cmdlineTests.sh: Fix the script failing to detect that --ast option does not exist
2020-12-12 06:30:57 +01:00
Kamil Śliwak
1f2ffa99c2
cmdlineTests.sh: Fix test_solc_assembly_output including garbage in the tested output
2020-12-12 06:30:57 +01:00
Kamil Śliwak
0f6f4314b6
Fix code snippets in docs not passing tests on versions matching their pragmas
2020-12-12 04:52:16 +01:00
Kamil Śliwak
304b2fe232
docs_version_pragma_check.sh: Fail when there is no matching release
2020-12-12 04:52:16 +01:00
Kamil Śliwak
6fc45b3e02
docs_version_pragma_check.sh: Fix bad variable name making the script skip ^ and >= pragmas
2020-12-12 04:52:16 +01:00
Kamil Śliwak
784871c424
docs_version_pragma_check.sh: Get binaries from soliditylang.org, not github.io
2020-12-12 04:52:16 +01:00
Kamil Śliwak
74b5560f7e
docs_version_pragma_check.sh: Fix broken variable comparison hiding missing compiler version warnings
2020-12-12 04:51:16 +01:00
Kamil Śliwak
2481f2c6bb
common_cmdline.sh: Fix misspelled $args
2020-12-12 04:51:11 +01:00
Kamil Śliwak
747e1709ff
fixup! README describing the workflow around external tests and their repositories
2020-12-10 19:53:49 +01:00
Kamil Śliwak
12418c533b
fixup! README describing the workflow around external tests and their repositories
2020-12-10 19:53:49 +01:00
Kamil Śliwak
14ea1bc145
README describing the workflow around external tests and their repositories
2020-12-10 19:53:49 +01:00
Kamil Śliwak
aa3acdd7d6
Merge pull request #10500 from ethereum/restore-original-external-test-branches
...
Restore original external test branches
2020-12-09 19:26:37 +01:00
Kamil Śliwak
da2c2f4d40
Switch the external tests back to the usual branches from solidity-external-tests (080 version)
2020-12-09 18:08:12 +01:00
Kamil Śliwak
165cab9e9d
Switch the external tests back to the usual branches from solidity-external-tests
2020-12-09 17:33:13 +01:00
Kamil Śliwak
b672c2fab7
Combine the t_ems_compile_ext and t_ems_test_ext job definitions
2020-12-09 13:12:40 +01:00
Kamil Śliwak
da17150bec
Extract common parts from external job definitions into commands
2020-12-09 13:12:40 +01:00
Kamil Śliwak
a66ab1eb4e
Simplify functions for setting solc version in Truffle config
2020-12-08 16:23:37 +01:00
Kamil Śliwak
8cd6e15333
When changing compiler settings in Truffle config, always set all of them
2020-12-08 16:21:46 +01:00
Kamil Śliwak
5868eb7879
Take into account optimization level when creating initial Truffle settings for external tests
2020-12-08 16:11:17 +01:00
Kamil Śliwak
c6643712f7
Refactor truffle_run_test() to make optimizer settings reusable
2020-12-08 16:11:16 +01:00
Kamil Śliwak
609f1746c9
force_solc_settings: Stop using the outdated 'solc' key for compiler settings in truffle-config.js
...
- Settings were moved under 'compilers' in Truffle 5.0.0 and none of the projects use older Truffle.
2020-12-08 16:10:42 +01:00
Kamil Śliwak
a64a2fa186
Remove unused find_truffle_config
2020-12-08 16:10:11 +01:00
Kamil Śliwak
8edd5d4fd9
Make printError() print to stderr
2020-12-08 16:01:41 +01:00
Kamil Śliwak
e78b4af4c4
Run external tests that take more than 15 minutes only nightly and re-enable their gitter notifications
2020-12-07 20:41:46 +01:00
Kamil Śliwak
ec21fba4b7
Update to 0.8.0 versions of solidity-external-tests branches where necessary/available
2020-12-07 17:18:48 +01:00
Kamil Śliwak
d00bf35d6d
Don't run Gnosis external tests without optimization
...
- They fail because the code size exceeds 24576 bytes.
2020-12-07 17:17:57 +01:00
Kamil Śliwak
1f55e9213b
Disable flaky Gnosis v1 tests
2020-12-07 14:09:18 +01:00
Kamil Śliwak
9d1e0270cd
Bump node.js version to 12 or 14 on external test jobs where possible
2020-12-07 14:09:18 +01:00
Kamil Śliwak
c7b95e385f
external tests: Update solc-js dependencies after forcefully replacing it
...
- Otherwise it fails if the external project uses a version that is too old and does not have some newly added dependencies
2020-12-07 14:09:18 +01:00
Kamil Śliwak
0c5d3c0cdf
Add a job for executing external tests for ENS
2020-12-07 14:09:18 +01:00
Kamil Śliwak
70a2fc58b0
Add jobs and scripts running external tests for Gnosis v2
2020-12-07 14:09:18 +01:00
Kamil Śliwak
e05241adfc
Update Colony, Gnosis and OpenZeppelin external tests to run on updated 0.7.x branches from solidity-external-tests
2020-12-07 14:09:18 +01:00
Kamil Śliwak
45c506a4ff
Stop running external tests twice in CI
2020-12-07 14:00:14 +01:00
Kamil Śliwak
f737f66196
Temporarily disable gitter notifications for external tests
2020-12-07 14:00:14 +01:00
Kamil Śliwak
5b6e1560b3
Enable Colony, Gnosis and OpenZeppelin external tests in the main CI workflow
2020-12-07 14:00:14 +01:00
Kamil Śliwak
4d76e22439
Remove the option for forcing ABIv2 from external tests
2020-12-07 13:55:57 +01:00
Kamil Śliwak
6383d64ef4
Upgrade the CircleCI job running bytecode comparison from node.js 10 to 14
2020-12-04 23:40:19 +01:00
Kamil Śliwak
3619a0a0f4
Merge pull request #10464 from ethereum/enable-shellcheck-for-external-test-scripts
...
Enable shellcheck for external test scripts
2020-12-04 18:56:09 +01:00
Kamil Śliwak
55ccfc32f5
Remove external test scripts from shellcheck ignores
2020-12-03 22:17:44 +01:00
Kamil Śliwak
8080be9445
external test scripts: Replace global $SOLJSON variable with a parameter
2020-12-03 22:17:44 +01:00
Kamil Śliwak
fcf0538224
external test scripts: Replace global $FORCE_ABIv2 variable with a parameter
2020-12-03 22:17:44 +01:00
Kamil Śliwak
a6921bc39b
external test scripts: Add missing bash shebangs
2020-12-03 22:17:44 +01:00
Kamil Śliwak
3590311e6f
external test scripts: Replace the old dollar expressions with newer variants
2020-12-03 22:17:44 +01:00
Kamil Śliwak
0a29218848
external test scripts: Quote variables properly
2020-12-03 22:17:44 +01:00
Kamil Śliwak
23a9e517e7
Force the use of latest Truffle in ENS external tests
2020-12-02 01:26:16 +01:00
Kamil Śliwak
bbf2471f64
External tests: Replace hard-coded version in force_truffle_version() with a parameter
2020-12-02 01:26:16 +01:00
Kamil Śliwak
630fcc3a1d
Define a comparator for InternalDispatchMap to ensure deterministic ordering of dispatch functions
2020-12-01 16:53:54 +01:00
Kamil Śliwak
dc57451775
Replace the command for stripping version pragmas in external tests with one that does not break on ^<=>
2020-11-30 14:25:46 +01:00
Kamil Śliwak
656cb810a4
Merge pull request #10409 from ssi91/not-serialized-json-fields
...
[BREAKING] do not serialize fields abi, devdoc, userdoc and storage-layout
2020-11-28 21:18:16 +01:00
Kamil Śliwak
887569efd5
Merge pull request #10339 from ethereum/update-circleci-config
...
[ci] .circleci/config.yml: use docker images containing hera v0.3.2.
2020-11-27 20:07:05 +01:00
Kamil Śliwak
fb01884e69
Merge pull request #10424 from ethereum/ir-modifiers
...
Add unimplemented assert for modifiers in the IR
2020-11-27 20:06:54 +01:00
Kamil Śliwak
46f638e54e
Merge pull request #10421 from ssi91/fix-getters-test
...
pass a literal with correct length
2020-11-26 23:33:24 +01:00
Kamil Śliwak
2a8cff626b
CommandLineInterface::link(): Print invalid link references to stderr
2020-11-23 20:29:45 +01:00
Kamil Śliwak
f099d48b34
CommandLineInterface::link(): Report an error if a placeholder does not have exactly four underscores
2020-11-23 20:29:45 +01:00
Kamil Śliwak
bd1989bd0b
CommandLineInterface::link(): Rename confusingly named "name" to "foundPlaceholder"
2020-11-23 20:29:45 +01:00
Kamil Śliwak
8044ea602c
installing-solidity.rst: Capitalize headers and the project name
2020-11-23 20:29:30 +01:00
Kamil Śliwak
c58341022f
installing-solidity.rst: Add a section about Static binaries and solc-bin
2020-11-23 20:29:30 +01:00
Kamil Śliwak
be5143bbec
installing-solidity.rst: Add a link to ccache
2020-11-23 20:29:30 +01:00
Kamil Śliwak
5f0372c5b8
installing-solidity.rst: Put information about macOS packages in a separate section
2020-11-23 20:29:30 +01:00
Kamil Śliwak
ed82426a2a
Merge pull request #10362 from ethereum/bytecode-comparison-remove-windows-storebytecode
...
Remove unused storebytecode.bat
2020-11-20 19:13:44 +01:00
Kamil Śliwak
fc1ade7cf6
Use modelCheckerSettings to disable SMT in bytecode comparison instead of stripping the pragmas
2020-11-20 18:53:15 +01:00
Kamil Śliwak
4cf4b03cc8
Remove unused storebytecode.bat
2020-11-20 16:13:30 +01:00
Kamil Śliwak
31a0a31c26
storebytecode.sh: Allow BUILD_DIR outside of REPO_ROOT
2020-11-20 16:12:56 +01:00
Kamil Śliwak
5560239cf5
Replace links to readthedocs.io with ones using the new domain
2020-11-18 15:20:34 +01:00
Kamil Śliwak
ced140615a
Test for calling external library functions with mapping parameters (does not work via Yul yet)
2020-11-17 20:36:58 +01:00
Kamil Śliwak
dfa0a0cdff
IR codegen: Handle address() with library type argument and external library calls
2020-11-17 20:36:39 +01:00
Kamil Śliwak
4174f38b02
StandardCompiler: Include file names in link references
2020-11-17 17:51:04 +01:00
Kamil Śliwak
9f0283df5c
Fix command-line tests using wrong file names for libraries
2020-11-17 17:50:50 +01:00
Kamil Śliwak
b7694b9a14
docs: Gather information about linker in one place and reorganize the section a bit
2020-11-16 21:37:36 +01:00
Kamil Śliwak
1ff00488bb
docs: Add information about metadata difference resulting from manual linking
2020-11-16 21:26:47 +01:00
Kamil Śliwak
aba04c7afa
docs: Remove the outdated information about linked library name length limitation
2020-11-16 21:26:47 +01:00
Kamil Śliwak
1a4d38c0ac
CommandLineInterface: Report an error if library appears multiple times in the --libraries option
2020-11-16 21:22:47 +01:00
Kamil Śliwak
ade71d58f8
Assume that enums always take 1-byte in the codegen and type system
2020-11-16 18:58:19 +01:00
Kamil Śliwak
1bf700e088
Return a type error when an enum has more than 256 members
2020-11-16 18:58:19 +01:00
Kamil Śliwak
b97c6c55ad
StandardCompiler: Don't assume that link reference always contains a colon
2020-11-16 17:41:54 +01:00
Kamil Śliwak
543f804226
StandardCompiler: Add helpers to streamline comparing link references in tests
2020-11-16 17:41:54 +01:00
Kamil Śliwak
9f67d26a1a
CommandLineInterface: Fix output directory creation for paths ending with a slash and equivalent but not equal to dot or double dot
2020-11-14 04:29:05 +01:00
Kamil Śliwak
738769db4c
cmdlineTest.sh: Fix regex for bytecode removal removing only every other piece between two references
...
- Matched fragments must not overlap for the regex to work correctly.
2020-11-14 03:18:46 +01:00
Kamil Śliwak
ed55d48727
cmdlineTests.sh: Fix buggy calculation of the number of input files
2020-11-11 13:47:36 +01:00
Kamil Śliwak
df2367848c
.editorconfig: Indentation rules for .yul
2020-11-10 23:31:05 +01:00
Kamil Śliwak
25badc4095
cmdlineTests.sh: When there's no input file assume input.sol instead of reporting an error
2020-11-10 16:55:11 +01:00
Kamil Śliwak
df8e182b46
Link binaries produced in assembly mode
2020-11-09 17:17:43 +01:00
Kamil Śliwak
6ef1e4cfd4
Command-line tests for linking in assembly mode
2020-11-09 17:17:27 +01:00
Kamil Śliwak
a0d22422b0
Command-line tests for linking in Solidity mode
2020-11-09 17:17:27 +01:00
Kamil Śliwak
06ea7c66f7
Use consistent style for stuff removed from the output of command-line tests
2020-11-09 17:17:15 +01:00
Kamil Śliwak
0e4edc8424
Strip bytecode from command-line test output but leave linker references intact
2020-11-09 17:17:15 +01:00
Kamil Śliwak
a6ef907f55
cmdlineTests.sh: Allow arbitrary extensions for input files
2020-11-09 17:10:15 +01:00