What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI

When I ran CircleCI, I got the following error. (Since it takes a little time to search the log at that time, the command part is not completely reproduced)

$ bundle exec rspec spec/

# Too long with no output (exceeded 10m0s)

The default no-output timeout time is set to 10 minutes, and it seems that the build was canceled because it exceeded this.

In my case, for some reason, RSpec's execution time exceeded 10 minutes and CI stopped. (Usually it takes about one and a half minutes.)

yml:.circleci/config.yml



 - run:
          name: run rspec
          command: |
            mkdir /tmp/test-results
            TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
              circleci tests split --split-by=timings)"
            bundle exec rspec \
              --format progress \
              --format RspecJunitFormatter \
              --out /tmp/test-results/rspec.xml \
              --format progress \
              $TEST_FILES
          no_output_timeout: 15m

In this way, you can change the default setting by writing the no_output_timeout parameter. In the above example it is 15 minutes.

For example, if the scale of the service becomes large and the test execution time of RSpec becomes long, it seems necessary to change it. (I wish I could scale the service I made for about 10 minutes in the test ...)

By the way, as an aside, it seems that the free build time frame of CircleCI is currently 1000 minutes. (It seems that it was 1500 minutes before) It's a calculation that can be used for building for about 33 minutes a day, so I thought that I could afford it for personal development. However, last month, I was stuck with an error in the production environment, and when I built it all the time, I used up the free frame,

I think it's also because I tried and made errors in tests that passed locally but not in CI.

I can't afford 1000 minutes, isn't it?

I decided not to waste too much. ..

reference

circleci Support

Thank you for reading to the end!

If you have any suggestions, I would appreciate it if you could comment!

Recommended Posts

What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
[Rails] What to do if you can't get an error message with the errors method
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get an error on heroku rake db: migrate
What to do if you get the error Couldn't find Item without an ID
What to do if you get a port error when docker-compose up on Mac
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
What to do if you get angry with OpenSSL with pyenv install
[Rails] What to do if you can't get parameters with form_with
Notes on what to do if Ubuntu 20.04 installation on Virtual box 6.1 (Windows10) fails with "Error 5 Input / output error"
What to do if you get an error during rails db: reset
What to do if you get an uninitialized constant Likes Controller error
no space left on device What to do if an error occurs
What to do if you get an error when you hit Heroku logs
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get a wrong number of arguments error in binding.pry
What to do if you can't get the text of an element in Selenium
What to do if you cannot execute with the command "Java package name / class name"
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
What to do if you get a java.io.IOException in GlassFish
What to do if you get an error saying "Please enter a valid value" when getting with Rails datetime_field
What to do if you can't use the rails command
What to do if you don't see the test code error message in the terminal console
What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if you installed Ruby with rbenv but the version does not change
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you get an error in Basic authentication during Rails test code
What to do if you get angry with "ERROR: There are no scenarios; must have at least one" even though you should have entered yarn in Docker
What to do if validation doesn't work with the update action
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do if you go offline due to SSL certificate error when running Jenkins on Mac
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
What to do if you install Ubuntu
What to do if you can't install the plugin from the Eclipse marketplace
What to do if you don't like the code generated by swagger-codegen-cli
What to do if you get Application with name appName is already registered. When you try to start GlassFish
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you can't activate the select box created by bootstrap-select
What to do if the server tomcat dies
What to do if you get a javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake in the IBM JDK
What to do if you have enabled Use the WSL2 based engine in Docker Desktop with insufficient WSL2 installation
What to do if you push incorrect information
What to do if you have installed Java for OS X on macOS
What to do if you get angry if you don't have nokogiri while installing wp2txt
What to do if the rails server doesn't run out on AWS cloud9
How to translate the error message into Japanese (What to do if you cannot log in for some reason)
[Java] What to do if you get an error in Eclipse saying "Not allowed at source level below 1.X"
What to do if you get an Argument Error: wrong number of arguments (given 2, expected 0) in your RSpec test
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
What to do if you can't find the JDK you put in SDKMAN after migrating from bash to zsh on macOS
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the debug gem installation fails
What to do if TextToSpeech doesn't work on Android 11
What to do if you accidentally create a model