-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add make test-kitodo #63
Conversation
add kitodo test
maybe not necessary cause when we catch the error the tmate session is already closed
Atm we call |
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.
Excellent!
Makefile
Outdated
# run asynchronous ocr processing, which should return within 5 seconds with exit status 1 | ||
timeout --preserve-status 5 docker exec -t `docker container ls -qf name=kitodo-app` bash -c '/usr/local/kitodo/scripts/script_ocr_process_dir.sh "testdata-kitodo" 1'; test $$? -eq 1 | ||
# Check the docker log of the manager if the ocr processing has already been completed. It fails if the ocr processing was not completed within 5 minutes. | ||
( timeout 5m docker logs -f `docker container ls -qf name=ocrd-manager` & ) | grep -q "KitodoActiveMQClient" |
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.
Very nice recipe!
Yes, but BTW, on the CI we could do |
Co-authored-by: Robert Sachunsky <[email protected]>
Co-authored-by: Robert Sachunsky <[email protected]>
Co-authored-by: Robert Sachunsky <[email protected]>
Co-authored-by: Robert Sachunsky <[email protected]>
add APP_DATA
Probably we have to adjust the make call in Makefile too Line 153 in 6f665a2
Atm rerunning of Line 169 in c3d29a5
|
indeed. But truncating the Docker log file is asking for trouble. I'd rather keep it simple and require down-up. Or is there another way to query the ActiveMQ was received, perhaps something on the process directory? |
Yes. Instead of testing for existing |
Yes, sounds good. (Or directly intercept the ActiveMQ result by interacting with our kitodo-mq container?) |
change line to ls instead of find
Changed the implementation to check for existing of an alto file. |
Remove pull_request event trigger cause workflow runs two times.
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.
But I really like the ActiveMQ test better!
(Even if that means you cannot easily repeat. And why not try to test directly for the ActiveMQ reply? For example, we could do docker exec kitodo-mq bin/activemq consumer --messageCount 1
...)
Co-authored-by: Robert Sachunsky <[email protected]>
Add the issue #64 and merge branch as discussed |
No description provided.