Skip to content
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
8427a6f
feat: Initial setup for golden tests (b/489106796)
quirogas Mar 18, 2026
5b0b3d0
feat(internal/surfer): Add golden tests for resource_standard API
quirogas Mar 18, 2026
2d0c6a7
feat(internal/surfer): Add golden tests for field_simple_types API
quirogas Mar 18, 2026
6c2776c
feat(internal/surfer): Add golden tests for filtered_command API
quirogas Mar 18, 2026
16ef3a4
feat(internal/surfer): Add golden tests for help_text API
quirogas Mar 18, 2026
013c53d
feat(internal/surfer): Add golden tests for hidden_command API
quirogas Mar 18, 2026
ae0408c
feat(internal/surfer): Add golden tests for hidden_feature API
quirogas Mar 18, 2026
6c1cca5
feat(internal/surfer): Add golden tests for method_async API
quirogas Mar 18, 2026
6d014d0
feat(internal/surfer): Add golden tests for method_custom API
quirogas Mar 18, 2026
19da875
feat(internal/surfer): Add golden tests for method_minimal_list API
quirogas Mar 18, 2026
c8aa120
feat(internal/surfer): Add golden tests for method_operations API
quirogas Mar 18, 2026
40120b5
feat(internal/surfer): Add golden tests for method_output_format API
quirogas Mar 18, 2026
f1e02f8
feat(internal/surfer): Add golden tests for multi_service API
quirogas Mar 18, 2026
4b80ca1
feat(internal/surfer): Add golden tests for multi_version_multi_track…
quirogas Mar 18, 2026
32099b3
fix(internal/surfer): Remove duplicate code in golden_test.go
quirogas Mar 18, 2026
43b2a03
fix(internal/surfer): Correct proto list for TestMultiServiceGA
quirogas Mar 18, 2026
032e1ac
fix(internal/surfer): Correct proto list args for TestMultiServiceGA
quirogas Mar 18, 2026
a03b176
fix(internal/surfer): Enable operations generation for TestMethodOper…
quirogas Mar 18, 2026
d66e6e9
fix: Update .git/info/exclude and remove tracked BUILD file
quirogas Mar 18, 2026
17a0b81
delete test_env
quirogas Mar 18, 2026
6446292
feat(internal/surfer): Update golden test comparer for fuzzy path mat…
quirogas Mar 18, 2026
b5e17e4
fix(internal/surfer): Remove newlines from t.Errorf in golden test co…
quirogas Mar 18, 2026
24ec21d
fix(internal/surfer): Remove newlines from t.Errorf in golden test co…
quirogas Mar 18, 2026
9aef029
fix(internal/surfer): Remove newlines from t.Errorf in golden test co…
quirogas Mar 18, 2026
4b110e2
chore(internal/surfer): clean up testdata
quirogas Mar 19, 2026
4d094cc
chore(internal/surfer): add expanded commands and dirty testdata
quirogas Mar 19, 2026
db05d14
chore(internal/surfer): cleanup surfaces
quirogas Mar 19, 2026
fd569ea
chore(internal/surfer): add better integration tests
quirogas Mar 19, 2026
74a4c62
chore(internal/sufer): add better diff logging
quirogas Mar 19, 2026
e2f25d9
test(internal/sufer): write table driven tests
quirogas Mar 19, 2026
749a7b6
chore(internal/sufer): update documentation and remove visibility rel…
quirogas Mar 20, 2026
5784ec3
chore(internal/sufer): add flag for integration test
quirogas Mar 22, 2026
e95437b
chore(internal/sufer): run yaml linter
quirogas Mar 23, 2026
8e36bde
chore(internal/surfer): fix tests
quirogas Mar 23, 2026
413db4f
chore(internal/surfer): fix tests
quirogas Mar 23, 2026
57360cd
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
281e045
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
452497c
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
7b30cf6
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
40afa6b
chore(internal/surfer/sufer): improve code format
quirogas Mar 23, 2026
1ff5459
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
7ac74b3
Merge remote-tracking branch 'origin/main' into integration-tests
quirogas Mar 23, 2026
09e4a48
chore(internal/sufer): modify comments
quirogas Mar 23, 2026
e965f96
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
d7f5d68
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
7cef58a
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
ee53519
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
b09be3e
Merge branch 'main' into integration-tests
quirogas Mar 23, 2026
37eadbd
chore(internal/surfer/sufer): fix tests
quirogas Mar 23, 2026
f3aad56
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
1039232
chore(internal/surfer/sufer): map test failures to github issue
quirogas Mar 23, 2026
4ba990a
chore(internal/sufer): modify test structure
quirogas Mar 23, 2026
96f7b4a
Merge branch 'integration-tests' of github.com:quirogas/librarian int…
quirogas Mar 23, 2026
45bba02
test(internal/surfer): add golden files test
quirogas Mar 23, 2026
644e1a0
chore(internal/surfer/sufer): address gemini's commnents
quirogas Mar 24, 2026
6c812e6
Merge remote-tracking branch 'origin/main' into integration-tests
quirogas Mar 24, 2026
bbfa238
Merge branch 'main' into integration-tests
quirogas Mar 24, 2026
0bd9cf4
chore(internal/surfer/sufer): fix tests
quirogas Mar 24, 2026
7979c9c
chore(internal/surfer/sufer): fix tests
quirogas Mar 24, 2026
44e9a27
Merge branch 'main' into integration-tests
quirogas Mar 24, 2026
bc11c33
Merge branch 'main' into integration-tests
quirogas Mar 24, 2026
d49a134
Merge branch 'main' into integration-tests
quirogas Mar 25, 2026
48058b2
chore(internal/surfer/sufer): address pr comments
quirogas Mar 25, 2026
319cfe3
Merge branch 'main' into integration-tests
quirogas Mar 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions internal/surfer/gcloud/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type API struct {
// RootIsHidden applies the gcloud 'hidden' flag to the root command group
// of the generated surface. When true, the top-level command group for
// this API will not appear in `--help` output by default. See
// go/gcloud-advanced-topics#hiding-commands-and-command-groups for more
// gcloud documentation for hiding commands and command groups for more
// details.
RootIsHidden bool `yaml:"root_is_hidden"`

Expand Down Expand Up @@ -108,7 +108,7 @@ type HelpTextRule struct {
// gcloud data elements expect a singular selector, if a comma separated
// selector string is passed, a 'InvalidSelectorList' error will be thrown.
//
// See http://google3/google/api/documentation.proto;l=253;rcl=525006895
// See the API documentation
// for API selector details.
Selector string `yaml:"selector,omitempty"`

Expand Down Expand Up @@ -150,7 +150,7 @@ type OutputFormatting struct {
// gcloud data elements expect a singular selector, if a comma separated
// selector string is passed, a 'InvalidSelectorList' error will be thrown.
//
// See http://google3/google/api/documentation.proto;l=253;rcl=525006895
// See the API documentation
// for API selector details. Must point to a single RPC/command. Wildcards
// ('*') not allowed for output formatting.
Selector string `yaml:"selector"`
Expand All @@ -176,14 +176,14 @@ type CommandOperationsConfig struct {
// gcloud data elements expect a singular selector, if a comma separated
// selector string is passed, a 'InvalidSelectorList' error will be thrown.
//
// See http://google3/google/api/documentation.proto;l=253;rcl=525006895
// See the API documentation
// for API selector details.
Selector string `yaml:"selector"`

// DisplayOperationResult determines whether to display the resource result
// in the output of the command by default. Set to `true` to display the
// operation result instead of the final resource. See
// http://go/gcloud-creating-commands#async for more details.
// the gcloud documentation on async operations for more details.
DisplayOperationResult bool `yaml:"display_operation_result"`
}

Expand Down
1 change: 1 addition & 0 deletions internal/surfer/gcloud/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func createAPIModel(googleapisPath, includeList string) (*api.API, error) {
// we don't use all the functionality of post-processing of CreateModel, so depending
// on our needs, if we don't find ourselves needing the additional post-processing
// functionality, we could write our own simpler `CreateModel` function
// TODO(https://github.com/googleapis/librarian/issues/4298): Update IncludeList to be a list of strings, rather than comma-separated.
model, err := parser.CreateModel(parserConfig)
if err != nil {
return nil, fmt.Errorf("failed to create API model: %w", err)
Expand Down
Loading
Loading