sourcegraph/dev/scaletesting/syntheticgithubdata
2024-05-16 15:51:16 +01:00
..
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
create.go Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
delete.go Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
github.go Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
main.go [chore] Use consistent go-github versioning (#57391) 2023-10-06 10:48:18 +02:00
oauth.go [chore] Use consistent go-github versioning (#57391) 2023-10-06 10:48:18 +02:00
README.md Adds CLI for GitHub Enterprise org/team/user generation and repo assignment (#43649) 2022-12-15 14:12:29 +01:00
state.go Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
validate.go [chore] Use consistent go-github versioning (#57391) 2023-10-06 10:48:18 +02:00

Syntheticgithubdata

A CLI tool that seeds a GitHub Enterprise instance with synthetic organisations, teams, and users, and assigns pre-created repositories to those entities.

Usage

go run ./dev/scaletesting/syntheticgithubdata [flags...]

Mandatory flags

  • github.url: GitHub base URL for the destination GHE instance
  • github.login: GitHub user to authenticate with
  • github.password: password of the GitHub user to authenticate with
  • github.token: GitHub personal access token for the destination GHE instance
  • org.admin: Username of the admin user

Optional flags

  • user.count: Amount of users to create or delete (default: 100)
  • team.count: Amount of teams to create or delete (default: 20)
  • suborg.count: Amount of sub-orgs to create or delete (default: 1)
  • repos.sourceOrgName: The org that contains the imported repositories to transfer (default: blank200k, generated by bulkrepocreate or codehostcopy
  • action: Whether to 'create', 'delete', or 'validate' the synthetic data (default: create)
  • resume: Temporary state to use to resume progress if interrupted (default: state.db)
  • generateTokens: "Whether to generate new impersonation OAuth tokens for users (default: false)