Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: extract Expecter into its own package - #25806

Merged
spikecurtis merged 1 commit into
mainfrom
spike/internal-1400-expecter
May 28, 2026
Merged

chore: extract Expecter into its own package#25806
spikecurtis merged 1 commit into
mainfrom
spike/internal-1400-expecter

Conversation

@spikecurtis

@spikecurtis spikecurtis commented May 28, 2026

Copy link
Copy Markdown
Contributor

Relates to coder/internal#1400

Extracts the code that matches command output from the code that sets up a PTY, so it can be used independently.

Subsequent PRs will actually refactor the tests to use this directly over an inmemory pipe.<!--

If you have used AI to produce some or all of this PR, please ensure you have read our AI Contribution guidelines before submitting.

-->

Copy link
Copy Markdown
Contributor Author

@spikecurtis
spikecurtis force-pushed the spike/internal-1400-expecter branch from 8bb24bb to 9729348 Compare May 28, 2026 19:36
@spikecurtis
spikecurtis marked this pull request as ready for review May 28, 2026 19:43
@spikecurtis
spikecurtis requested a review from sreya May 28, 2026 19:44

spikecurtis commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • May 28, 9:37 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 28, 9:38 PM UTC: @spikecurtis merged this pull request with Graphite.

@spikecurtis
spikecurtis merged commit a16de96 into main May 28, 2026
34 checks passed
@spikecurtis
spikecurtis deleted the spike/internal-1400-expecter branch May 28, 2026 21:38
f0ssel added a commit that referenced this pull request Jun 17, 2026
… test

The backport of #26418 added cli/server_fix_oidc_links_test.go, which
imports github.com/coder/coder/v2/testutil/expecter. That package was
extracted on main in #25806 and does not exist on release/2.34, so the
backported test failed to compile. The compile failure broke the fmt,
gen, lint, and all test-go-pg jobs.

Backport the self-contained, test-only expecter package verbatim from
main so the test compiles and CI passes. No production code is affected.
f0ssel pushed a commit that referenced this pull request Jun 17, 2026
Backport of #26418 to release/2.33.

Resolved a conflict in the generated coderd/database/queries.sql.go by
regenerating the database code (sqlc v1.30.0) from the cherry-picked
queries. Only the new query code is added; nothing is removed.

Also backports the test-only testutil/expecter package (extracted on
main in #25806). The new cli/server_fix_oidc_links_test.go imports it,
and it did not exist on this release branch, so without it the fmt,
gen, lint, and test-go jobs fail to compile.

(cherry picked from commit 1d03e63)
f0ssel pushed a commit that referenced this pull request Jun 17, 2026
Backport of #26418 to release/2.32.

Resolved a conflict in the generated coderd/database/queries.sql.go by
regenerating the database code (sqlc v1.30.0) from the cherry-picked
queries. Only the new query code is added; nothing is removed.

Also backports the test-only testutil/expecter package (extracted on
main in #25806). The new cli/server_fix_oidc_links_test.go imports it,
and it did not exist on this release branch, so without it the fmt,
gen, lint, and test-go jobs fail to compile.

(cherry picked from commit 1d03e63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants