Skip to content

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Feb 25, 2025

Copy link

aspect-workflows bot commented Feb 25, 2025

Test

109 test targets passed

Targets
//gazelle/js:declare_module_test [k8-fastbuild]                     86ms
//gazelle/js:declare_module_types_test [k8-fastbuild]               156ms
//gazelle/js:dynamic_import_test [k8-fastbuild]                     95ms
//gazelle/js:gazelle_disable_conflict_test [k8-fastbuild]           193ms
//gazelle/js:gazelle_disable_test [k8-fastbuild]                    118ms
//gazelle/js:gazelle_exclude_directive_test [k8-fastbuild]          128ms
//gazelle/js:gazelle_generate_build_test [k8-fastbuild]             119ms
//gazelle/js:gazelle_generation_mode_test [k8-fastbuild]            126ms
//gazelle/js:gazelle_ignore_directive_test [k8-fastbuild]           148ms
//gazelle/js:gazelle_keep_test [k8-fastbuild]                       85ms
//gazelle/js:gazelle_map_kind_directive_test [k8-fastbuild]         102ms
//gazelle/js:groups_add_remove_rules_test [k8-fastbuild]            89ms
//gazelle/js:groups_configs_test [k8-fastbuild]                     95ms
//gazelle/js:groups_deps_test [k8-fastbuild]                        73ms
//gazelle/js:groups_simple_files_test [k8-fastbuild]                139ms
//gazelle/js:ignore_config_files_test [k8-fastbuild]                179ms
//gazelle/js:ignore_import_directive_test [k8-fastbuild]            130ms
//gazelle/js:js_test [k8-fastbuild]                                 69ms
//gazelle/js:node_native_test [k8-fastbuild]                        110ms
//gazelle/js:npm_changed_deps_test [k8-fastbuild]                   157ms
//gazelle/js:npm_link_all_packages_test [k8-fastbuild]              49ms
//gazelle/js:npm_package_deps_lib_test [k8-fastbuild]               112ms
//gazelle/js:npm_package_deps_test [k8-fastbuild]                   99ms
//gazelle/js:npm_package_deps_tsconfig_test [k8-fastbuild]          108ms
//gazelle/js:npm_package_lib_target_name_test [k8-fastbuild]        106ms
//gazelle/js:npm_package_target_enabled_test [k8-fastbuild]         159ms
//gazelle/js:npm_package_target_name_test [k8-fastbuild]            73ms
//gazelle/js:npm_package_target_referenced_test [k8-fastbuild]      141ms
//gazelle/js:npm_simple_deps_cjs_test [k8-fastbuild]                88ms
//gazelle/js:npm_simple_deps_test [k8-fastbuild]                    200ms
//gazelle/js:npm_types_package_test [k8-fastbuild]                  74ms
//gazelle/js:parse_errors_test [k8-fastbuild]                       118ms
//gazelle/js:pnpm_project_refs_lock5_test [k8-fastbuild]            95ms
//gazelle/js:pnpm_project_refs_lock6_test [k8-fastbuild]            95ms
//gazelle/js:pnpm_project_refs_lock9_test [k8-fastbuild]            234ms
//gazelle/js:pnpm_workspace_rerooted_test [k8-fastbuild]            163ms
//gazelle/js:pnpm_workspace_test [k8-fastbuild]                     154ms
//gazelle/js:resolve_directive_test [k8-fastbuild]                  155ms
//gazelle/js:resolve_order_test [k8-fastbuild]                      154ms
//gazelle/js:rules_conflicting_name_mapped_kind_test [k8-fastbuild] 69ms
//gazelle/js:rules_conflicting_name_nojs_test [k8-fastbuild]        47ms
//gazelle/js:rules_conflicting_name_test [k8-fastbuild]             41ms
//gazelle/js:rules_ordering_test [k8-fastbuild]                     96ms
//gazelle/js:simple_dts_only_dep_test [k8-fastbuild]                203ms
//gazelle/js:simple_dts_only_test [k8-fastbuild]                    82ms
//gazelle/js:simple_empty_test [k8-fastbuild]                       47ms
//gazelle/js:simple_extra_files_test [k8-fastbuild]                 94ms
//gazelle/js:simple_file_exts_test [k8-fastbuild]                   194ms
//gazelle/js:simple_file_test [k8-fastbuild]                        121ms
//gazelle/js:simple_globs_keep_test [k8-fastbuild]                  264ms
//gazelle/js:simple_globs_test [k8-fastbuild]                       191ms
//gazelle/js:simple_import_disabled_test [k8-fastbuild]             139ms
//gazelle/js:simple_import_generated_test [k8-fastbuild]            96ms
//gazelle/js:simple_imports_cjs_test [k8-fastbuild]                 217ms
//gazelle/js:simple_imports_dynamic_test [k8-fastbuild]             355ms
//gazelle/js:simple_imports_test [k8-fastbuild]                     349ms
//gazelle/js:simple_json_import_test [k8-fastbuild]                 168ms
//gazelle/js:simple_new_file_test [k8-fastbuild]                    210ms
//gazelle/js:simple_rule_naming_directives_test [k8-fastbuild]      293ms
//gazelle/js:tests_subproject_test [k8-fastbuild]                   104ms
//gazelle/js:ts_proto_library_ignore_test [k8-fastbuild]            61ms
//gazelle/js:ts_proto_library_imported_test [k8-fastbuild]          177ms
//gazelle/js:ts_proto_library_test [k8-fastbuild]                   302ms
//gazelle/js:tsconfig_attrs_inherited_test [k8-fastbuild]           94ms
//gazelle/js:tsconfig_baseurl_test [k8-fastbuild]                   134ms
//gazelle/js:tsconfig_composite_test [k8-fastbuild]                 111ms
//gazelle/js:tsconfig_custom_file_name_test [k8-fastbuild]          78ms
//gazelle/js:tsconfig_declaration_dir_test [k8-fastbuild]           146ms
//gazelle/js:tsconfig_deps_test [k8-fastbuild]                      129ms
//gazelle/js:tsconfig_disabled_manual_test [k8-fastbuild]           98ms
//gazelle/js:tsconfig_incremental_test [k8-fastbuild]               129ms
//gazelle/js:tsconfig_invalid_test [k8-fastbuild]                   196ms
//gazelle/js:tsconfig_jsx_test [k8-fastbuild]                       155ms
//gazelle/js:tsconfig_lax_json_test [k8-fastbuild]                  75ms
//gazelle/js:tsconfig_manual_test [k8-fastbuild]                    87ms
//gazelle/js:tsconfig_nomore_configs_test [k8-fastbuild]            161ms
//gazelle/js:tsconfig_optout_test [k8-fastbuild]                    110ms
//gazelle/js:tsconfig_outdir_genfiles_test [k8-fastbuild]           86ms
//gazelle/js:tsconfig_outdir_test [k8-fastbuild]                    122ms
//gazelle/js:tsconfig_paths_test [k8-fastbuild]                     163ms
//gazelle/js:tsconfig_pnpm_ref_rerooted_test [k8-fastbuild]         133ms
//gazelle/js:tsconfig_pnpm_ref_test [k8-fastbuild]                  90ms
//gazelle/js:tsconfig_rootdir_test [k8-fastbuild]                   157ms
//gazelle/js:tsconfig_rootdirs_test [k8-fastbuild]                  159ms
//gazelle/js:tsconfig_tsbuildinfo_test [k8-fastbuild]               97ms
//gazelle/js:tsconfig_tslib_test [k8-fastbuild]                     128ms
//gazelle/js:validate_import_statements_off_test [k8-fastbuild]     75ms
//gazelle/js:validate_import_statements_test [k8-fastbuild]         90ms
//gazelle/js:validate_import_statements_warn_test [k8-fastbuild]    108ms
//gazelle/js:visibility_test [k8-fastbuild]                         159ms
//integration_tests/aspect:configure_test [k8-fastbuild]            46s
//integration_tests/aspect:flags_test [k8-fastbuild]                1m 34s
//integration_tests/aspect:help_test [k8-fastbuild]                 39s
//integration_tests/aspect:hints_test [k8-fastbuild]                37s
//integration_tests/aspect:info_test [k8-fastbuild]                 30s
//integration_tests/aspect:lint_test [k8-fastbuild]                 1m 23s
//integration_tests/aspect:reenter_test [k8-fastbuild]              28s
//integration_tests/aspect:version_test [k8-fastbuild]              24s
//pkg/aspect/aquery:aquery_test [k8-fastbuild]                      60ms
//pkg/aspect/cquery:cquery_test [k8-fastbuild]                      59ms
+ 9 other targets

