-
Notifications
You must be signed in to change notification settings - Fork 7
Remove py-libclang, add thapi@0.0.13
#109
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
41117ca
Update h2yaml versions
thilinarmtb 4672e2b
Update h2yaml package
thilinarmtb 0b439c4
Pin llvm version to 18
thilinarmtb 55e082c
Install libclang and python3-clang
thilinarmtb 28d8863
Move tmate out of the setup-thapi-deps action
thilinarmtb 3566ed9
Patch llvm@18 packages.yml entry to have `+python`
thilinarmtb 4bad5fc
Mark h2yaml as a build dependency
thilinarmtb ff3b60e
Add the latest h2yaml version
thilinarmtb 82cd44b
Appending PYTHONPATH to see if we can import clang
thilinarmtb 86f6d91
Much cleaner workaround for GitHub CI
thilinarmtb 06ff710
Minor cleanup
thilinarmtb a384ca2
Find site-packages dir using major/minor versions
thilinarmtb 8e754ee
Add thapi v0.0.13
thilinarmtb 974149f
Update GitHub CI
thilinarmtb ae52696
Check thapi for clang-parser in bash
thilinarmtb c5778ff
Rename the workflow
thilinarmtb 2a359c6
Remove `thapi` from CI matrix since it is the same as `thapi@master`
thilinarmtb c6d59ce
Fix a typo
thilinarmtb edc7d04
Add the skip check
thilinarmtb 66951eb
Get rid of deprecated `+mpi` variant
thilinarmtb e6d8e29
Add `+clang-parser`
thilinarmtb 84e9178
Remove pin to llvm@18, explicitly ask for `+clang`
thilinarmtb a7c4194
Install llvm from apt during dependency install
thilinarmtb c4e41bb
Add llvm apt-key
thilinarmtb 875a4a2
Use json output to figure out the version
thilinarmtb 099202b
Run CI only on PR and commits to main
thilinarmtb e3122aa
Get rid of pre_job
thilinarmtb 0f5bf90
Find compilers after installing llvm
thilinarmtb 42d4b48
Update alternatives
thilinarmtb 0459357
Use the same spec
thilinarmtb 1a339fb
Get rid of Polaris workaround
thilinarmtb 180d119
Avoid updating alternatives
thilinarmtb d4bc17d
Re-add Polaris workaround
thilinarmtb 173feba
Increase tmate time to 2h
thilinarmtb 3068769
Split the install workflow into two
thilinarmtb f2157d8
Fix h2yaml versions
thilinarmtb 7856ebb
More fixes and simplifications
thilinarmtb e05ac18
Add a comment on ^llvm@${LLVM_FULL_VER}
thilinarmtb db2610c
Fix a typo, mv presubmit.yml --> ci.yml
thilinarmtb 806db98
Install LLVM/Clang as part of the action
thilinarmtb 36d61bc
thapi --> THAPI
thilinarmtb b4c557c
Minor refactor
thilinarmtb c4b3909
deprecated --> legacy
thilinarmtb 6103ad7
Add comments
thilinarmtb fd03fbf
Update actions to v6
thilinarmtb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
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
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,164 @@ | ||
| name: THAPI unit tests | ||
|
thilinarmtb marked this conversation as resolved.
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| inputs: | ||
| debug_enabled: | ||
| type: boolean | ||
| description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
| required: false | ||
| default: false | ||
| env: | ||
| SPACK_OPT: "--concurrent-packages 2 --show-log-on-error --fail-fast" | ||
| CACHE_DIR: "${{ github.workspace }}/thapi_cache_${{ github.run_id }}" | ||
| CACHE_DIR_LEGACY: "${{ github.workspace }}/thapi_cache_legacy_${{ github.run_id }}" | ||
| jobs: | ||
| install_legacy_dependencies: | ||
| runs-on: ubuntu-latest | ||
| name: Install dependencies (legacy) | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Setup tmate session | ||
| uses: mxschmitt/action-tmate@v3 | ||
| if: ${{ inputs.debug_enabled }} | ||
| - name: Checkout dependencies (spack,...) | ||
| uses: ./.github/actions/setup-thapi-deps | ||
| with: | ||
| cache-dir: ${{ env.CACHE_DIR_LEGACY }} | ||
| install-llvm: 'false' | ||
| - name: Install dependencies | ||
| run: | | ||
| # Install the dependencies of the latest legacy version. | ||
| . external/spack/share/spack/setup-env.sh | ||
| spack install --only dependencies $SPACK_OPT thapi@0.0.12 | ||
|
thilinarmtb marked this conversation as resolved.
|
||
| - name: Upload THAPI build cache | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: thapi_cache_legacy | ||
| include-hidden-files: true | ||
| path: ${{ env.CACHE_DIR_LEGACY }} | ||
| if-no-files-found: error | ||
| - name: Block to allow inspecting failures | ||
| run: sleep 120m | ||
| if: ${{ failure() && inputs.debug_enabled }} | ||
| install_legacy: | ||
| strategy: | ||
| matrix: | ||
| version: ['thapi@0.0.7', 'thapi@0.0.8', 'thapi@0.0.9', 'thapi@0.0.10', 'thapi@0.0.11', 'thapi@0.0.12'] | ||
| needs: install_legacy_dependencies | ||
| runs-on: ubuntu-latest | ||
| name: Install ${{ matrix.version }} (legacy) | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Setup tmate session | ||
| uses: mxschmitt/action-tmate@v3 | ||
| if: ${{ inputs.debug_enabled }} | ||
| - name: Download THAPI build cache | ||
| uses: actions/download-artifact@v6 | ||
| with: | ||
| name: thapi_cache_legacy | ||
| path: ${{ env.CACHE_DIR_LEGACY }} | ||
| - name: Checkout dependencies (spack,...) | ||
| uses: ./.github/actions/setup-thapi-deps | ||
| with: | ||
| cache-dir: ${{ env.CACHE_DIR_LEGACY }} | ||
| install-llvm: 'false' | ||
| - name: Install ${{ matrix.version }} | ||
| if: ${{ matrix.version != 'thapi@develop ^lttng-tools@master ^lttng-ust@master ^babeltrace2@master' }} | ||
| run: | | ||
| . external/spack/share/spack/setup-env.sh | ||
| spack install $SPACK_OPT ${{ matrix.version }} | ||
| - name: Block to allow inspecting failures | ||
| run: sleep 120m | ||
| if: ${{ failure() && inputs.debug_enabled }} | ||
| install_dependencies: | ||
| runs-on: ubuntu-latest | ||
| name: Install dependencies | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Setup tmate session | ||
| uses: mxschmitt/action-tmate@v3 | ||
| if: ${{ inputs.debug_enabled }} | ||
| - name: Checkout dependencies (spack,...) | ||
| uses: ./.github/actions/setup-thapi-deps | ||
| with: | ||
| cache-dir: ${{ env.CACHE_DIR }} | ||
| install-llvm: 'true' | ||
| - name: Install dependencies | ||
| run: | | ||
| . external/spack/share/spack/setup-env.sh | ||
| # We have to use the exact llvm version from apt package as a direct dependency | ||
| # as the versions in apt and spack doesn't agree to the patch version. The | ||
| # latter will force spack to build llvm from scratch. | ||
| spack install --only dependencies $SPACK_OPT thapi@develop ^llvm@${LLVM_FULL_VER} | ||
| - name: Upload THAPI build cache | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: thapi_cache | ||
| include-hidden-files: true | ||
| path: ${{ env.CACHE_DIR }} | ||
| if-no-files-found: error | ||
| - name: Block to allow inspecting failures | ||
| run: sleep 120m | ||
| if: ${{ failure() && inputs.debug_enabled }} | ||
| install: | ||
| strategy: | ||
| matrix: | ||
| version: ['thapi@0.0.13', 'thapi@master', 'thapi@develop', 'thapi@develop+archive', | ||
| 'thapi@develop ^lttng-tools@master ^lttng-ust@master ^babeltrace2@master'] | ||
| needs: install_dependencies | ||
| runs-on: ubuntu-latest | ||
| name: Install ${{ matrix.version }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Setup tmate session | ||
| uses: mxschmitt/action-tmate@v3 | ||
| if: ${{ inputs.debug_enabled }} | ||
| - name: Download THAPI build cache | ||
| uses: actions/download-artifact@v6 | ||
| with: | ||
| name: thapi_cache | ||
| path: ${{ env.CACHE_DIR }} | ||
| - name: Checkout dependencies (spack,...) | ||
| uses: ./.github/actions/setup-thapi-deps | ||
| with: | ||
| cache-dir: ${{ env.CACHE_DIR }} | ||
| install-llvm: 'true' | ||
| - name: Install ${{ matrix.version }} | ||
| if: ${{ matrix.version != 'thapi@develop ^lttng-tools@master ^lttng-ust@master ^babeltrace2@master' }} | ||
| run: | | ||
| . external/spack/share/spack/setup-env.sh | ||
| spack install $SPACK_OPT ${{ matrix.version }} ^llvm@${LLVM_FULL_VER} | ||
| - name: Install thapi@develop with master versions of dependencies | ||
| if: ${{ matrix.version == 'thapi@develop ^lttng-tools@master ^lttng-ust@master ^babeltrace2@master' }} | ||
| continue-on-error: true | ||
| run: | | ||
| # This is an allowed failure. We don't care if this test failed | ||
| # (Building thapi@develop with unstable lttng@master versions). | ||
| . external/spack/share/spack/setup-env.sh | ||
| spack install $SPACK_OPT ${{ matrix.version }} ^llvm@${LLVM_FULL_VER} || true | ||
|
thilinarmtb marked this conversation as resolved.
|
||
| - name: Block to allow inspecting failures | ||
| run: sleep 120m | ||
| if: ${{ failure() && inputs.debug_enabled }} | ||
| cleanup: | ||
| needs: [install, install_legacy] | ||
| if: always() | ||
| runs-on: ubuntu-latest | ||
| name: Cleanup the build cache | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - uses: geekyeggo/delete-artifact@v5 | ||
| with: | ||
| name: | | ||
| thapi_cache_legacy | ||
| thapi_cache | ||
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
This file was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.