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

Assert less than and equal status check #1339

Merged
merged 12 commits into from
Jan 13, 2023
Merged

Assert less than and equal status check #1339

merged 12 commits into from
Jan 13, 2023

Conversation

Xiangs18
Copy link
Collaborator

@Xiangs18 Xiangs18 commented Jan 12, 2023

Hi @shahzebsiddiqui, please take a look at MR and provide feedback. Thank you!

Screen Shot 2023-01-11 at 6 20 44 PM

@Xiangs18 Xiangs18 changed the title Assert Less Than Status Check Assert less than and equal status check Jan 12, 2023
@Xiangs18 Xiangs18 linked an issue Jan 12, 2023 that may be closed by this pull request
4 tasks
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Base: 71.41% // Head: 71.05% // Decreases project coverage by -0.36% ⚠️

Coverage data is based on head (03dc9c6) compared to base (ea1047c).
Patch coverage: 3.12% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1339      +/-   ##
==========================================
- Coverage   71.41%   71.05%   -0.36%     
==========================================
  Files          57       57              
  Lines        6093     6125      +32     
  Branches     1081     1087       +6     
==========================================
+ Hits         4351     4352       +1     
- Misses       1740     1771      +31     
  Partials        2        2              
Impacted Files Coverage Δ
buildtest/builders/base.py 57.09% <0.00%> (-0.34%) ⬇️
buildtest/buildsystem/checks.py 7.48% <3.45%> (-0.63%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +1 to +46
buildspecs:
assert_le_example:
type: script
executor: generic.local.bash
description: Run stream test with metrics example using assert less than equal
env:
OMP_NUM_THREADS: 4
run: |
wget https://raw.githubusercontent.com/jeffhammond/STREAM/master/stream.c
gcc -openmp -o stream stream.c
./stream
metrics:
copy:
type: float
regex:
exp: 'Copy:\s+(\S+)\s+.*'
stream: stdout
item: 1
scale:
type: float
regex:
exp: 'Scale:\s+(\S+)\s+.*'
stream: stdout
item: 1
add:
type: float
regex:
exp: 'Add:\s+(\S+)\s+.*'
stream: stdout
item: 1
triad:
type: float
regex:
exp: 'Triad:\s+(\S+)\s+.*'
stream: stdout
item: 1
status:
assert_le:
- name: copy
ref: 5000
- name: scale
ref: 5500
- name: add
ref: 6000
- name: triad
ref: 6500
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think for now let's keep these files but i think we may want to merge this one test into one single test such that we can have all the checks in one test

@shahzebsiddiqui
Copy link
Member

@Xiangs18 thanks this PR looks good. I will merge this in

Copy link
Member

@shahzebsiddiqui shahzebsiddiqui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@shahzebsiddiqui shahzebsiddiqui merged commit efa2b90 into devel Jan 13, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the sean_assert_le branch January 13, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status Check for Assert Less Than Equal - assert_le
2 participants