Skip to content
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

Support machine info detection in TKG #336

Closed
llxia opened this issue Jul 11, 2022 · 3 comments
Closed

Support machine info detection in TKG #336

llxia opened this issue Jul 11, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@llxia
Copy link
Contributor

llxia commented Jul 11, 2022

Some tests may only run on certain micro-architecture. TKG should check micro-architecture on the machine and execute/skip tests accordingly. Frome example, some VectorAPI tests only run on Z13/Z14 or newer, CRIU portability tests run on skylake, etc. This feature may further extend to check other machine info (i.e., RAM, CPU, application installed, etc) as needed.

TKG runs cmd to detect the machine info:

  • cmd for detecting skylake
cat /proc/cpuinfo | grep 'model name' | uniq
  • cmd for detecting z version with newer openj9 JDK:
$ ./semaru/bin/java -Xshareclasses:none -Xjit:verbose -version 2>&1 | grep Name:
#INFO:          Name: z15

platformRequirements in playlist.xml should be enhanced for setting specific hardware or software requirements.

Related issue:
runtimes/openj9-jit-z/issues/711
runtimes/infrastructure/issues/7037
#45 (comment)

@llxia llxia added the enhancement New feature or request label Jul 11, 2022
@smlambert
Copy link
Contributor

smlambert commented Jul 27, 2022

Would also like a check for whether we are in a containerized environment or not, something like this:
if grep -sq 'docker\|lxc' /proc/1/cgroup; then echo "I am running on Docker."; else echo "not docker "; fi

related: #45

@smlambert
Copy link
Contributor

It seems like both the support for microArch and a PR for docker info was merged. Can this issue be closed?

Noting a separate issue was raised to detect Podman versus Docker #503, so I would not hold this issue open for that.

@llxia
Copy link
Contributor Author

llxia commented Mar 4, 2024

Issue #471 is for z versions.

@llxia llxia closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants