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

validate download source on deploy agent #1366

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

ntascii
Copy link
Contributor

@ntascii ntascii commented Dec 7, 2023

Summary

Validate download source from deploy agent in donwloaders.
Add UTs for validation

Test plan

2023-12-07 23:58:32,461:INFO:teletraan_config_manager.controller.docker: Successfully restarted ostrich-fetcher-cron.
2023-12-08 00:12:14,947:INFO: Start to download the package.
2023-12-08 00:12:14,947:INFO: Create directory /mnt/builds/De1LgOlEQ8yTV08Wgunbug_fa713fa.
2023-12-08 00:12:14,947:INFO: Start to download from url https://soxrepo.pinadmin.com/helloworlddummyservice/helloworlddummyservice-fa713fa1401.tar to /mnt/builds/helloworlddummyservice-server-De1LgOlEQ8yTV08Wgunbug_fa713fa.tar
2023-12-08 00:12:14,947:INFO: Running command: curl -o /mnt/builds/helloworlddummyservice-server-De1LgOlEQ8yTV08Wgunbug_fa713fa.tar -fksS https://soxrepo.pinadmin.com/helloworlddummyservice/helloworlddummyservice-fa713fa1401.tar
2023-12-08 00:12:15,050:INFO: Finish downloading: https://soxrepo.pinadmin.com/helloworlddummyservice/helloworlddummyservice-fa713fa1401.tar to /mnt/builds/helloworlddummyservice-server-De1LgOlEQ8yTV08Wgunbug_fa713fa.tar
2023-12-08 00:12:15,052:DEBUG: Starting new HTTPS connection (1): soxrepo.pinadmin.com:443
2023-12-08 00:12:15,083:DEBUG: https://soxrepo.pinadmin.com:443 "GET /helloworlddummyservice/helloworlddummyservice-fa713fa1401.tar.sha1 HTTP/1.1" 404 337
2023-12-08 00:12:15,084:WARNING: Skip checksum verification. Invalid response from https://soxrepo.pinadmin.com/helloworlddummyservice/helloworlddummyservice-fa713fa1401.tar.sha1
2023-12-08 00:12:15,085:INFO: untar files to /mnt/builds/De1LgOlEQ8yTV08Wgunbug_fa713fa
2023-12-08 00:12:15,087:INFO: Successfully extracted /mnt/builds/helloworlddummyservice-server-De1LgOlEQ8yTV08Wgunbug_fa713fa.tar to /mnt/builds/De1LgOlEQ8yTV08Wgunbug_fa713fa
2023-12-08 00:12:15,087:INFO: Download succeeded.

@ntascii ntascii requested a review from a team as a code owner December 7, 2023 20:58
@ntascii ntascii merged commit efa033d into master Dec 19, 2023
6 checks passed
@ntascii ntascii deleted the anhn/validate-download branch December 19, 2023 01:16
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.

2 participants