Skip to content

Rails feature tests have stopped running javascript #25683

Answered by IanVaughan
IanVaughan asked this question in Actions
Discussion options

You must be logged in to vote

We found the issue, a cleaver colleague than me, dig into the logs and spotted 2 issues, the first I think being the cause.

  1. running out of inotify watchers:
        FATAL: Listen error: unable to monitor directories for changes.
        Visit https://github.com/guard/listen/blob/master/README.md#increasing-the-amount-of-inotify-watchers for info on how to fix this.

1.1 The fix was to set DISABLE_SPRING: true in GitHub actions

  1. syntax error in test.js
Compiling...
Compilation failed:
/home/runner/work/org/repo/config/webpack/test.js:7
import $ from 'jquery';

2.1. test.js hasn’t changed for nearly a year, but JS libraries have been upgraded each week.
2.2 The fix was:

-import $ from 'j…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
3 participants