question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeout for running, building, linting any code

See original GitHub issue

Eg:

fn main() { /*abc*/ }
   Compiling rand_os v0.1.2
   Compiling iovec v0.1.2
   Compiling num_cpus v1.10.0
   Compiling net2 v0.2.33
   Compiling memchr v2.2.0
   Compiling time v0.1.42
   Compiling rand v0.4.6
   Compiling xattr v0.2.2
   Compiling filetime v0.2.4
   Compiling atty v0.2.11
   Compiling termion v1.5.1
   Compiling MacTypes-sys v2.1.0
   Compiling memmap v0.7.0
   Compiling thread-id v3.3.0
   Compiling crossbeam-epoch v0.7.1
   Compiling crossbeam-epoch v0.3.1
   Compiling quote v0.6.11
   Compiling deflate v0.7.19
/root/entrypoint.sh: line 8:     7 Killed                  timeout --signal=KILL ${timeout} "$@"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
shepmastercommented, Mar 13, 2019

I see #6734 has been merged,

There are multiple steps:

  1. The fix has to be merged into the Cargo codebase (that was https://github.com/rust-lang/cargo/pull/6734)
  2. The Cargo update needs to be merged into Rust (this is https://github.com/rust-lang/rust/pull/59143)
  3. Rust needs to be released (should be the next night, assuming nothing prevents the build from succeeding)
1reaction
ehusscommented, Mar 10, 2019

Yea, I think I have a fix. Testing with docker is a little slow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - golangci-lint
# Options for analysis running. run: # The default concurrency value is the number of available CPU. ... # Timeout for analysis, e.g....
Read more >
Use golangci-lint for static code analysis (!1722) - GitLab.org
All linting jobs combined take less than 15 seconds to complete. As far as I can see adding the current tools should be...
Read more >
Golang linter issues 'context loading failed: no go files to ...
in our project for linting our Golang code. Until now, what we did is running this bash script (from the root directory of...
Read more >
Introduction to Linting in Go - Mohit Khare's Blog
When you are building any software application you'll have to deal with ... run: concurrency: 4 timeout: 3m issues-exit-code: 1 tests: true ...
Read more >
Shell overview - Pants build system
shUnit2: write light-weight unit tests for your Shell code. ... pants fmt lint dir: to run on all files in the directory, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found