Total test execution time was 7m 19s. 118 tests (52.0%) were fully cached saving 15s.


Buildifier      Format

@jbedard jbedard force-pushed the 788EA150BB0FAAB4A3FF81F26DCBE189 branch from 3b178c4 to cbe1108 Compare February 25, 2025 23:14
@jbedard jbedard requested a review from thesayyn February 25, 2025 23:14
jbedard and others added 2 commits February 25, 2025 15:15
### Changes are visible to end-users: no

### Test plan

- Covered by existing test cases

GitOrigin-RevId: b978314e45722293228ca2ef20c185b696faf093
Synced from #814 by
fzakaria:

IntelliJ IDE uses a query with no arguments which seems to cause havoc
when this is run via aspect.

I added support to check for `--tool_tag` and not prompt the user for a
query selection to better handle this usecase.

Fixes #813

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Support running queries via `--query_file`

### Test plan

```
> /Users/fzakaria/code/github.com/aspect-build/aspect-cli/bazel-bin/cmd/aspect/aspect_/aspect query --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/fzakaria/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/ijwb/aspect" --override_repository=intellij_aspect_template=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/aspect --output=label_kind --keep_going --query_file=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/queries/query-13438905584701813446
> echo $?
2
```

Closes #814

Co-authored-by: Farid Zakaria <fzakaria@confluent.io>
GitOrigin-RevId: bf38a5b5e7d9ace6eb7d7719887cde69fc125783
@jbedard jbedard force-pushed the 788EA150BB0FAAB4A3FF81F26DCBE189 branch from cbe1108 to fbb7214 Compare February 25, 2025 23:15
@jbedard jbedard merged commit 409ecbd into main Feb 26, 2025
4 checks passed
@jbedard jbedard deleted the 788EA150BB0FAAB4A3FF81F26DCBE189 branch February 26, 2025 00:28
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