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

[YAML] test_get_traction_info_empty - Exception: Query failed #511

Closed
trentmc opened this issue Jan 10, 2024 · 1 comment · Fixed by #534
Closed

[YAML] test_get_traction_info_empty - Exception: Query failed #511

trentmc opened this issue Jan 10, 2024 · 1 comment · Fixed by #534
Assignees
Labels
Type: Bug Something isn't working

Comments

@trentmc
Copy link
Member

trentmc commented Jan 10, 2024

Background / motivation

Both tests in test_get_traction_info.py fail. It seems to be a sporadic failure. We should get to the bottom of the failures, and stabilize this test to be more reliable.

=========================== short test summary info ============================
FAILED pdr_backend/analytics/test/test_get_traction_info.py::test_get_traction_info_main_mainnet - Exception: Query failed. Url: https://v4.subgraph.sapphire-mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph. Return code is 503

            {
                predictSubscriptions(skip: 0, first: 1000 , where: {predictContract_: {id_in: ["0x123"]}, timestamp_gt: 1698883200, timestamp_lt: 1699142400}) {
                    id
                    txId
                    timestamp
                    user {
                        id
                    }
                    predictContract {
                        id
                        token {
                            id
                            name
                            lastPriceValue
                            nft{
                                nftData {
                                key
                                value
                                }
                            }
                        }
                    }
                }
            }
FAILED pdr_backend/analytics/test/test_get_traction_info.py::test_get_traction_info_empty - Exception: Query failed. Url: https://v4.subgraph.sapphire-mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph. Return code is 503

        {
            tokens(where: {
                nft_: {
                    owner: "0x4ac2e51f9b1b0ca9e000dfe6032b24639b172703"
                }
            }) {
                id
            }
        }
======= 2 failed, 330 passed, 3 skipped, 9 warnings in 108.16s (0:01:48) =======

See this log for full traceback.

Note: this failure is sporadic. So far, I've (Trent) only seen it once, in the log above (Jan 10, 2024).

@trentmc trentmc added the Type: Bug Something isn't working label Jan 10, 2024
@trentmc trentmc assigned trentmc, kdetry and idiom-bytes and unassigned trentmc Jan 10, 2024
@trentmc trentmc changed the title [YAML-CLI2] test_get_traction_info_empty - Exception: Query failed [YAML] test_get_traction_info_empty - Exception: Query failed Jan 11, 2024
@calina-c
Copy link
Contributor

Closed by #534.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants