Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release candidate v0.10.4-rc1 (#478)
* rename terraform resources. add terraform import lines. add diff supression for deploy.content field. add import system test * remove crash.log * remove comment * update docs, fix unit tests * Terraform: improve handling of sigterm (#301) * rename terraform resources. add terraform import lines. add diff supression for deploy.content field. add import system test * remove crash.log * remove comment * update docs, fix unit tests * add Layer0Client for meta object * use waitWithContext helper functions. Remove partial state from service resource * remove wait * fix merge * check error codes for <Entity>DoesNotExist in terraform module * return <Entity>DoesNotExist error codes from backend layer * use 's' for receiver * Return '404 Not Found' errors when resource not found instead of '500 Server Error' errors. * split out system and stress tests * Add leftover tags janitor and handle resolving leftover tags in CLI. (#305) * API: Added Tag Janitor. CLI: Check ecs task exists before attempting to retrieve information on it. * tag janitor review feedback * Updated expiredTasks test * Merge master back into develop (#309) * Create CNAME * rename terraform resources. add terraform import lines. add diff supression for deploy.content field. add import system test * remove crash.log * remove comment * update docs, fix unit tests * Terraform: improve handling of sigterm (#301) * rename terraform resources. add terraform import lines. add diff supression for deploy.content field. add import system test * remove crash.log * remove comment * update docs, fix unit tests * add Layer0Client for meta object * use waitWithContext helper functions. Remove partial state from service resource * remove wait * fix merge * check error codes for <Entity>DoesNotExist in terraform module * return <Entity>DoesNotExist error codes from backend layer * use 's' for receiver * Return '404 Not Found' errors when resource not found instead of '500 Server Error' errors. * split out system and stress tests * Add leftover tags janitor and handle resolving leftover tags in CLI. (#305) * API: Added Tag Janitor. CLI: Check ecs task exists before attempting to retrieve information on it. * tag janitor review feedback * Updated expiredTasks test * update docs for 10.3 * l0-setup upgrade: Breadcrumb message when current version is not SemVer compliant (#310) If the current version of a user's layer0 (as defined in ~/.layer0/<instance>/main.tf.json) is not semver compliant, this change will notify the user that they can use the --force flag to override the message. * Preserving previous error message, tidying up formatting and line length * 'Tester' iface; prototyping env stress tests with benchmarking * 232: dep init cleanup, benchmark stress test on multiple dimensions - The vendor/ dir cleanup is due to running go-dep's `dep init` - Ignoring Gopkg* and _vendor* - Benchmark tests are put into its own _test.go file. The pattern is such that the number of environments, deploys and services are parameterized when invoking benchmarkStress() * 232: forcing constraint on github.com/cenkalti/backoff Unit tests were failing because of very old semver version of this package Forced it to constrain to the master branch of the project * 232: dep manifest and lock should probably be included * 232: Stress tests split into tf modules, folding some changes from 232-tlake I created three tf modules, environment, service and deploy. The outputs of environment and deploy are picked up by service. Services are distributed using element() amongst available environments and deploys. * 232: Removing defer Terraform.Destroy() and instead explicitly calling Destroy() at end of for loop * 232: Cleaning up modules, parameterizing Dockerrun.aws.json command Benchmark tests are no longer in table testing pattern Dockerrun.aws.json now correctly interpolates the command passed to it by the test Directory cleanup and organizing of the tf modules * 232: Minor formatting change * 232: Modifying the benchmark tests to be more modest in scope * Add service limits warning * Update for 'make test' * Add ListTasks and ListJobs to benchmarks * 232: Adding Load Balancer parameterization in benchmark stress tests The benchmark tests now allow creating an arbitrary number of load balancers in a given test Also made some adjustments to the dimensions of the benchmark tests themselves * 232: More benchmark stress test cases * 232: Added a more 'realistic' benchmark test, tested with changes from 232-tlake * 232: More benchmark tests, terraform fmt adjustments * 232: Adding comment in README recommending the usage of flow. Makefile timeout set to 2h. * 232: Actually modifying the README * 232: 232-stress-tests will not include dep changes, that will be handled by another named branch * 232: syncing vendor dir state from develop into 232-stress-tests * 232: Adding specifics of limits in tests/README.md, cutting down the number of benchmark tests * Update to align with changes in `tftest` package (#332) * Update to work with changes in tftest * Remove earlier iteration stress test file * Use 'testing.B' properly to avoid panic * split out 'test' and 'benchmark' targets * Strip out 'StressTest' struct * Strip out 'StressTest' struct; Simplify function names and arguments * Add compatibility with 'tftest.Logger' * Update to use new 'StandardLogger.Logger' * Add benchmark target to top-level Makefile * Base of refactoring stress tests to use one terraform config * DRY out benchmarking code * Use a single Terraform config for stress tests * Test entity Get functions in addition to List * Refactor 'random_shuffle' resources out in favor of 'element()' with inherent modulus * Transfer test cases into updated pattern * Remove outdated multi-file terraform configuration * Remove parametrization of deploy command * Move 'Tester' iface into 'testutils' package * Remove 'deploy_command' var * Refactor task stress test into benchmark pattern * Add top-of-test checks for entity dependencies * Strip out go func args * Don't wait for tasks to finish * Strip out overcomplicated Task creation logic * Overhaul test cases to use min/med/max params * Vendoring update * Reduce test matrix for Families+Deploys * Added terraform init to l0-setup init * Delete terraform * use cluster names in ListEnvironments * enable ecs metrics via IAM policy * [v0.10.4] scaler patch (#472) * Remove instance.AgentConnected check when gathering resource providers. * Update test to reflect that agent status is not taken into account * Log a disconnected agent as info, but do nothing about it * update terraform module to use region, ami data sources (#471) * enables terraform AMI, region lookup * apply terraform fmt * [v0.10.4] 466: Implement retry and delay logic against AWS API (#468) * 466: Implement retry and delay logic against AWS API Recognizes the environment variables LAYER0_AWS_TIME_BETWEEN_REQUESTS and LAYER0_AWS_MAX_RETRIES. LAYER0_AWS_TIME_BETWEEN_REQUESTS is a time duration for the min amount of time allowed between AWS requests LAYER0_AWS_MAX_RETRIES is a numerical value representing the max number of times a request will be retried for failures * MAINT: Review fixes * MAINT: Undo changes to dynamo db tests * MAINT: Make common aws config helper function * 466: Make new helper function to handle session push back * 466: Change session delay helper function name * [v0.10.4] 475: Remove AWS Region default and require region for API operation (#476) * 475: Remove AWS Region default and require region for API operation * 475: Inclue region as l0-setup endpoint -d output The AWS Region specified when creating a layer0 instance is now output when running the command l0-setup endpoint -d. Fixes an AMI ID for the API module in the us-east-1 region * 475: Use develop version of setup/module/api/variables.tf * 475: Use develop version of setup/module/api/variables.tf * MAINT: Remove default AWS region from config * [v0.10.4] Decrease ECS API Calls (#474) * use cluster names in ListEnvironments * add task environment id resolving * fix get task * fix delete and create task * update task logs * update list services api call * update get environment * chagne scheduler to run once an hour * Fix api calls on service list for scaling * use DescribeEnvironmentTasks for scaler * remove copies from task create * re-add copies param to task create in cli * use 'layer0_version' instead of version for tf variable
- Loading branch information