Skip to content

test: postgres create-branch: add --ttl and --no-expiry flags - #6327

Open
andrewnester wants to merge 1 commit into
mainfrom
test/scott-mead-db/postgres-create-branch-ttl
Open

test: postgres create-branch: add --ttl and --no-expiry flags#6327
andrewnester wants to merge 1 commit into
mainfrom
test/scott-mead-db/postgres-create-branch-ttl

Conversation

@andrewnester

Copy link
Copy Markdown
Contributor

Only to test #6313

Setting a branch's expiration on `databricks postgres create-branch`
previously required a hand-written `--json` spec. Add two convenience
flags:

  --ttl <duration>   sets spec.ttl; accepts the REST API form (604800s),
                     a Go duration (168h), or day/week units (7d, 3w)
  --no-expiry        sets spec.no_expiry

One of --ttl, --no-expiry, or a spec expiration in --json is required;
they are mutually exclusive. The flags are wired through the existing
createBranchOverrides hook in a PreRunE that shapes req.Branch.Spec
before the generated RunE merges --json and calls the API, so the
generated command and the SDK are untouched.

Co-authored-by: Isaac
@github-actions

Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @janniklasrose -- recent work in .nextchanges/cli/

Eligible reviewers: @anton-107, @denik, @lennartkats-db, @pietern, @rclarey, @renaudhartert-db, @rugpanov, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 02ebe8c

Run: 32344877901

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 1 4 274 1163 5:03
💚​ aws windows 1 4 276 1161 8:41
💚​ azure linux 1 4 273 1163 5:12
💚​ azure windows 1 4 275 1161 9:02
💚​ gcp linux 1 4 274 1163 5:19
💚​ gcp windows 1 4 276 1161 7:21
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
Top 6 slowest tests (at least 2 minutes):
duration env testname
8:54 azure windows TestAccept
8:32 aws windows TestAccept
7:12 gcp windows TestAccept
3:58 azure linux TestAccept
3:53 aws linux TestAccept
3:50 gcp linux TestAccept

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants