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

Implement integrity check for lists and dicts #250

Merged
merged 10 commits into from
Sep 5, 2023

Remove (wrong) test for uniqueness check for dict keys

577b8a2
Select commit
Loading
Failed to load commit list.
Merged

Implement integrity check for lists and dicts #250

Remove (wrong) test for uniqueness check for dict keys
577b8a2
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch failed Sep 4, 2023 in 9m 17s

Build Failed

The build failed, just like the previous build.

Details

This is a normal build for the feat/copy_only_attributes_2 branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has three jobs, running in parallel.

Job Python OS State
1263.1 3.8 Linux passed
1263.2 3.9 Linux passed
1263.3 3.10 Linux failed

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Bionic)
Python Versions 3.8, 3.9, 3.10
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "bionic",
  "python": [
    "3.8",
    "3.9",
    "3.10"
  ],
  "arch": [
    "arm64"
  ],
  "jobs": {
    "fast_finish": true
  },
  "before_install": [
    "pip install poetry"
  ],
  "install": [
    "poetry install"
  ],
  "script": [
    "black --check .",
    "coverage run --source=opshin -m pytest opshin/tests",
    "coverage run -a --source=opshin -m opshin eval spending examples/smart_contracts/assert_sum.py \"{\\\"int\\\": 4}\" \"{\\\"int\\\": 38}\" d8799fd8799f9fd8799fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffd8799fd8799fd87a9f581cdbe769758f26efb21f008dc097bb194cffc622acc37fcefc5372eee3ffd87a80ffa140a1401a00989680d87a9f5820dfab81872ce2bbe6ee5af9bbfee4047f91c1f57db5e30da727d5fef1e7f02f4dffd87a80ffffff809fd8799fd8799fd8799f581cdc315c289fee4484eda07038393f21dc4e572aff292d7926018725c2ffd87a80ffa140a14000d87980d87a80ffffa140a14000a140a1400080a0d8799fd8799fd87980d87a80ffd8799fd87b80d87a80ffff80a1d87a9fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffffd87980a15820dfab81872ce2bbe6ee5af9bbfee4047f91c1f57db5e30da727d5fef1e7f02f4dd8799f581cdc315c289fee4484eda07038393f21dc4e572aff292d7926018725c2ffd8799f5820746957f0eb57f2b11119684e611a98f373afea93473fefbb7632d579af2f6259ffffd87a9fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffffff\n",
    "coverage run -a --source=opshin -m opshin compile spending examples/smart_contracts/assert_sum.py > assert_sum.uplc\n",
    "coverage run -a --source=opshin -m opshin eval_uplc spending examples/smart_contracts/assert_sum.py \"{\\\"int\\\": 4}\" \"{\\\"int\\\": 38}\" d8799fd8799f9fd8799fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffd8799fd8799fd87a9f581cdbe769758f26efb21f008dc097bb194cffc622acc37fcefc5372eee3ffd87a80ffa140a1401a00989680d87a9f5820dfab81872ce2bbe6ee5af9bbfee4047f91c1f57db5e30da727d5fef1e7f02f4dffd87a80ffffff809fd8799fd8799fd8799f581cdc315c289fee4484eda07038393f21dc4e572aff292d7926018725c2ffd87a80ffa140a14000d87980d87a80ffffa140a14000a140a1400080a0d8799fd8799fd87980d87a80ffd8799fd87b80d87a80ffff80a1d87a9fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffffd87980a15820dfab81872ce2bbe6ee5af9bbfee4047f91c1f57db5e30da727d5fef1e7f02f4dd8799f581cdc315c289fee4484eda07038393f21dc4e572aff292d7926018725c2ffd8799f5820746957f0eb57f2b11119684e611a98f373afea93473fefbb7632d579af2f6259ffffd87a9fd8799fd8799f582055d353acacaab6460b37ed0f0e3a1a0aabf056df4a7fa1e265d21149ccacc527ff01ffffff\n",
    "coverage run -a --source=opshin -m opshin compile_pluto spending examples/smart_contracts/assert_sum.py\n",
    "coverage run -a --source=opshin -m opshin build spending examples/smart_contracts/assert_sum.py\n",
    "for i in $(find examples -type f -name \"*.py\" -not \\( -name \"broken*\" -o -name \"extract*\" \\)); do\n  echo \"$i\"\n  coverage run -a --source=opshin -m opshin compile any \"$i\" > /dev/null || exit\ndone\n",
    "coverage run -a --source=opshin -m opshin build spending examples/smart_contracts/parameterized.py '{\"int\": 42}'\n",
    "coverage run -a --source=opshin -m opshin build any examples/smart_contracts/dual_use.py --force-three-params\n",
    "coverage run -a --source=opshin -m opshin build any examples/smart_contracts/wrapped_token.py '{\"bytes\": \"ae810731b5d21c0d182d89c60a1eff7095dffd1c0dce8707a8611099\"}' '{\"bytes\": \"4d494c4b\"}' '{\"int\": 1000000}' --force-three-params\n",
    "test ! -n \"$(coverage run -a --source=opshin -m opshin lint any examples/smart_contracts/wrapped_token.py)\"\n",
    "test -n \"$(coverage run -a --source=opshin -m opshin lint any examples/broken.py)\"\n",
    "test -n \"$(coverage run -a --source=opshin -m opshin lint any examples/broken.py --output-format-json)\"\n",
    "coverage run -a --source=opshin -m opshin compile lib opshin/prelude.py",
    "for i in $(find opshin/std opshin/ledger -type f -name \"*.py\" ! -name \"*integrity.py\"); do\n  echo \"$i\"\n  coverage run -a --source=opshin -m opshin compile lib \"$i\" > /dev/null || exit\ndone\n"
  ],
  "after_success": [
    "coverage report",
    "coveralls"
  ]
}