yarn run eslint is failing in GitLab-Foss Only
Summary
The GitLab-Foss scheduled pipelines are failing due to the static-analysis job failure. Unfortunately the job log is not showing the error due to #34951 (closed). See this job log as an example. https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/369750111
Running locally, the yarn run eslint
script is failing only for GitLab Foss. I get the errors that I listed below.
Steps to reproduce
- Run
bundle exec scripts/static-analysis
against GitLab Foss locally - Observe console output
Example Project
https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/369750111
What is the current bug behavior?
yarn run eslint
returns errors
What is the expected correct behavior?
yarn run eslint
passes
Relevant logs and/or screenshots
**** yarn run eslint failed with the following error(s):
yarn run v1.17.3
$ eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/boards/components/board_form.vue
20:30 error Unable to resolve path to module 'ee_component/boards/components/board_scope.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/boards/components/board_sidebar.js
26:14 error Unable to resolve path to module 'ee_component/sidebar/components/sidebar_item_epics_select.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/boards/components/issue_card_inner.vue
23:35 error Unable to resolve path to module 'ee_component/boards/components/issue_card_weight.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/clusters/clusters_bundle.js
18:35 error Unable to resolve path to module 'ee_component/clusters/components/environments.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
40:16 error Unable to resolve path to module 'ee_component/analytics/shared/components/groups_dropdown_filter.vue' import/no-unresolved
42:16 error Unable to resolve path to module 'ee_component/analytics/shared/components/projects_dropdown_filter.vue' import/no-unresolved
44:16 error Unable to resolve path to module 'ee_component/analytics/shared/components/date_range_dropdown.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/diffs/components/diff_content.vue
31:34 error Unable to resolve path to module 'ee_component/batch_comments/components/diff_file_drafts.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/diffs/components/inline_diff_view.vue
13:14 error Unable to resolve path to module 'ee_component/batch_comments/components/inline_draft_comment_row.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/diffs/components/parallel_diff_view.vue
14:14 error Unable to resolve path to module 'ee_component/batch_comments/components/parallel_draft_comment_row.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/environments/components/environments_table.vue
15:31 error Unable to resolve path to module 'ee_component/environments/components/deploy_board_component.vue' import/no-unresolved
17:14 error Unable to resolve path to module 'ee_component/environments/components/canary_deployment_callout.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/jobs/components/job_app.vue
39:32 error Unable to resolve path to module 'ee_component/jobs/components/shared_runner_limit_block.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/notes/components/noteable_discussion.vue
30:29 error Unable to resolve path to module 'ee_component/batch_comments/components/draft_note.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/vue_merge_request_widget/components/deployment.vue
29:14 error Unable to resolve path to module 'ee_component/vue_merge_request_widget/components/visual_review_app_link.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline_container.vue
25:14 error Unable to resolve path to module 'ee_component/vue_merge_request_widget/components/merge_train_position_indicator.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline.vue
20:14 error Unable to resolve path to module 'ee_component/vue_shared/components/linked_pipelines_mini_list.vue' import/no-unresolved
/Users/kylewiebers/dev/gdk-foss/gitlab/spec/frontend/gfm_auto_complete_spec.js
4:35 error '/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/gfm_auto_complete.js' imported multiple times import/no-duplicates
5:29 error '/Users/kylewiebers/dev/gdk-foss/gitlab/app/assets/javascripts/gfm_auto_complete.js' imported multiple times import/no-duplicates
✖ 19 problems (19 errors, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)