Skip to content

Commit

Permalink
explictly set limits for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pxLi committed Sep 9, 2020
1 parent f6763fd commit 0e18494
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/blossom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
id: pull_request_data
uses: octokit/[email protected]
with:
route: GET /repos/:repository/pulls/:issue_id
route: 'GET /repos/:repository/pulls/:issue_id'
repository: ${{ github.repository }}
issue_id: ${{ github.event.issue.number }}
env:
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Update status
uses: octokit/[email protected]
with:
route: POST /repos/:repository/statuses/:sha
route: 'POST /repos/:repository/statuses/:sha'
repository: ${{ github.repository }}
sha: ${{ fromJson(steps.pull_request_data.outputs.data).head.sha }}
target_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Expand All @@ -75,8 +75,9 @@ jobs:
with:
java-version: 1.8

- name: Maven install
run: mvn clean install -DskipTests -T 1.5C
- name: Get project data (maven)
run: |
echo ::set-env name=projects::$(mvn -am dependency:tree | grep maven-dependency-plugin | awk '{ out="com.nvidia:"$(NF-1);print out }' | grep rapids | xargs | sed -e 's/ /,/g')
- name: Add mask
run: echo "::add-mask::${{ secrets.BLACKDUCK_URL }}"
Expand All @@ -90,6 +91,7 @@ jobs:
args: >
--blackduck.url="https://${{ secrets.BLACKDUCK_URL }}"
--blackduck.api.token="${{ secrets.BLACKDUCK_API_TOKEN }}"
--detect.maven.build.command="-pl='$PROJECTS -am'"
--detect.force.success=false
--detect.parallel.processors=0
--detect.project.name="${{ github.repository }}"
Expand Down
7 changes: 6 additions & 1 deletion jenkins/Jenkinsfile-blossom.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
requests:
cpu: 4
memory: 8Gi
limits:
cpu: 8
memory: 16Gi
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
Expand Down Expand Up @@ -67,6 +70,8 @@ spec:
cpu: 8
memory: 16Gi
limits:
cpu: 16
memory: 32Gi
nvidia.com/gpu: 1
restartPolicy: Never
backoffLimit: 2
Expand Down Expand Up @@ -114,7 +119,7 @@ pipeline {
LIBCUDF_KERNEL_CACHE_PATH = '/tmp/.cudf'
ARTIFACTORY_NAME = "${ArtifactoryConstants.ARTIFACTORY_NAME}"
GITHUB_TOKEN = credentials("github-token")
// TODO: rename this credential after we shutdown premerge pipine on ngcc
// TODO: rename this credential after we shutdown premerge pipeline on ngcc
URM_CREDS = credentials("svcngcc_artifactory")
URM_URL = "https://${ArtifactoryConstants.ARTIFACTORY_NAME}/artifactory/sw-spark-maven"
}
Expand Down

0 comments on commit 0e18494

Please sign in to comment.