Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

integration tests fail with license violation error #6199

Open
sourcefrog opened this issue Oct 26, 2024 · 0 comments
Open

integration tests fail with license violation error #6199

sourcefrog opened this issue Oct 26, 2024 · 0 comments

Comments

@sourcefrog
Copy link

sourcefrog commented Oct 26, 2024

Describe the bug

integration::operation_limits::test_request_bytes_limit and others fail with an apparent licensing problem.

To Reproduce

Checkout of b49acf3

I ran docker-compose up -d as instructed by the readme

I then ran cargo test integration.

I don't have a commercial license for Apollo.

Some tests fail:


---- integration::operation_limits::test_request_bytes_limit_with_coprocessor stdout ----
[apollo-router/tests/integration/../common.rs:392:19] ["--hr", "--config", &self.test_config_location.to_string_lossy(),
        "--supergraph", &self.test_schema_location.to_string_lossy(), "--log",
        &self.log] = [
    "--hr",
    "--config",
    "/tmp/apollo-router-test-8e4b1c58-1ac6-4e44-854f-fdb80bac3e25.yaml",
    "--supergraph",
    "/tmp/apollo-router-test-60aa3645-2443-4261-abc6-e9eed4f174ae.graphql",
    "--log",
    "error,apollo_router=info",
]
{"timestamp":"2024-10-26T15:50:03.665871042Z","level":"INFO","message":"Apollo Router v1.57.0 // (c) Apollo Graph, Inc. // Licensed as ELv2 (https://go.apollo.dev/elv2)","target":"apollo_router::executable","resource":{}}
{"timestamp":"2024-10-26T15:50:03.668381709Z","level":"INFO","message":"Anonymous usage data is gathered to inform Apollo product development.  See https://go.apollo.dev/o/privacy for details.","target":"apollo_router::executable","resource":{}}
{"timestamp":"2024-10-26T15:50:03.930940182Z","level":"ERROR","message":"Not connected to GraphOS. In order to enable these features for a self-hosted instance of Apollo Router, the Router must be connected to a graph in GraphOS (using APOLLO_KEY and APOLLO_GRAPH_REF) that provides a license for the following features:\n\nConfiguration yaml:\n* Coprocessor plugin\n  .coprocessor\n\nSee https://go.apollo.dev/o/elp for more information.","target":"apollo_router::state_machine","resource":{}}
{"timestamp":"2024-10-26T15:50:03.931488234Z","level":"INFO","message":"stopped","target":"apollo_router::state_machine","resource":{}}
{"timestamp":"2024-10-26T15:50:03.931910864Z","level":"ERROR","message":"license violation","target":"apollo_router::executable","resource":{}}
failed to dump stack trace
thread 'integration::operation_limits::test_request_bytes_limit_with_coprocessor' panicked at apollo-router/tests/integration/../common.rs:824:9:
'GraphQL endpoint exposed' not detected in logs

---- integration::operation_limits::test_request_bytes_limit stdout ----
[apollo-router/tests/integration/../common.rs:392:19] ["--hr", "--config", &self.test_config_location.to_string_lossy(),
        "--supergraph", &self.test_schema_location.to_string_lossy(), "--log",
        &self.log] = [
    "--hr",
    "--config",
    "/tmp/apollo-router-test-df26b0ce-2fe5-4a33-9deb-05e7ea8ffcc4.yaml",
    "--supergraph",
    "/tmp/apollo-router-test-74e9d30f-5879-4ba1-8f4a-567a91be0c3e.graphql",
    "--log",
    "error,apollo_router=info",
]
{"timestamp":"2024-10-26T15:50:03.665868642Z","level":"INFO","message":"Apollo Router v1.57.0 // (c) Apollo Graph, Inc. // Licensed as ELv2 (https://go.apollo.dev/elv2)","target":"apollo_router::executable","resource":{}}
{"timestamp":"2024-10-26T15:50:03.668351268Z","level":"INFO","message":"Anonymous usage data is gathered to inform Apollo product development.  See https://go.apollo.dev/o/privacy for details.","target":"apollo_router::executable","resource":{}}
{"timestamp":"2024-10-26T15:50:03.930943542Z","level":"ERROR","message":"Not connected to GraphOS. In order to enable these features for a self-hosted instance of Apollo Router, the Router must be connected to a graph in GraphOS (using APOLLO_KEY and APOLLO_GRAPH_REF) that provides a license for the following features:\n\nConfiguration yaml:\n* Coprocessor plugin\n  .coprocessor\n\nSee https://go.apollo.dev/o/elp for more information.","target":"apollo_router::state_machine","resource":{}}
{"timestamp":"2024-10-26T15:50:03.931666208Z","level":"INFO","message":"stopped","target":"apollo_router::state_machine","resource":{}}
{"timestamp":"2024-10-26T15:50:03.931954925Z","level":"ERROR","message":"license violation","target":"apollo_router::executable","resource":{}}
failed to dump stack trace
thread 'integration::operation_limits::test_request_bytes_limit' panicked at apollo-router/tests/integration/../common.rs:824:9:
'GraphQL endpoint exposed' not detected in logs


failures:
    integration::operation_limits::test_request_bytes_limit
    integration::operation_limits::test_request_bytes_limit_with_coprocessor

test result: FAILED. 144 passed; 2 failed; 8 ignored; 0 measured; 30 filtered out; finished in 22.94s


Expected behavior

Thought the tests would pass after (attempting to) follow the instructions in DEVELOPMENT.md.

If it's expected that they fail, or if I have to do something to establish a GraphOS connection maybe that could be documented?

Output

If applicable, add output to help explain your problem.

Desktop (please complete the following information):

  • OS: Pop_OS
  • Rust 1.76.0-x86_64-unknown-linux-gnu

Additional context

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant