https://github.com/jimhester/aws-check
https://github.com/jimhester/aws-check
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimhester/aws-check
- Owner: jimhester
- Archived: true
- Created: 2020-03-18T21:01:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T15:16:23.000Z (almost 5 years ago)
- Last Synced: 2024-08-13T07:16:15.115Z (6 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - jimhester/aws-check - (Shell)
README
# Important environment variabless
- `DEV_PKG_TARBALL` - the development package we are running reverse dependency checks for
- `CHECK_PKG_LIST` - the package(s) we are checking against
- `AWS_BATCH_JOB_ARRAY_INDEX` - the AWS environment variable set by the array job
- `AWS_REGION` - The AWS region
- `OUTPUT_S3_PATH` - The output S3 path# Local usage
Get a dev version of a package and build a tarball for it
```shell
git clone --depth 1 https://github.com/tidyverse/glue.git /tmp/glue
R CMD build /tmp/glue .
```
generate the list of reverse dependencies for a given package and save it to a file (here `pkgs`)```shell
Rscript -e 'writeLines(tools::package_dependencies("glue", reverse = TRUE)[[1]], "pkgs")'
```Then run the first few 5 jobs to test
```shell
AWS_BATCH_JOB_ARRAY_INDEX=0
while [ $AWS_BATCH_JOB_ARRAY_INDEX -le 4 ]
do
docker run -v $PWD:/tmp/workdir -e DEV_PKG_TARBALL=glue_1.3.1.tar.gz -e CHECK_PKG_LIST=pkgs -e CHECK_ARGS= -e AWS_BATCH_JOB_ARRAY_INDEX=$AWS_BATCH_JOB_ARRAY_INDEX r_cmd_check
AWS_BATCH_JOB_ARRAY_INDEX=$((AWS_BATCH_JOB_ARRAY_INDEX + 1))
done
```