-
Notifications
You must be signed in to change notification settings - Fork 35
Add dockers to Fast and Basic Builds #1298
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
base: main
Are you sure you want to change the base?
Conversation
@lukaszstolarczuk |
|
||
# Dependencies for tests (optional) | ||
ARG TEST_DEPS="\ | ||
libnuma-dev" | ||
libnuma-dev \ | ||
libtbb-dev\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scalable pool relies on TBB library (src/pool/pool_scalable.c
), so this is an UMF dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as for libnuma - as long as you don't use that pool it's not required. Hence, I'd leave as test deps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
|
||
# Dependencies for tests (optional) | ||
ARG TEST_DEPS="\ | ||
libnuma-dev" | ||
libnuma-dev \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's requirement for OS memory provider, according to README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the readme, it's for testing :)
While I agree with you that for runtime this is a requirement, it is not the hard requirement. As long as you don't use that provider it's not really required, hence we only mark this as "for testing" (or, in the user's case - for the application that uses the provider).
I'd personally leave libnuma as test deps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
.github/workflows/reusable_basic.yml
Outdated
|
||
env: | ||
BUILD_DIR : "${{github.workspace}}/build" | ||
INSTL_DIR : "${{github.workspace}}/install-dir" | ||
INSTL_DIR : "${{github.workspace}}/../install-dir" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe going outside the workspace is not the best idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
6039c67
to
b1d2ec2
Compare
@@ -1,10 +1,10 @@ | |||
# Copyright (C) 2024 Intel Corporation | |||
# Copyright (C) 2024-2025 Intel Corporation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls order commits and add a proper commit title/message; while we're adding one new docker, the main change is something else 😉
pls also update the title of the PR, and if ready, please un-draft
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commits still to be ordered + proper commit msg
.github/workflows/reusable_basic.yml
Outdated
@@ -192,7 +166,6 @@ jobs: | |||
-DUMF_DISABLE_HWLOC=${{matrix.disable_hwloc}} | |||
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}} | |||
${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' && '-DUMF_USE_COVERAGE=ON' || '' }} | |||
${{ matrix.llvm_linker || '' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returned
3552ecc
to
aefd38a
Compare
@@ -1,10 +1,10 @@ | |||
# Copyright (C) 2024 Intel Corporation | |||
# Copyright (C) 2024-2025 Intel Corporation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commits still to be ordered + proper commit msg
|
||
jobs: | ||
CodeChecks: | ||
uses: ./.github/workflows/reusable_checks.yml | ||
FastBuild: | ||
name: Fast builds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the name was removed?
.github/workflows/detect_changes.yml
Outdated
run: | | ||
echo "Changed files: $ALL_CHANGED_FILES" | ||
|
||
RunReusableDocker: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps simply BuildDocker
.github/workflows/reusable_basic.yml
Outdated
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'ubuntu-24.04'] | ||
ubuntu_ver: ['ubuntu-22.04', 'ubuntu-24.04'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably go back to the os
name, as it contains not only the ubu ver
.github/workflows/reusable_basic.yml
Outdated
- name: Install g++-7 | ||
if: matrix.compiler.cxx == 'g++-7' | ||
run: sudo apt-get install -y ${{matrix.compiler.cxx}} | ||
echo "${USERPASS}" | sudo -Sk bash -c " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some as above, perhaps sudo su
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ubuntu-version: [20.04, 22.04, 24.04] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe for unity, this should also be os
(full name of the distro)
.github/workflows/reusable_fast.yml
Outdated
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
- ubuntu_ver: ubuntu-22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same - re-name to os
please
build-essential \ | ||
cmake \ | ||
git \ | ||
gnupg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then it should be moved to oneapi installation step
(applies to both docker files)
.github/workflows/reusable_basic.yml
Outdated
${{ matrix.install_tbb == 'ON' && matrix.disable_hwloc != 'ON' && matrix.shared_library == 'ON' && '--proxy' || '' }} | ||
--umf-version ${{env.UMF_VERSION}} | ||
${{ matrix.shared_library == 'ON' && '--shared-library' || '' }} | ||
# - name: Test UMF installation and uninstallation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I believe it's the time to uncomment this - what's failing with that? please send me a link and we'll investigate...
Added UMF docker
// workflow executed on fork:
https://github.com/rbanka1/unified-memory-framework/actions/runs/15134054789
https://github.com/rbanka1/unified-memory-framework/actions/runs/15134054814
I added a new Docker image for Ubuntu 24.04 and updated the others.
I also created two new workflows that check for changes in the Docker files.
If any changes are detected, the relevant Docker image will be rebuilt and pushed (unless it's a pull request).
The rebuilt images will be available after the merge.