AC: Governance vote to suspend a market that's currently in auction trading mode keeps it in auction mode at vote enactment time. Even if the trigger that originally put the market into auction mode is no longer violated the market must remain in auction. (0028-GOVE-114)
When testing able to see that the market goes into ACTIVE before being successfully STATE_SUSPENDED_VIA_GOVERNANCE
However, the AC states that the market should be held in suspended state and should not return back to ACTIVE.
Observed behaviour
As explained above
Proposal Events:
{"id":"252-5","block":"181A3D0DAD436260849B235DBD23A328DC4A34AED4872138BC399545A63098CF","type":"BUS_EVENT_TYPE_PROPOSAL","proposal":{"id":"6dc09df7fc443b8e2b4528093abc8f60a9306b31731c8648b006303710c2b421","reference":"91F3299D61","partyId":"811d0ef737bf395ebf781c5f2e806f01db6fc584e6a8213208db72d587253d3a","state":"STATE_OPEN","timestamp":"1692713093362237537","terms":{"closingTimestamp":"1692713101","enactmentTimestamp":"1692713115","updateMarketState":{"changes":{"marketId":"04f5e92db86e67d50438c8da8f8d3f24f52f7087e234d17fec7dc5f8f2054b70","updateType":"MARKET_STATE_UPDATE_TYPE_SUSPEND"}}},"rationale":{"description":"Market State Update","title":"Market State Update Proposal: Suspend"},"requiredParticipation":"0.00000015","requiredMajority":"0.66","requiredLiquidityProviderParticipation":"0.00001","requiredLiquidityProviderMajority":"0.66"},"version":1,"chainId":"testnet-001","txHash":"AD560412FCB85943860C1AA7F68878706D2A82E76F7E30D6F402F546E10A7C7B"}
{"id":"265-13","block":"132FDF4CFCA7C62031A3185480B68C17B4E89CFE67CEFB2AD1E9BD3031AC4CCD","type":"BUS_EVENT_TYPE_PROPOSAL","proposal":{"id":"6dc09df7fc443b8e2b4528093abc8f60a9306b31731c8648b006303710c2b421","reference":"91F3299D61","partyId":"811d0ef737bf395ebf781c5f2e806f01db6fc584e6a8213208db72d587253d3a","state":"STATE_PASSED","timestamp":"1692713093362237537","terms":{"closingTimestamp":"1692713101","enactmentTimestamp":"1692713115","updateMarketState":{"changes":{"marketId":"04f5e92db86e67d50438c8da8f8d3f24f52f7087e234d17fec7dc5f8f2054b70","updateType":"MARKET_STATE_UPDATE_TYPE_SUSPEND"}}},"rationale":{"description":"Market State Update","title":"Market State Update Proposal: Suspend"},"requiredParticipation":"0.00000015","requiredMajority":"0.66","requiredLiquidityProviderParticipation":"0.00001","requiredLiquidityProviderMajority":"0.66"},"version":1,"chainId":"testnet-001","txHash":"132FDF4CFCA7C62031A3185480B68C17B4E89CFE67CEFB2AD1E9BD3031AC4CCD"}
{"id":"286-10","block":"7185AF16CA854EFBEDA66DCED52BEDA9A4722C04E2DD1595CEF05B31D65A219B","type":"BUS_EVENT_TYPE_PROPOSAL","proposal":{"id":"6dc09df7fc443b8e2b4528093abc8f60a9306b31731c8648b006303710c2b421","reference":"91F3299D61","partyId":"811d0ef737bf395ebf781c5f2e806f01db6fc584e6a8213208db72d587253d3a","state":"STATE_ENACTED","timestamp":"1692713093362237537","terms":{"closingTimestamp":"1692713101","enactmentTimestamp":"1692713115","updateMarketState":{"changes":{"marketId":"04f5e92db86e67d50438c8da8f8d3f24f52f7087e234d17fec7dc5f8f2054b70","updateType":"MARKET_STATE_UPDATE_TYPE_SUSPEND"}}},"rationale":{"description":"Market State Update","title":"Market State Update Proposal: Suspend"},"requiredParticipation":"0.00000015","requiredMajority":"0.66","requiredLiquidityProviderParticipation":"0.00001","requiredLiquidityProviderMajority":"0.66"},"version":1,"chainId":"testnet-001","txHash":"7185AF16CA854EFBEDA66DCED52BEDA9A4722C04E2DD1595CEF05B31D65A219B"}
market_id = 04f5e92db86e67d50438c8da8f8d3f24f52f7087e234d17fec7dc5f8f2054b70
All events for the test
https://jenkins.ops.vega.xyz/job/common/job/system-tests-wrapper/97090/artifact/test_logs/tests.governance.market_state_update_test/test_suspend_already_auction%5Bmarket%5D/
Proposal Events
https://jenkins.ops.vega.xyz/job/common/job/system-tests-wrapper/97090/artifact/test_logs/tests.governance.market_state_update_test/test_suspend_already_auction%5Bmarket%5D/BUS_EVENT_TYPE_PROPOSAL.txt
Market Update Events
https://jenkins.ops.vega.xyz/job/common/job/system-tests-wrapper/97090/artifact/test_logs/tests.governance.market_state_update_test/test_suspend_already_auction%5Bmarket%5D/BUS_EVENT_TYPE_MARKET_UPDATED.txt
Problem encountered
Spec Ref: Market Governance - https://github.com/vegaprotocol/specs/blob/cosmicelevator/protocol/0028-GOVE-governance.md
Trying to test the below acceptance criteria.
AC: Governance vote to suspend a market that's currently in auction trading mode keeps it in auction mode at vote enactment time. Even if the trigger that originally put the market into auction mode is no longer violated the market must remain in auction. (0028-GOVE-114)
When testing able to see that the market goes into ACTIVE before being successfully STATE_SUSPENDED_VIA_GOVERNANCE
However, the AC states that the market should be held in suspended state and should not return back to ACTIVE.
Observed behaviour
As explained above
Proposal Events:
Market Update Events:
Expected behaviour
As per the AC.
Steps to reproduce
Software version
vega - develop
Failing test
test_suspend_already_auction
Jenkins run
https://jenkins.ops.vega.xyz/job/common/job/system-tests-wrapper/97090/testReport/junit/tests.governance/market_state_update_test/test_suspend_already_auction_market_/
Configuration used
No response
Relevant log output