{"id":18419733,"url":"https://github.com/teradata/presto-checks","last_synced_at":"2025-08-06T15:04:06.707Z","repository":{"id":146378164,"uuid":"67493997","full_name":"Teradata/presto-checks","owner":"Teradata","description":"Additional tests for Presto. As opposed to tests ran on every commit, those tests are run on a fixed schedule.","archived":false,"fork":false,"pushed_at":"2023-05-22T19:43:11.000Z","size":42,"stargazers_count":3,"open_issues_count":4,"forks_count":10,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-22T19:12:05.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Teradata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-06T09:31:12.000Z","updated_at":"2017-10-02T17:09:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"31ffd6c9-627a-4a67-9e9b-03cbd295f90f","html_url":"https://github.com/Teradata/presto-checks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teradata%2Fpresto-checks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teradata%2Fpresto-checks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teradata%2Fpresto-checks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teradata%2Fpresto-checks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Teradata","download_url":"https://codeload.github.com/Teradata/presto-checks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661774,"owners_count":20975117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T04:18:04.133Z","updated_at":"2025-04-07T13:31:42.599Z","avatar_url":"https://github.com/Teradata.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Presto Checks\n\nThis project defines build automation for Presto that is meant to be run periodically / for a selection of commits in selected branches.\n\n## Requirements\n- bash\n- [aws cli](https://github.com/aws/aws-cli#installation)\n- [travis cli](https://github.com/travis-ci/travis.rb#installation)\n- access to https://api.travis-ci.org/ from the machine you're executing `trigger_checks_for_latest_build.sh`\n- `$REPO` - the slug of the repo where you're reading this, probably `Teradata/presto-checks`\n- `$TOKEN` - Travis token obtained by executing `travis --token` in this repo's dir\n\n## Triggering and operation\n\nThe travis build is meant to be triggered via API, using the `trigger_checks_for_latest_build.sh` script. \nYou can ping it from your machine, maybe from crontab on a server, from a Jenkins job, or wherever where the [requirements](#requirements) are met.\n\nUsage:\n```\ntrigger_checks_for_latest_build.sh \\\n  $CHECKS_GITHUB_REPO \\\n  $CHECKS_REPO_TRAVIS_TOKEN \\\n  $CHECKS_BRANCH \\\n  $PRESTO_BRANCH\n```\nwhere:\n - `CHECKS_GITHUB_REPO` - this repo's slug, in format ${ORGANIZATION}/${REPO_NAME} (changes across forks)\n - `CHECKS_REPO_TRAVIS_TOKEN` - the result of executing `travis --token` by a user having access to this repo (changes across forks)\n - `CHECKS_BRANCH` - branch of this repo to use. Most of the time it will be `master` or `sprint`. Useful for adding a feature branch in this repo, e.g. to add a new set of checks.\n - `PRESTO_BRANCH` - branch of Teradata/presto repo to use for artifacts download. The latest artifacts built for given branch will be used. Can be `@{LATEST_SPRINT_BRANCH}` which will resolve to the latest `sprint-##` branch.\n\nSo far, the build defined in `.travis.yml` will:\n\n1. Download the latest Presto artifacts built by Teradata/presto for branch `$PRESTO_BRANCH`\n2. Run the product tests in configurations specified in `.travis.yml`\n3. Upload results links to `travis_checks` folder in the folder from which the artifacts were downloaded ([example](http://teradata-presto.s3.amazonaws.com/index.html?prefix=travis_build_artifacts/Teradata/presto/sprint-37/3040.4/travis_checks/))\n\n## Use cases\n\n### Running thorough yet lengthy tests periodically / on demand\n\n- for sprint a sprint branch:\n```\ntrigger_checks_for_latest_build.sh $REPO $TOKEN sprint sprint-37\n```\nThis will dowload the latest **artifacts and product tests** for `sprint-37` from [Teradata's s3](teradata-presto.s3.amazonaws.com/index.html?prefix=travis_build_artifacts/Teradata/presto/) and run the product tests using the long-running configurations defined in `travis.yml` (more precisely, the version available on `sprint` branch of the `$REPO`)\n\n- for master branch:\n```\ntrigger_checks_for_latest_build.sh $REPO $TOKEN master master\n```\n\n- for the **latest sprint branch**:\n```\ntrigger_checks_for_latest_build.sh $REPO $TOKEN sprint @{LATEST_SPRINT_BRANCH}\n```\n\n- for a feature branch:\n```\ntrigger_checks_for_latest_build.sh $REPO $TOKEN master feature/awseome\n```\n\n- for a feature branch in this repo (e.g. when adding new set of tests to be run):\n```\n#if you're developing the new tests against Presto master\ntrigger_checks_for_latest_build.sh $REPO $TOKEN feature/moar_tests master\n\n#or if you're developing against a sprint/feature branch\ntrigger_checks_for_latest_build.sh $REPO $TOKEN feature/moar_tests feature/awesome\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteradata%2Fpresto-checks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteradata%2Fpresto-checks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteradata%2Fpresto-checks/lists"}