-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Amd/dev/rlieberm/cleanp revert patch #165095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
10000 commits
Select commit
Hold shift + click to select a range
e1eb1d6
Revert "[Clang] Normalize constraints before checking for satisfactio…
ronlieb 7b4738d
Update revert_patches.txt Normalize constraints
ronlieb eb515a2
Amd/dev/rlieberm/relandol is valid (#4359)
ronlieb 54a23bc
merge main into amd-staging
z1-cciauto cb6f7d1
merge main into amd-staging (#4362)
z1-cciauto e851864
Amd/dev/rlieberm/revert normalize afar (#4361)
ronlieb d74508f
[Clang] Normalize constraints before checking for satisfaction (#161671)
cor3ntin 27655c9
update revert_patches.txt to remove Normalize
ronlieb ddbc687
merge main into amd-staging
ronlieb 310a680
merge main into amd-staging (#4364)
z1-cciauto 40a74d7
merge main into amd-staging
z1-cciauto 564c6ad
merge main into amd-staging (#4365)
z1-cciauto 5cefd4c
merge main into amd-staging
z1-cciauto ac24142
merge main into amd-staging (#4366)
z1-cciauto 49b7a66
merge main into amd-staging
z1-cciauto 4d4098e
merge main into amd-staging (#4367)
z1-cciauto 8aae8af
merge main into amd-staging
z1-cciauto 713672d
merge main into amd-staging (#4372)
z1-cciauto 51ec013
merge main into amd-staging
ronlieb 6ec6768
[OpenMP] Fixes openmp-runtimelib test
nicebert ea09548
merge main into amd-staging (#4376)
z1-cciauto 994edf7
merge main into amd-staging
z1-cciauto baf44d7
[Comgr] Fix warnings caused by upstream API changes
lamb-j 75216c0
merge main into amd-staging (#4386)
z1-cciauto 53f3b55
merge main into amd-staging
ronlieb 47e5963
merge main into amd-staging (#4393)
z1-cciauto 92d4a61
merge main into amd-staging
z1-cciauto b91cda6
merge main into amd-staging (#4397)
z1-cciauto 55db283
merge main into amd-staging
z1-cciauto 4495823
merge main into amd-staging (#4401)
z1-cciauto dd976d6
merge main into amd-staging
ronlieb cd4a307
[OpenMP] Fixes flang specific libdir rpath test
nicebert a771dc8
merge main into amd-staging (#4402)
z1-cciauto 2f8df0e
merge main into amd-staging
z1-cciauto 9240f3a
merge main into amd-staging (#4405)
z1-cciauto 5edfc85
merge main into amd-staging
ronlieb 3b4231b
Reapply "[NFC][LLVM] Use ListSeparator in AsmWriter (#161422)"
jurahul 59f4280
merge main into amd-staging (#4408)
z1-cciauto ee67ae5
Reapply "[NFC][LLVM] Use ListSeparator in AsmWriter (#161422)" (#4409)
ronlieb f27db42
merge main into amd-staging
ronlieb 23698f0
[NFC][LLVM] Misc code cleanup in AsmWriter.cpp (#161522)
jurahul 108d9b8
merge main into amd-staging (#4411)
z1-cciauto 6ad8e66
merge main into amd-staging
ronlieb 38071df
merge main into amd-staging (#4413)
z1-cciauto 0c1bd33
merge main into amd-staging
z1-cciauto edb4908
merge main into amd-staging (#4414)
z1-cciauto 9dd7a3a
[NFC][LLVM] Misc code cleanup in AsmWriter.cpp (#161522) (#4412)
ronlieb 8165719
Cleanup revert_patches.txt
ronlieb a3d421c
merge main into amd-staging
z1-cciauto eb6be17
Cleanup revert_patches.txt (#4417)
ronlieb 2f32bc5
[OpenMP] Removes relative runpath deemed unsafe (#4235)
CatherineMoore 7752b22
merge main into amd-staging (#4418)
z1-cciauto 7bf4bab
merge main into amd-staging
z1-cciauto 7264a24
[Comgr] Add more robust lit test for amd_comgr_lookup_code_object()
lamb-j bf6175f
merge main into amd-staging (#4420)
z1-cciauto d8f4ea5
merge main into amd-staging
ronlieb 9641924
[openmp] - Update search method for rocm-device-libs during devicertl…
estewart08 7447d13
Manual update of LLVM_MAIN_REVISION to 555315 API Change
ronlieb eb04fc5
[Comgr] Remove silent undbundle path from LINK_BC_TO_BC
lamb-j f6fbde9
merge main into amd-staging (#4423)
ronlieb 252e1de
[openmp] - Update search method for rocm-device-libs during devicertl…
ronlieb 65e2990
merge main into amd-staging
z1-cciauto 9dea788
merge main into amd-staging (#4427)
z1-cciauto 17fa6e4
merge main into amd-staging
ranapratap55 6e75bea
merge main into amd-staging (#4430)
z1-cciauto 554be6b
merge main into amd-staging
z1-cciauto 284832f
merge main into amd-staging (#4433)
z1-cciauto 4b55c2a
[Flang] Remove self notes/comments that snuck in, in a prior PR
agozillon 648b756
merge main into amd-staging
ronlieb f5b49a4
merge main into amd-staging (#4437)
z1-cciauto d84e3f7
[Flang] Remove self notes/comments that snuck in, in a prior PR (#4436)
ronlieb 03c0f2d
[Flang][Test] Fix xfailed descriptor map test
agozillon c0bd867
merge main into amd-staging
z1-cciauto 30996e1
merge main into amd-staging (#4442)
z1-cciauto 9091a39
[Flang][Test] Fix xfailed descriptor map test (#4440)
ronlieb 6b99d56
merge main into amd-staging
ronlieb 6c801b1
[Compiler-RT] Improve hsa and comgr dependency search for AMDGPU ASan…
ampandey-AMD ca43ea0
merge main into amd-staging (#4446)
z1-cciauto 9cb043f
merge main into amd-staging
ronlieb 71fbd08
merge main into amd-staging (#4452)
z1-cciauto 2a7ac7b
merge main into amd-staging
ronlieb b1356c5
Add -famd-allow-threadprivate-equivalence
mjklemm 4cfccb0
[OpenMP] Re-align the frontend attach map flag with the runtime
agozillon 52f3c17
merge main into amd-staging (#4457)
z1-cciauto aa0337a
merge main into amd-staging
ronlieb 787843b
Manual update of LLVM_MAIN_REVISION to 555559
skganesan008 1a45cc2
[OpenMP] Re-align the frontend attach map flag with the runtime (#4460)
ronlieb f6bc0f6
Manual update of LLVM_MAIN_REVISION to 555559 (#4465)
ronlieb 6c897fb
merge main into amd-staging (#4463)
z1-cciauto 9711a53
merge main into amd-staging
z1-cciauto ccbd44b
merge main into amd-staging (#4468)
z1-cciauto 203a094
merge main into amd-staging
z1-cciauto a815791
merge main into amd-staging (#4469)
z1-cciauto 017f6ab
merge main into amd-staging
z1-cciauto f48dcfd
merge main into amd-staging (#4470)
z1-cciauto ad00072
merge main into amd-staging
z1-cciauto 5cd92f0
merge main into amd-staging (#4472)
z1-cciauto 343af2c
merge main into amd-staging
z1-cciauto cf48810
merge main into amd-staging (#4473)
z1-cciauto 2d4078e
[Comgr] Fix more warnings related to llvm::Triple
lamb-j 1390c05
[Comgr] fix asan warnings
lamb-j b0ab995
merge main into amd-staging
z1-cciauto 7837385
merge main into amd-staging (#4475)
z1-cciauto a78b5f2
merge main into amd-staging
z1-cciauto 550ad3d
merge main into amd-staging (#4476)
z1-cciauto 058f848
merge main into amd-staging
ranapratap55 29114d9
merge main into amd-staging (#4480)
ronlieb f09cc1f
merge main into amd-staging
z1-cciauto 37c6bde
merge main into amd-staging (#4481)
z1-cciauto f9742c6
merge main into amd-staging
z1-cciauto e27e0c4
move gpurun to offload/utils
ronlieb 1a322c2
[Flang][OpenMP] Fix declare target to implicit mapping
agozillon 0619be9
Tighten restrictions a bit with OpenMP 6.0 wording, still solves swim…
agozillon 3523233
merge main into amd-staging (#4488)
z1-cciauto 6a19f79
merge main into amd-staging
ronlieb 8546c1b
move gpurun to offload/utils (#4493)
ronlieb 48b0fff
[Flang][OpenMP] Fix declare target to implicit mapping (#4444)
agozillon d903031
merge main into amd-staging (#4494)
z1-cciauto fca9b1d
merge main into amd-staging
z1-cciauto e1c8d40
merge main into amd-staging
z1-cciauto c2048ea
Replace 'master' with 'masked' to make CI happy
mjklemm 0c48d47
merge main into amd-staging (#4497)
z1-cciauto 19d42ac
merge main into amd-staging (#4499)
z1-cciauto e003618
merge main into amd-staging
z1-cciauto 07c9037
Add -famd-allow-threadprivate-equivalence to pemit variables that app…
ronlieb d7117c3
[Flang][OpenMP] Fix declare target to with USM
agozillon f983118
merge main into amd-staging (#4501)
z1-cciauto f5382ed
merge main into amd-staging
z1-cciauto 348b07e
merge main into amd-staging (#4505)
z1-cciauto 91f7cee
merge main into amd-staging
z1-cciauto 245cc87
merge main into amd-staging
z1-cciauto 3f09781
merge main into amd-staging (#4507)
z1-cciauto 129069b
merge main into amd-staging (#4508)
z1-cciauto 2d01d56
merge main into amd-staging
z1-cciauto b8036f0
merge main into amd-staging (#4509)
z1-cciauto 5a30b64
merge main into amd-staging
ranapratap55 69b2d9a
merge main into amd-staging (#4510)
z1-cciauto 6206911
merge main into amd-staging
z1-cciauto f0e12ec
merge main into amd-staging (#4513)
z1-cciauto 8e78e60
[openmp] fix kmpc build
ronlieb 07ae8aa
[openmp] fix kmpc build (#4516)
ronlieb 73df613
[openmp] - Add -fopenmp to link options for OpenMP::omp target
estewart08 4e264c9
merge main into amd-staging
ronlieb 71b16e6
merge main into amd-staging (#4523)
z1-cciauto 9c2498b
[openmp] - Add -fopenmp to link options for OpenMP::omp target (#4521)
ronlieb 9da066a
merge main into amd-staging
z1-cciauto fdb94e7
merge main into amd-staging (#4527)
z1-cciauto d64decc
merge main into amd-staging
z1-cciauto c42f721
merge main into amd-staging (#4528)
z1-cciauto 4218149
Add builtin/intrinsic global_(load|store)_b128 (#4455)
macurtis-amd 0f09860
merge main into amd-staging
z1-cciauto 5ee27ae
ReGen llvm/test/Transforms/InstCombine/heterogeneous-poison-dbg-rauw.ll
ronlieb a92a79e
merge main into amd-staging (#4532)
z1-cciauto cdaed82
merge main into amd-staging
z1-cciauto 2f2ce5d
SWDEV-526498 - Stop including Perl scripts in HIPCC
david-salinas bcd0010
merge main into amd-staging (#4537)
z1-cciauto a6fe327
merge main into amd-staging
ronlieb 028a678
merge main into amd-staging (#4544)
z1-cciauto 8c009c8
[Flang][OpenMP] Fix declare target to with USM (#4503)
ronlieb b7f9a40
merge main into amd-staging
ronlieb 6c655d6
[Comgr] Use llvm::isAlnum instead of our own version (#4535)
jmmartinez ac8d915
merge main into amd-staging (#4554)
z1-cciauto a0582a6
merge main into amd-staging
z1-cciauto 5daea82
SWDEV-526498 - Stop including Perl scripts in HIPCC (#3627)
34d21cf
Manual update of LLVM_MAIN_REVISION to 556323
skganesan008 d49ab34
Manual update of LLVM_MAIN_REVISION to 556323 (#4560)
ronlieb e6d0ffa
merge main into amd-staging (#4556)
z1-cciauto dd64a8f
merge main into amd-staging
ronlieb 01eeac7
merge main into amd-staging (#4561)
z1-cciauto 991a492
merge main into amd-staging
z1-cciauto 8362f36
merge main into amd-staging (#4562)
z1-cciauto 75afed1
merge main into amd-staging
z1-cciauto 45eb496
merge main into amd-staging (#4564)
z1-cciauto 1e7d8aa
merge main into amd-staging
z1-cciauto b2f0328
Regen llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info-m…
ronlieb 8d09419
Revert "[AMDGPU] Remove redundant s_cmp_lg_* sX, 0 " (#164116)
jplehr ed0e75e
merge main into amd-staging (#4566)
z1-cciauto 0e6f39c
merge main into amd-staging
z1-cciauto 055c15b
merge main into amd-staging (#4567)
z1-cciauto 98121b8
merge main into amd-staging
z1-cciauto 68893a9
merge main into amd-staging (#4568)
z1-cciauto 7e6dfb0
merge main into amd-staging
z1-cciauto 458e895
merge main into amd-staging (#4570)
z1-cciauto b269942
merge main into amd-staging
z1-cciauto 683ed44
merge main into amd-staging (#4571)
z1-cciauto 2a016ce
merge main into amd-staging
ronlieb 02518b8
merge main into amd-staging (#4574)
z1-cciauto d965716
merge main into amd-staging
z1-cciauto ac6c5a6
merge main into amd-staging (#4577)
z1-cciauto b177725
merge main into amd-staging
z1-cciauto 3d0ab97
[Flang] Remove merge artifact
agozillon 895d8f0
merge main into amd-staging (#4582)
z1-cciauto 1989bff
merge main into amd-staging
z1-cciauto 4dccc89
merge main into amd-staging (#4587)
z1-cciauto 75eb2a2
[Flang] Remove merge artifact (#4584)
ronlieb 081d7f4
merge main into amd-staging
z1-cciauto abac7bf
merge main into amd-staging (#4591)
z1-cciauto d4cedc5
merge main into amd-staging
z1-cciauto 8662397
merge main into amd-staging (#4592)
z1-cciauto 439fb8c
disable PSDB triggers through azure pipeline
skganesan008 53c2af1
Disable global pull request template for this repository
skganesan008 65f253d
[OpenMP][Flang] PR 164043 reference merge PR (#333)
agozillon 084ec38
merge main into amd-staging
ronlieb 20410c0
merge main into amd-staging (#336)
ronlieb 9bc87db
merge main into amd-staging
ronlieb f71dc6f
merge main into amd-staging
ronlieb d04ce3d
merge main into amd-staging
ranapratap55 14ddee5
merge main into amd-staging (#338)
ronlieb 3e02de7
merge main into amd-staging
ronlieb e73d555
merge main into amd-staging (#339)
ronlieb e937736
merge main into amd-staging
ronlieb ff37c15
Regen llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info-m…
ronlieb 6f44ba8
merge main into amd-staging (#346)
ronlieb 7cee817
[Offload][OMPT] De-type profiler data in API (#340)
jplehr 6eeca37
merge main into amd-staging
ronlieb 83f7f2e
merge main into amd-staging (#350)
ronlieb bc294b3
merge main into amd-staging
ronlieb 53ce339
Revert "[clang] Don't silently inherit the VFS from `FileManager` (#1…
ronlieb cfb6bfc
merge main into amd-staging (#354)
ronlieb 0216fcf
[COMGR] Fix API usage per upstream changes (#356)
chinmaydd 51d58bb
merge main into amd-staging
ronlieb 61cfd54
Remove comgr issue: revert_patches.txt
ronlieb 8a5f6df
Regen llvm/test/Transforms/PhaseOrdering/always-inline-alloca-promoti…
ronlieb d8ece93
merge main into amd-staging (#358)
ronlieb 8048496
merge main into amd-staging
ronlieb 832dd1e
merge main into amd-staging (#359)
ronlieb ad2718d
merge main into amd-staging
ronlieb 6ffda03
merge main into amd-staging (#361)
ronlieb 752e345
merge main into amd-staging
ronlieb d35d1d2
merge main into amd-staging (#364)
ronlieb 8157e06
[OMPT] Fix assertion in per-device-enabled tracing (#362)
jplehr 8968fad
merge main into amd-staging
ronlieb 9583ee3
amd-device-libs: Respect ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW in …
traversaro f1e9f96
merge main into amd-staging (#367)
ronlieb 4982567
merge main into amd-staging
ranapratap55 80d7e59
merge main into amd-staging (#370)
ronlieb d2bb96d
merge main into amd-staging
ronlieb 0a67184
Revert "REAPPLY [ORC] Add automatic shared library resolver for unres…
ronlieb ff46ecd
Revert ORC patch
ronlieb 167a295
merge main into amd-staging (#372)
ronlieb 1762f42
merge main into amd-staging
z1-cciauto bd43e05
regen llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.b128.ll
ronlieb eebb601
Manual update of LLVM_MAIN_REVISION to 556851 (#377)
skganesan008 b06c892
merge main into amd-staging (#375)
ronlieb a852d97
[OMPT] Avoid unused allocations & code clean up (#378)
jplehr 8bb8301
merge main into amd-staging
z1-cciauto f3d3a2b
merge main into amd-staging (#385)
ronlieb 14d7091
merge main into amd-staging
z1-cciauto 8315cf4
merge main into amd-staging (#387)
ronlieb 5cfaa5b
update revert_patches.txt : remove ORC
ronlieb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| resources: | ||
| repositories: | ||
| - repository: pipelines_repo | ||
| type: github | ||
| endpoint: ROCm | ||
| name: ROCm/ROCm | ||
|
|
||
| variables: | ||
| - group: common | ||
| - template: /.azuredevops/variables-global.yml@pipelines_repo | ||
|
|
||
| trigger: | ||
| batch: true | ||
| branches: | ||
| include: | ||
| - amd-staging | ||
| - amd-mainline-open | ||
| paths: | ||
| exclude: | ||
| - .ci | ||
| - .github | ||
| - '*.md' | ||
| - '**/*.md' | ||
| - LICENSE.TXT | ||
|
|
||
| pr: none | ||
|
|
||
| jobs: | ||
| - template: ${{ variables.CI_COMPONENT_PATH }}/llvm-project.yml@pipelines_repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "monthly" | ||
| groups: | ||
| github-actions: | ||
| patterns: | ||
| - "*" | ||
| - package-ecosystem: "pip" | ||
| directory: "/llvm/docs" | ||
| schedule: | ||
| interval: "monthly" | ||
| groups: | ||
| llvm-docs-requirements: | ||
| patterns: | ||
| - "*" | ||
| - package-ecosystem: "pip" # See documentation for possible values | ||
| directory: "/amd/hipcc/docs/sphinx" # Location of package manifests | ||
| open-pull-requests-limit: 10 | ||
| schedule: | ||
| interval: "daily" | ||
| labels: | ||
| - "documentation" | ||
| reviewers: | ||
| - "samjwu" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| name: Compiler CI PSDB trigger on amd-staging branch | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| pull_request: | ||
| branches: [amd-staging] | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
| workflow_dispatch: | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel, below is a single job called invoke jenkins jobs | ||
| jobs: | ||
| # This workflow contains a single job called "invoke_jenkins_PSDB" | ||
| invoke_jenkins_PSDB: | ||
| if: github.event.pull_request.draft == false | ||
| runs-on: | ||
| group: compiler-generic-runners | ||
| env: | ||
| svc_acc_org_secret: ${{secrets.CI_GITHUB_TOKEN}} | ||
| input_sha: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }} | ||
| input_pr_num: ${{ github.event.pull_request.number != '' && github.event.pull_request.number || 0 }} | ||
| input_pr_url: ${{ github.event.pull_request.html_url != '' && github.event.pull_request.html_url || '' }} | ||
| input_pr_title: ${{ github.event.pull_request.title != '' && github.event.pull_request.title || '' }} | ||
| # set the pipeline name here based on branch name | ||
| pipeline_name: ${{secrets.CI_JENKINS_JOB_NAME}} | ||
| JENKINS_URL: ${{secrets.CI_JENKINS_URL}} | ||
| CONTAINER_IMAGE: ${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }} | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
|
|
||
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
| - name: Set environment variable for container image | ||
| run: | | ||
| echo "CONTAINER_IMAGE=${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }}" >> $GITHUB_ENV | ||
| echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV | ||
| - name: Pull container image | ||
| run: docker pull "${{env.CONTAINER_IMAGE}}" | ||
|
|
||
|
|
||
| - name: Run container | ||
| run: | | ||
| docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity | ||
| #docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "git clone ${{secrets.CI_UTILS_REPO}} ." | ||
| docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'" | ||
| - name: Escape pull request title | ||
| run: | | ||
| import json | ||
| import os | ||
| import shlex | ||
| with open('${{ github.event_path }}') as fh: | ||
| event = json.load(fh) | ||
| escaped = event['pull_request']['title'] | ||
| with open(os.environ['GITHUB_ENV'], 'a') as fh: | ||
| print(f'PR_TITLE={escaped}', file=fh) | ||
| shell: python3 {0} | ||
|
|
||
| - name: Run Jenkins Cancel Script | ||
| env: | ||
| JENKINS_URL: ${{secrets.CI_JENKINS_URL}} | ||
| JENKINS_USER: ${{secrets.CI_JENKINS_USER}} | ||
| JENKINS_API_TOKEN: ${{secrets.CI_JENKINS_TOKEN}} | ||
| JENKINS_JOB_NAME: ${{secrets.CI_JENKINS_JOB_NAME}} | ||
| PR_NUMBER: ${{ github.event.pull_request.number }} | ||
| COMMIT_HASH: ${{ github.event.after }} | ||
| run: | | ||
| docker exec -e JENKINS_JOB_NAME=${{secrets.CI_JENKINS_JOB_NAME}} -e PR_NUMBER=${{ github.event.pull_request.number }} -e COMMIT_HASH=${{ github.event.after }} -e JENKINS_URL=${{secrets.CI_JENKINS_URL}} -e JENKINS_USER=${{secrets.CI_JENKINS_USER}} -e JENKINS_API_TOKEN=${{secrets.CI_JENKINS_TOKEN}} "${{env.CONTAINER_NAME}}" /bin/bash -c "PYTHONHTTPSVERIFY=0 python3 cancel_previous_build.py" | ||
| # Runs a set of commands using the runners shell | ||
| - name: Getting Event Details | ||
| run: | | ||
| echo $(pwd) | ||
| echo $GITHUB_ENV | ||
| echo $GITHUB_REPOSITORY | ||
| echo $GITHUB_SERVER_URL | ||
| echo "GITHUB_SHA is: $GITHUB_SHA" | ||
| echo "GITHUB_WORKFLOW_SHA is: $GITHUB_WORKFLOW_SHA" | ||
| echo "GITHUB_BASE_REF is: $GITHUB_BASE_REF" | ||
| echo "GITHUB_REF_NAME is: $GITHUB_REF_NAME" | ||
| echo "github.event.pull_request.id is: ${{github.event.pull_request.id}}" | ||
| echo "github.event.pull_request.html_url is: ${{github.event.pull_request.html_url}}" | ||
| echo "github.event.pull_request.number is: ${{github.event.pull_request.number}}" | ||
| echo "github.event.pull_request.url is: ${{github.event.pull_request.url}}" | ||
| echo "github.event.pull_request.issue_url is: ${{github.event.pull_request.issue_url}}" | ||
| echo "github.event.pull_request.head.sha is: ${{github.event.pull_request.head.sha}}" | ||
| echo "github.event.pull_request.base.ref is: ${{github.event.pull_request.base.ref}}" | ||
| echo "github.event.pull_request.merge_commit_sha is: ${{github.event.pull_request.merge_commit_sha}}" | ||
| echo "github.event.pull_request is: ${{github.event.pull_request}}" | ||
| - name: Trigger Jenkins Pipeline | ||
| if: steps.check_changes.outcome != 'failure' | ||
| run: | | ||
| echo "--Running jenkins_api.py with input sha - $input_sha for pull request - $input_pr_url" | ||
| docker exec -e GITHUB_REPOSITORY="$GITHUB_REPOSITORY" -e svc_acc_org_secret="$svc_acc_org_secret" -e input_sha="$input_sha" -e input_pr_url="$input_pr_url" -e pipeline_name="$pipeline_name" \ | ||
| -e input_pr_num="$input_pr_num" -e PR_TITLE="$PR_TITLE" -e JENKINS_URL="$JENKINS_URL" -e GITHUB_PAT="$svc_acc_org_secret" "${{env.CONTAINER_NAME}}" \ | ||
| /bin/bash -c 'echo \"PR NUM: "$input_pr_num"\" && PYTHONHTTPSVERIFY=0 python3 jenkins_api.py -s \"${JENKINS_URL}\" -jn "$pipeline_name" -ghr "$GITHUB_REPOSITORY" -ghsha "$input_sha" -ghprn "$input_pr_num" -ghpru "$input_pr_url" -ghprt "$PR_TITLE" -ghpat="$svc_acc_org_secret"' | ||
| - name: Stop and remove container | ||
| if: always() | ||
| run: | | ||
| docker stop "${{env.CONTAINER_NAME}}" | ||
| docker rm "${{env.CONTAINER_NAME}}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| name: Trigger amd-debug Buildbot Build | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [amd-debug] | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
|
|
||
|
|
||
| jobs: | ||
| trigger-build: | ||
| if: github.event.pull_request.draft == false | ||
| runs-on: | ||
| group: compiler-generic-runners | ||
| env: | ||
| PR_SHA: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }} | ||
| PR_NUMBER: ${{ github.event.pull_request.number != '' && github.event.pull_request.number || 0 }} | ||
| PR_URL: ${{ github.event.pull_request.html_url != '' && github.event.pull_request.html_url || '' }} | ||
| PR_TITLE: ${{ github.event.pull_request.title != '' && github.event.pull_request.title || '' }} | ||
| BASE_BRANCH: ${{ github.event.pull_request.base.ref != '' && github.event.pull_request.base.ref || '' }} | ||
| GITHUB_TOKEN: ${{secrets.CI_GITHUB_TOKEN}} | ||
|
|
||
| steps: | ||
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
| - name: Set environment variable for container image | ||
| run: | | ||
| echo "CONTAINER_IMAGE=${{ secrets.BUILDBOT_DOCKER_IMAGE }}" >> $GITHUB_ENV | ||
| echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV | ||
| - name: Pull container image | ||
| run: docker pull "${{env.CONTAINER_IMAGE}}" | ||
|
|
||
| - name: Run container | ||
| run: | | ||
| docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity | ||
| docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'" | ||
| - name: Escape pull request title | ||
| run: | | ||
| import json | ||
| import os | ||
| import shlex | ||
| with open('${{ github.event_path }}') as fh: | ||
| event = json.load(fh) | ||
| escaped = event['pull_request']['title'] | ||
| with open(os.environ['GITHUB_ENV'], 'a') as fh: | ||
| print(f'PR_TITLE={escaped}', file=fh) | ||
| shell: python3 {0} | ||
|
|
||
| - name: Trigger Buildbot Build | ||
| run: | | ||
| echo "${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_WORKER_PORT }}" | ||
| docker exec -e PR_TITLE="$PR_TITLE" "${{env.CONTAINER_NAME}}" /bin/bash -c 'buildbot sendchange -W ${{ secrets.BUILDBOT_USER }} -a ${{secrets.BUILDBOT_USER}}:${{secrets.BUILDBOT_PWD}} --master="${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_WORKER_PORT }}" --branch=${{ env.BASE_BRANCH }} --revision=${{ env.PR_SHA }} -p PR_NUMBER:${{ env.PR_NUMBER }} -p PR_TITLE:"$PR_TITLE" -p PR_URL:${{ env.PR_URL }} -p SHA:${{ env.PR_SHA }}' | ||
| - name: Set Initial Status to Pending | ||
| run: | | ||
| docker exec -e PR_SHA=$PR_SHA -e GITHUB_TOKEN=$GITHUB_TOKEN "${{env.CONTAINER_NAME}}" /bin/bash -c "python3 -c \" | ||
| import os | ||
| import requests | ||
| GITHUB_TOKEN = os.getenv('GITHUB_TOKEN') | ||
| TARGET_SHA = os.getenv('PR_SHA') | ||
| print('debug', TARGET_SHA) | ||
| api_url = f'https://api.github.com/repos/AMD-Lightning-Internal/llvm-project/statuses/{TARGET_SHA}' | ||
| headers = { | ||
| 'Authorization': f'token {GITHUB_TOKEN}', | ||
| 'Content-Type': 'application/json' | ||
| } | ||
| payload = { | ||
| 'state': 'pending', | ||
| 'context': 'buildbot', | ||
| 'description': 'Build is in queue' | ||
| } | ||
| response = requests.post(api_url, json=payload, headers=headers) | ||
| if response.status_code == 201: | ||
| print('Status set to pending successfully.') | ||
| else: | ||
| print(f'Failed to set status: {response.status_code} {response.text}') | ||
| \"" | ||
| - name: Poll Buildbot build status | ||
| run: | | ||
| python3 -c " | ||
| import os | ||
| import time | ||
| import requests | ||
| GITHUB_TOKEN = os.getenv('GITHUB_TOKEN') | ||
| BUILD_URL = 'http://${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_MASTER_PORT }}/api/v2/builds' | ||
| TARGET_SHA = os.getenv('PR_SHA') | ||
| print('debug', TARGET_SHA) | ||
| MAX_RETRIES = 10 | ||
| RETRY_INTERVAL = 30 # seconds | ||
| def get_build_properties(build_id): | ||
| build_properties_url = f'http://${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_MASTER_PORT }}/api/v2/builds/{build_id}/properties' | ||
| response = requests.get(build_properties_url, headers={'Accept': 'application/json', 'Authorization': f'token {GITHUB_TOKEN}'}) | ||
| return response.json() | ||
| for i in range(MAX_RETRIES): | ||
| response = requests.get(BUILD_URL, headers={'Accept': 'application/json'}) | ||
| response_json = response.json() | ||
| print(f'Attempt {i + 1}: Buildbot response:', response_json) | ||
| # Check if any build has the target SHA | ||
| builds = response_json.get('builds', []) | ||
| print (builds) | ||
| build_with_sha = None | ||
| for build in builds: | ||
| build_id = build['buildid'] | ||
| properties = get_build_properties(build_id) | ||
| #print(properties) | ||
| #prop = properties.get('revision', []) | ||
|
|
||
| if 'properties' in properties: | ||
| print (properties['properties']) | ||
| if 'revision' in properties['properties'][0]: | ||
| print(properties['properties'][0]) | ||
| if 'revision' in properties['properties'][0] and properties['properties'][0]['revision'] [0] == TARGET_SHA: | ||
| build_with_sha = build | ||
| break | ||
|
|
||
| if build_with_sha: | ||
| print('Build started successfully for SHA:', TARGET_SHA) | ||
| break | ||
| else: | ||
| print('Build for SHA not started yet, retrying in', RETRY_INTERVAL, 'seconds') | ||
| time.sleep(RETRY_INTERVAL) | ||
| else: | ||
| print('Build did not start for SHA:', TARGET_SHA, 'after maximum retries') | ||
| exit(1) | ||
| " | ||
| - name: Stop and remove container | ||
| if: always() | ||
| run: | | ||
| docker stop "${{env.CONTAINER_NAME}}" | ||
| docker rm "${{env.CONTAINER_NAME}}" | ||
|
Comment on lines
+11
to
+135
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| name: Trigger compute-rocm-dkms-afar job on push | ||
|
|
||
| on: | ||
| push: # This triggers the workflow on push events | ||
| branches: | ||
| - amd-staging | ||
| workflow_dispatch: # This allows manual triggering of the workflow | ||
|
|
||
| jobs: | ||
| trigger_jenkins: | ||
| runs-on: | ||
| group: compiler-generic-runners | ||
|
|
||
| steps: | ||
| - name: Set environment variable for container image | ||
| run: | | ||
| echo "CONTAINER_IMAGE=${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }}" >> $GITHUB_ENV | ||
| echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV | ||
| - name: Pull container image | ||
| run: docker pull "${{env.CONTAINER_IMAGE}}" | ||
|
|
||
| - name: Run container | ||
| run: | | ||
| docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity | ||
| docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'" | ||
| - name: Trigger compute-rocm-dkms-afar job | ||
| run: | | ||
| docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "python -c \" | ||
| import requests | ||
| import time | ||
| from requests.auth import HTTPBasicAuth | ||
| jenkins_user = '${{ secrets.CI_JENKINS_USER }}' | ||
| jenkins_token = '${{ secrets.ROCM_JENKINS_CI_TOKEN }}' | ||
| jenkins_host = '${{ secrets.ROCM_JENKINS_HOST }}' | ||
| jenkins_job = '${{ secrets.ROCM_JENKINS_OSDB_JOB }}' | ||
| jenkins_url = f'{jenkins_host}/job/{jenkins_job}/buildWithParameters' | ||
| response = requests.post(jenkins_url, auth=HTTPBasicAuth(jenkins_user, jenkins_token)) | ||
| if response.status_code == 201: | ||
| print('Jenkins job triggered successfully!') | ||
| queue_url = response.headers.get('Location') | ||
| if queue_url: | ||
| print(f'Queue URL: {queue_url}') | ||
| print(f'Getting build URL(max 5 attempts with 10seconds interval)...') | ||
| # Poll the queue item to get the build number, limited to 5 attempts | ||
| max_attempts = 5 | ||
| attempts = 0 | ||
| while attempts < max_attempts: | ||
| queue_response = requests.get(queue_url + 'api/json', auth=HTTPBasicAuth(jenkins_user, jenkins_token)) | ||
| queue_data = queue_response.json() | ||
| if 'executable' in queue_data: | ||
| build_number = queue_data['executable']['number'] | ||
| build_url = f'{jenkins_host}/job/{jenkins_job}/{build_number}/' | ||
| print(f'Build URL: {build_url}') | ||
| break | ||
| attempts += 1 | ||
| time.sleep(10) # Wait for 10 seconds before polling again | ||
| else: | ||
| print('Exceeded maximum attempts to get the build URL. The trigger happened, so not failing the workflow') | ||
| else: | ||
| print('Build URL not found in the response headers.') | ||
| elif response.status_code == 200: | ||
| print('Request was successful, but check the response content for details.') | ||
| print(response.text) | ||
| else: | ||
| print(f'Failed to trigger Jenkins job. Status code: {response.status_code}') | ||
| \"" | ||
| - name: Stop and remove container | ||
| if: always() | ||
| run: | | ||
| docker stop "${{env.CONTAINER_NAME}}" | ||
| docker rm "${{env.CONTAINER_NAME}}" | ||
|
Comment on lines
+11
to
+79
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium