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

Not able to complete tests in one go #1

Open
anilhelvaci opened this issue Dec 12, 2023 · 0 comments
Open

Not able to complete tests in one go #1

anilhelvaci opened this issue Dec 12, 2023 · 0 comments

Comments

@anilhelvaci
Copy link
Owner

Steps to reproduce

  1. Start docker container

     docker run --mount type=bind,src=./proposals,dst=/usr/src/proposals -it --entrypoint /usr/src/upgrade-test-scripts/start_agd.sh ghcr.io/agoric/agoric-3-proposals:main
  2. Go inside container

    docker exec -it {container_hash} bash
  3. Install dependencies

    root@06b38e3863fb:/usr/src/upgrade-test-scripts# ./install_deps.sh 64:crabble-start
  4. Go to the crabble proposal directory and run the tests

    We're not running tests using the run_eval.sh since we already have the agd running inside the container

    root@06b38e3863fb:/usr/src/upgrade-test-scripts# cd ../proposals/64\:crabble-start/
    root@06b38e3863fb:/usr/src/proposals/64:crabble-start# ./eval.sh
  5. See that the process gets stuck at the test core eval proposal passes. The chain keeps producing blocks and shows no logs regarding our core eval as if nothing were executed.

    image

    The other weird thing here is that when I put a console log at the beginning of the agd.tx method I don't see it being invoked.

  6. When I run core eval proposal passes individually after step 5, this is what happens:

    Run the test

    root@06b38e3863fb:/usr/src/proposals/64:crabble-start# node node_modules/.bin/ava test-crabble-start.js -m "core eval proposal passes"

    Output of the test

    image

    Logs from the core eval scripts are observed in the chain logs. The operation is successful.

  7. Now rest of the tests also pass

    Run the tests

    node node_modules/.bin/ava test-crabble-start.js -m "vstorage published.CHILD is present" -m "agoricNames.instance is populated" -m "crabble governance is present"

    Output of the tests

    image
anilhelvaci added a commit that referenced this issue Dec 12, 2023
anilhelvaci added a commit that referenced this issue Dec 12, 2023
anilhelvaci added a commit that referenced this issue Feb 7, 2024
Code run in #1

init work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant