Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
4fbe14f1
Unverified
Commit
4fbe14f1
authored
Sep 07, 2024
by
protolambda
Committed by
GitHub
Sep 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
semgrep: try to fix CI timeout (#11798)
parent
747c9e7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
config.yml
.circleci/config.yml
+9
-5
No files found.
.circleci/config.yml
View file @
4fbe14f1
...
@@ -1322,10 +1322,6 @@ jobs:
...
@@ -1322,10 +1322,6 @@ jobs:
SEMGREP_REPO_URL
:
<< pipeline.project.git_url >>
SEMGREP_REPO_URL
:
<< pipeline.project.git_url >>
SEMGREP_BRANCH
:
<< pipeline.git.branch >>
SEMGREP_BRANCH
:
<< pipeline.git.branch >>
SEMGREP_COMMIT
:
<< pipeline.git.revision >>
SEMGREP_COMMIT
:
<< pipeline.git.revision >>
# Change job timeout (default is 1800 seconds; set to 0 to disable)
SEMGREP_TIMEOUT
:
3000
docker
:
docker
:
-
image
:
returntocorp/semgrep
-
image
:
returntocorp/semgrep
resource_class
:
medium
resource_class
:
medium
...
@@ -1349,7 +1345,15 @@ jobs:
...
@@ -1349,7 +1345,15 @@ jobs:
echo 'export SEMGREP_REPO_NAME=$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME' >> $BASH_ENV
echo 'export SEMGREP_REPO_NAME=$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME' >> $BASH_ENV
-
run
:
-
run
:
name
:
"
Semgrep
scan"
name
:
"
Semgrep
scan"
command
:
semgrep ci
# --time shows which rules take the most time
# --max-memory (in MiB) limits memory usage
# (defaults to 5GB, but medium runner only has 4GB, so we conservatively limit it to 3GB)
# --timeout (in seconds) limits the time per rule and file.
# SEMGREP_TIMEOUT is the same, but docs have conflicting defaults (5s in CLI flag, 1800 in some places)
# https://semgrep.dev/docs/troubleshooting/semgrep-app#if-the-job-is-aborted-due-to-taking-too-long
command
:
semgrep ci --time --timeout=100 --max-memory=3000
# If semgrep hangs, stop the scan after 20m, to prevent a useless 5h job
no_output_timeout
:
20m
-
notify-failures-on-develop
-
notify-failures-on-develop
go-mod-download
:
go-mod-download
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment