Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/celest_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
cache: true
# Because many golden tests encode the precise Dart/Flutter SDKs used to generate
# them, these values must be consistently used when running tests locally and in CI.
flutter-version: 3.29.2
flutter-version: 3.29.3
- name: Setup Libsecret
if: runner.os == 'Linux'
run: tool/setup-ci.sh
- name: Get Packages
working-directory: apps/cli
run: dart pub upgrade --verbose
run: dart pub upgrade
- name: Test
working-directory: apps/cli
run: dart test -x e2e --fail-fast -j 1
Expand Down
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,17 @@
"request": "launch",
"type": "dart"
},
{
"name": "CLI / E2E (--update-goldens)",
"request": "launch",
"type": "dart",
"cwd": "apps/cli",
"program": "fixtures/fixtures_test.dart",
"env": {
"UPDATE_GOLDENS": "true",
"INCLUDE_TESTS": "marcelo"
},
"args": ["--timeout=none"]
},
]
}
3 changes: 2 additions & 1 deletion apps/cli/fixtures/fixtures_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ class TestRunner {
exe: Platform.resolvedExecutable,
action: PubAction.upgrade,
workingDirectory: projectRoot,
).timeout(const Duration(seconds: 10));
verbose: Platform.environment.containsKey('CI'),
).timeout(const Duration(seconds: 30));
if (updateGoldens) {
if (goldensDir.existsSync()) {
goldensDir.deleteSync(recursive: true);
Expand Down
30 changes: 15 additions & 15 deletions apps/cli/fixtures/standalone/api/client/lib/src/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5125,7 +5125,7 @@ class CelestFunctionsMetadata {
return;
}

@Deprecated('Do not use this function.')
@Deprecated.new('Do not use this function.')
@_$celest.CloudFunction(
api: 'metadata',
function: 'hasConstructedDeprecatedAnnotation',
Expand Down Expand Up @@ -5174,7 +5174,7 @@ class CelestFunctionsMetadata {
return;
}

@Literals(
@Literals.new(
string: 'string',
intValue: 1,
doubleValue: 1.0,
Expand All @@ -5189,7 +5189,7 @@ class CelestFunctionsMetadata {
function: 'hasLiteralsAnnotation',
)
Future<void> hasLiteralsAnnotation(
@Literals(
@Literals.new(
string: 'string',
intValue: 1,
doubleValue: 1.0,
Expand All @@ -5200,7 +5200,7 @@ class CelestFunctionsMetadata {
recordValue: const (a: 'a', b: 'b', c: 'c'),
)
String value, {
@Literals(
@Literals.new(
string: 'string',
intValue: 1,
doubleValue: 1.0,
Expand Down Expand Up @@ -5263,14 +5263,14 @@ class CelestFunctionsMetadata {
return;
}

@Exportable()
@Exportable.new()
@_$celest.CloudFunction(
api: 'metadata',
function: 'hasExportableConstructedAnnotation',
)
Future<void> hasExportableConstructedAnnotation(
@Exportable() String value, {
@Exportable() String named = 'named',
@Exportable.new() String value, {
@Exportable.new() String named = 'named',
}) async {
final $response = await celest.httpClient.post(
celest.baseUri.resolve('/metadata/has-exportable-constructed-annotation'),
Expand Down Expand Up @@ -5334,7 +5334,7 @@ class CelestFunctionsMetadata {
bool boolValue = true,
List<String> list = const ['list'],
Map<String, String> map = const {'map': 'map'},
Exportable exportable = const Exportable(),
Exportable exportable = const Exportable.new(),
Serializable serializable = const Serializable.forType('String'),
LiteralEnum enumValue = LiteralEnum.a,
({
Expand Down Expand Up @@ -5387,7 +5387,7 @@ class CelestFunctionsMetadata {
bool? boolValue = true,
List<String>? list = const ['list'],
Map<String, String>? map = const {'map': 'map'},
Exportable? exportable = const Exportable(),
Exportable? exportable = const Exportable.new(),
Serializable? serializable = const Serializable.forType('String'),
LiteralEnum? enumValue = LiteralEnum.a,
({
Expand Down Expand Up @@ -5440,7 +5440,7 @@ class CelestFunctionsMetadata {
bool boolValue = true,
List<String> list = const ['list'],
Map<String, String> map = const {'map': 'map'},
Exportable exportable = const Exportable(),
Exportable exportable = const Exportable.new(),
Serializable serializable = const Serializable.forType('String'),
LiteralEnum enumValue = LiteralEnum.a,
({
Expand Down Expand Up @@ -5493,7 +5493,7 @@ class CelestFunctionsMetadata {
bool? boolValue = true,
List<String>? list = const ['list'],
Map<String, String>? map = const {'map': 'map'},
Exportable? exportable = const Exportable(),
Exportable? exportable = const Exportable.new(),
Serializable? serializable = const Serializable.forType('String'),
LiteralEnum? enumValue = LiteralEnum.a,
({
Expand Down Expand Up @@ -5749,7 +5749,7 @@ class CelestFunctionsMetadata {
String b,
String c
}) recordValue = const (a: 'a', b: 'b', c: 'c'),
Exportable exportable = const Exportable(),
Exportable exportable = const Exportable.new(),
Serializable serializable = const Serializable.forType('String'),
]) async {
final $response = await celest.httpClient.post(
Expand Down Expand Up @@ -5802,7 +5802,7 @@ class CelestFunctionsMetadata {
String b,
String c
})? recordValue = const (a: 'a', b: 'b', c: 'c'),
Exportable? exportable = const Exportable(),
Exportable? exportable = const Exportable.new(),
Serializable? serializable = const Serializable.forType('String'),
]) async {
final $response = await celest.httpClient.post(
Expand Down Expand Up @@ -5856,7 +5856,7 @@ class CelestFunctionsMetadata {
String b,
String c
}) recordValue = const (a: 'a', b: 'b', c: 'c'),
Exportable exportable = const Exportable(),
Exportable exportable = const Exportable.new(),
Serializable serializable = const Serializable.forType('String'),
}) async {
final $response = await celest.httpClient.post(
Expand Down Expand Up @@ -5909,7 +5909,7 @@ class CelestFunctionsMetadata {
String b,
String c
})? recordValue = const (a: 'a', b: 'b', c: 'c'),
Exportable? exportable = const Exportable(),
Exportable? exportable = const Exportable.new(),
Serializable? serializable = const Serializable.forType('String'),
}) async {
final $response = await celest.httpClient.post(
Expand Down
Loading