Skip to content

Conversation

@adarshagrawal38
Copy link

@adarshagrawal38 adarshagrawal38 commented Nov 12, 2025

Checklist

  • Have you checked and followed all the points mention in the CONTRIBUTING.MD
  • Have you validated script on UBI 9 container
  • Did you run the script(s) on fresh container with set -e option enabled and observe success ?
  • Did you have Legal approvals for patch files ?

@adarshagrawal38
Copy link
Author

adarshagrawal38 commented Nov 13, 2025

4 Test cases are falling currently, do need all test case to pass before merge?

@rcarino5
Copy link
Contributor

rcarino5 commented Jan 7, 2026

@shubham-dayma-ibm and @nikhil-kalbande may you please assist with @adarshagrawal38 's request. Thank you.

Copy link
Contributor

@shubham-dayma-ibm shubham-dayma-ibm left a comment

Choose a reason for hiding this comment

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

The tests can only be skipped if it has genuine justification.

# Source repo : https://github.com/sirfz/tesserocr
# Tested on : UBI 9.6
# Language : Python
# Travis-Check : false
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace Travis-Check : false to Ci-Check : True So PR checks can run and validate the script. tests should ideally pass. if not the script is missing something.

Copy link
Author

Choose a reason for hiding this comment

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

sure updated

fi

# Run nox if noxfile.py is present and previous tests failed
if [ -f "noxfile.py" ] && [ $test_status -ne 0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

nox block is not required.

Copy link
Author

Choose a reason for hiding this comment

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

okay, I have removed it.

test_status=1 # 0 = success, non-zero = failure

# Run pytest if any matching test files found
if ls */test_*.py > /dev/null 2>&1 && [ $test_status -ne 0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

is community supporting pytest? If not remove it

Copy link
Author

Choose a reason for hiding this comment

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

removed it.

Copy link
Author

Choose a reason for hiding this comment

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

community support is there

Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Fail | Install_Failed"
exit 1
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Why aren't we executing the test cases?

Copy link
Author

@adarshagrawal38 adarshagrawal38 Jan 14, 2026

Choose a reason for hiding this comment

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

added block to run test cases using pytest (Community support is there for pytest)

PTAL

Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
@adarshagrawal38
Copy link
Author

The tests can only be skipped if it has genuine justification.

okay, All test cases are passing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants