Skip to content

[question] sharding, peoject dependencies and session files - how do these interact? #29102

Closed

Description

@osdiab

Hi, the auth docs talk about using project dependencies alongside saving a file to store the session and restore it in individual tests. This is fine, but when you add in sharding in an environment like GitHub Actions, it seems like if one shard ran code for the auth project, then how would another shard running the dependent test project have access to that session file? Would the auth dependency project run on each worker multiple times or something? Unclear to me how exactly these features interact, if anyone has a clearer mental model that would be helpful. Thanks!

Activity

  1. yury-s commented on Jan 23, 2024

    @yury-s
    Member

    Sharding follows the same rules as described here in the docs, i.e. if some tests in a shard belong to a project that has dependencies, all those dependencies will run before the tests in the shard. The sharding only applies to the deepest tests/projects in the dependency chain.

  2. osdiab commented on Jan 24, 2024

    @osdiab
    Author

    That makes sense, would be good to mention that in the Sharding page/the Authentication page since there wasn't any direct mention of how it would behave, and it seems mystical that it "just works" even when I know that GitHub Actions runners don't share a filesystem. Makes sense that those dependency projects would just be run as many times as there are shards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions