Skip to content

SYSOPS-15175: Updating from master branch of DataDog/datadog-serverless-functions #5

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

Merged
merged 237 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
17286e6
Increasing parsing priority for aws/rds source
Feb 25, 2020
a234c48
Add dms to list of recognized log sources
aburgel Feb 27, 2020
fc7dea8
Update python and checkout action to the latest
chenrui333 Mar 6, 2020
080050d
Add integration test note to template
DarcyRaynerDD Mar 9, 2020
64efda8
Merge pull request #222 from DataDog/darcy.rayner/update-pr-template
DarcyRaynerDD Mar 9, 2020
635c61a
Document how to find the installed forwarder Lambda
tianchu Mar 11, 2020
b26c39e
Fixes #207 by allowing CloudWatch Logs & S3 to invoke the Forwarder
philhoff-edeka Mar 16, 2020
33a5b01
Add aws_account tag to logs and enhanced metrics
sfirrin Mar 17, 2020
4fa6698
Update snapshots for new tags
sfirrin Mar 17, 2020
91c156c
Remove unused kwarg
sfirrin Mar 17, 2020
3298ea5
Merge pull request #228 from DataDog/stephenf/aws_account-tag
sfirrin Mar 17, 2020
c6db308
Bump version from 3.3.0 to 3.4.0
sfirrin Mar 17, 2020
8b5ea01
Update README.md
tianchu Mar 18, 2020
58a2898
Fixed #230 as cfn-lint now passes with no errors
Mar 18, 2020
08ec780
Update "extractResourceId" function
anshumgargdd Mar 18, 2020
a81458e
Merge pull request #231 from flagscript/fix-cfn-lint-errors-and-warnings
tianchu Mar 19, 2020
10b529a
Merge pull request #227 from edekadigital/allow-CloudWatch-Logs-and-S…
tianchu Mar 19, 2020
ba4d5dc
Add cfn-lint
tianchu Mar 19, 2020
73cc526
Fix integration test snapshots
tianchu Mar 19, 2020
0a07b95
Merge pull request #233 from DataDog/tian.chu/add-cfn-lint
tianchu Mar 19, 2020
f1e6a58
Bump version from 3.4.0 to 3.5.0
tianchu Mar 19, 2020
3b345f7
Exclude unuseful files from zip
tianchu Mar 19, 2020
fa7bb61
Merge pull request #234 from DataDog/tian.chu/fix-big-release-zip
tianchu Mar 19, 2020
3639499
Instructions for safe deletion
tianchu Mar 20, 2020
4f933d1
Add manual installation steps
tianchu Mar 27, 2020
e5f54ec
Merge pull request #237 from DataDog/tian.chu/forwarder-manual-instal…
tianchu Mar 27, 2020
201c2aa
Terraform installation and permissions
tianchu Mar 27, 2020
ec3659b
Apply suggestions from code review
tianchu Mar 27, 2020
f99cb99
Merge pull request #238 from DataDog/tian.chu/terraform-and-permissions
tianchu Mar 27, 2020
e1bdb6f
Use latest cfn-lint
tianchu Mar 30, 2020
baed78b
Merge pull request #239 from DataDog/tian.chu/use-latest-cfn-lint
tianchu Mar 30, 2020
fde4523
Fix tests
DarcyRaynerDD Mar 30, 2020
0f0eeaa
Change enhanced tag parsing rules
DarcyRaynerDD Mar 31, 2020
0c93fa5
Update comment
DarcyRaynerDD Mar 31, 2020
06a05ae
Only remove colons from tag keys
DarcyRaynerDD Mar 31, 2020
96cfc98
Fix typo in comment
DarcyRaynerDD Mar 31, 2020
3c122ef
Blank out forwarder version in snapshot tests
DarcyRaynerDD Mar 31, 2020
fd72343
Merge pull request #240 from DataDog/darcy.rayner/fix-enhanced-metric…
DarcyRaynerDD Mar 31, 2020
fa00b3d
Remove camel case parsing rules
DarcyRaynerDD Apr 1, 2020
85e869b
Bump version to 3.6.0
DarcyRaynerDD Apr 1, 2020
17b8798
Remove empty comments
DarcyRaynerDD Apr 1, 2020
b8122b8
Merge pull request #241 from DataDog/darcy.rayner/v3.6.0
DarcyRaynerDD Apr 1, 2020
4c88486
Bump version from 3.5.0 to 3.6.0
DarcyRaynerDD Apr 1, 2020
079190c
Disallow empty value for required fields
tianchu Apr 2, 2020
bb8a82e
Merge pull request #242 from DataDog/tian.chu/required-fields
tianchu Apr 2, 2020
d442e57
feat: Enable supplying DdApiKeySecret directly
jim80net Apr 3, 2020
b354824
Preserve mandatory DdApiKey
jim80net Apr 3, 2020
5467458
Merge pull request #243 from scribd/jim80net/use_asm
tianchu Apr 6, 2020
c9b713e
Ensure empty tags can be sanitized
Apr 6, 2020
42ba9aa
Merge pull request #244 from william-richard/handle-empty-tags-log-la…
tianchu Apr 7, 2020
dd015fe
update mocha to remove vuln of minimist version
Apr 7, 2020
98d6376
Bump layer versions
DarcyRaynerDD Apr 7, 2020
1fd6ec1
Merge pull request #245 from DataDog/garner/update-mocha-for-vuln
Apr 7, 2020
346d229
Update cloudwatch snapshots
DarcyRaynerDD Apr 7, 2020
ac5ae9b
Bump forwarder version
DarcyRaynerDD Apr 7, 2020
e15da24
Update layer version
DarcyRaynerDD Apr 10, 2020
d7cd04d
Remove bad character
DarcyRaynerDD Apr 10, 2020
70db7a4
Merge pull request #246 from DataDog/darcy.rayner/update-trace-foward…
DarcyRaynerDD Apr 10, 2020
71eabbf
Bump version from 3.6.0 to 3.7.0
DarcyRaynerDD Apr 10, 2020
ad853ca
Refresh tags when new lambda arn is encountered
DarcyRaynerDD Apr 13, 2020
f7aa247
check that log message is a string for enhanced metrcis submission
azakordonets Apr 14, 2020
f70859c
Fix typo
DarcyRaynerDD Apr 14, 2020
4ca2d16
Merge pull request #249 from DataDog/darcy.rayner/fetch-tags-on-hit-miss
DarcyRaynerDD Apr 14, 2020
02c6073
Bump version from 3.7.0 to 3.8.0
DarcyRaynerDD Apr 14, 2020
3a830bf
Merge pull request #250 from azakordonets/master
DarcyRaynerDD Apr 14, 2020
87fc022
add jvanbrunschot changes to update to python 3 and use the new lambd…
jvanbrie Apr 16, 2020
71a0f5b
Merge pull request #219 from chenrui333/patch-1
tianchu Apr 16, 2020
627121e
Merge pull request #215 from aburgel/dms-source
tianchu Apr 16, 2020
aafd9b6
Merge pull request #213 from taiidani/patch-2
tianchu Apr 16, 2020
afd9f4e
Add tool for building release bundle with datadog_lambda dep
DarcyRaynerDD Apr 16, 2020
b6d47bb
Make release process work with new zip
DarcyRaynerDD Apr 16, 2020
120245a
reverting to use of Stats class and updating it to python3
jvanbrie Apr 16, 2020
13334e1
Style changes
jvanbrie Apr 17, 2020
87dc57b
Removing lambda layer imports
jvanbrie Apr 17, 2020
82bcce7
Removing lambda layer call
jvanbrie Apr 17, 2020
86b4e70
Move trace forwarder into repository
DarcyRaynerDD Apr 17, 2020
6f8fc74
Update trace forwarder deps
DarcyRaynerDD Apr 17, 2020
b24b91e
Add trace_forwarder as package to forwarder
DarcyRaynerDD Apr 20, 2020
92bd4f8
Fix integration tests
DarcyRaynerDD Apr 20, 2020
670cb7a
Add integration tests to workflow
DarcyRaynerDD Apr 20, 2020
b36ea48
Fix formatting
DarcyRaynerDD Apr 20, 2020
bb203ef
Fix bad substitution error
DarcyRaynerDD Apr 20, 2020
279fead
Merge pull request #254 from DataDog/jon.vanbriesen/rds-enhanced-moni…
jvanbrie Apr 20, 2020
e8867b9
Updating docs to reflect rds support of python 3
jvanbrie Apr 20, 2020
04543c3
Fix github actions error in script
DarcyRaynerDD Apr 20, 2020
28cf106
Add copyright disclaimers
DarcyRaynerDD Apr 20, 2020
bc20d75
Run trace forwarder tests in CI
DarcyRaynerDD Apr 20, 2020
3d45387
Merge pull request #256 from DataDog/darcy.rayner/remove-layers
DarcyRaynerDD Apr 20, 2020
e0c4118
Bump version from 3.8.0 to 3.9.0
DarcyRaynerDD Apr 20, 2020
2f250b9
Remove gov cloud references
DarcyRaynerDD Apr 20, 2020
cdc6938
Re-add note about disablng enhanced metrics
DarcyRaynerDD Apr 20, 2020
674afae
Merge pull request #258 from DataDog/darcy.rayner/update-gov-cloud-re…
DarcyRaynerDD Apr 20, 2020
8257922
Merge pull request #257 from DataDog/jon.vanbriesen/aws-rds-enhanced-…
jvanbrie Apr 21, 2020
b8af2c4
Add private link to variables to template.yml
DarcyRaynerDD Apr 29, 2020
5b8b25d
Fix template errors
DarcyRaynerDD Apr 29, 2020
3b015f2
Store lowercase ARN keys in tags cache
sfirrin Apr 29, 2020
09f8938
Updating active_directory to activedirectory
anshumgargdd Apr 30, 2020
edd395c
Merge pull request #259 from DataDog/stephenf/fix-tags-lookup-casing
sfirrin May 1, 2020
942d99f
Bump version from 3.9.0 to 3.10.0
sfirrin May 1, 2020
9f9095e
Fix lambda_function private link errors
DarcyRaynerDD May 1, 2020
f500d36
Update readme with private link details
DarcyRaynerDD May 1, 2020
36322f9
Add notes to the update instructions
tianchu May 4, 2020
2ca1023
Fix a typo
tianchu May 4, 2020
3d60c03
Merge pull request #261 from DataDog/tian.chu/add-notes-to-update-ins…
tianchu May 4, 2020
49faddf
Merge pull request #260 from DataDog/darcy.rayner/add-private-link-su…
DarcyRaynerDD May 4, 2020
7e0198a
Bump version from 3.10.0 to 3.11.0
DarcyRaynerDD May 4, 2020
af49b67
Update Terraform code to ignore parameter change
kzap May 14, 2020
222a30c
Updating if condition for tenant
anshumgargdd May 14, 2020
8fd60e6
Merge pull request #265 from kzap/patch-1
tianchu May 15, 2020
f0a6997
Merge pull request #232 from DataDog/anshumgargdd-patch-1
anshumgargdd May 26, 2020
7b2bec1
Update PULL_REQUEST_TEMPLATE.md
tianchu May 28, 2020
5ecbf40
Make debug logging more verbose
DarcyRaynerDD May 28, 2020
441a340
[aws forwader] Update readme with info on capabilities used
DarcyRaynerDD May 28, 2020
d0d764a
Merge pull request #267 from DataDog/darcy.rayner/more-verbose-debug-…
DarcyRaynerDD May 28, 2020
c8de562
Bump version from 3.11.0 to 3.12.0
DarcyRaynerDD May 28, 2020
1f85466
Update PULL_REQUEST_TEMPLATE.md
tianchu May 28, 2020
0279da9
[aws] add tag for memorysize
jcstorms1 Jun 1, 2020
e51a9d9
Merge pull request #270 from DataDog/jordan.storms/add_memorysize_to_…
jcstorms1 Jun 1, 2020
0dbe4a9
Revert "Add memorysize tag to enhanced lambda metrics"
jcstorms1 Jun 2, 2020
a75fcae
Merge pull request #271 from DataDog/revert-270-jordan.storms/add_mem…
jcstorms1 Jun 2, 2020
b6b8f75
add memorysize tag to enhanced metrics
jcstorms1 Jun 2, 2020
82b253b
fixed formatting
jcstorms1 Jun 2, 2020
4df0c49
fixed formatting with black
jcstorms1 Jun 2, 2020
e474b3c
Merge pull request #272 from DataDog/jordan.storms/add_memorysize_tag…
jcstorms1 Jun 2, 2020
e64722b
add init duration metric and coldstart tags
jcstorms1 Jun 4, 2020
e236177
add additional comment
jcstorms1 Jun 4, 2020
30fdf75
put logging level back to info
jcstorms1 Jun 4, 2020
b4849b6
update unittest for new tag and metric
jcstorms1 Jun 5, 2020
bf95446
include unittest in lambda checks
jcstorms1 Jun 5, 2020
8c0ddd3
fix lambda check
jcstorms1 Jun 5, 2020
04c6339
update PR template with unit test
jcstorms1 Jun 5, 2020
39ebeba
Ensure the forwarder can be installed to us-gov AWS accounts
tianchu Jun 2, 2020
689b4ac
updated optional regex patterns
jcstorms1 Jun 5, 2020
4408b45
Merge pull request #273 from DataDog/tian.chu/forwarder-us-gov
tianchu Jun 5, 2020
19383b5
Bump version from 3.12.0 to 3.13.0
tianchu Jun 5, 2020
4b19d93
update tag logic and test
jcstorms1 Jun 5, 2020
266dfb3
Merge pull request #274 from DataDog/jordan.storms/add_init_duration_…
jcstorms1 Jun 8, 2020
b06f8cd
remove enhanced lambda redundancies
jcstorms1 Jun 8, 2020
e7cb8e3
updated metric list
jcstorms1 Jun 8, 2020
3a4222e
fix typo
jcstorms1 Jun 8, 2020
f6c2d20
fix comment
jcstorms1 Jun 8, 2020
659e548
update comment
jcstorms1 Jun 8, 2020
7795cd7
update unittest and CI
jcstorms1 Jun 8, 2020
4174eaa
add boto3 for unittest
jcstorms1 Jun 8, 2020
13ca876
add region env variable for boto
jcstorms1 Jun 8, 2020
7257b04
try setting AWS region for boto
jcstorms1 Jun 8, 2020
8a5a52e
set aws region in test file
jcstorms1 Jun 8, 2020
e9ac5fe
set env variable in lambdacheck instead
jcstorms1 Jun 8, 2020
788c74a
Merge pull request #275 from DataDog/jordan.storms/remove_redundancies
jcstorms1 Jun 8, 2020
77fd7c3
add timed out enhanced metric
jcstorms1 Jun 10, 2020
7825f58
reset log level to info
jcstorms1 Jun 10, 2020
e9180b1
Merge pull request #278 from DataDog/jordan.storms/add_enhanced_timed…
jcstorms1 Jun 10, 2020
bd97fc2
update enhanced lambda timed out metric name
jcstorms1 Jun 10, 2020
cd4a544
update to timeouts and count
jcstorms1 Jun 10, 2020
d078bd0
fix typo
jcstorms1 Jun 10, 2020
e6f5991
update timed out variable name
jcstorms1 Jun 10, 2020
c1cbd8e
fix variable name
jcstorms1 Jun 10, 2020
6c435f0
Merge pull request #280 from DataDog/jordan.storms/udpate_timeouts_na…
jcstorms1 Jun 10, 2020
0e4306c
Update truncation behavior (#281)
nhinsch Jun 12, 2020
c431e9f
Change private link URL (#282)
nhinsch Jun 25, 2020
76fc864
Bump version from 3.13.0 to 3.14.0
nhinsch Jun 25, 2020
51ed730
Document AWS Forwarder CloudFormation params
Jun 26, 2020
a3e2c12
Update troubleshooting, remove TODOs.
Jun 26, 2020
81edc32
Move installation_alternatives
Jun 26, 2020
5e5fa15
Copy edited
Jun 26, 2020
2036953
Ignore changes actually leads to a problem upon update, the masked va…
tianchu Jun 26, 2020
4c2b1f5
Update template verbiage
Jun 26, 2020
b0dba65
tcp connection
Jun 26, 2020
bbed017
Merge changes
Jun 29, 2020
6a1cf7a
Merge pull request #289 from DataDog/chris.agocs/SLS-585_document_CFN…
agocs Jun 29, 2020
4ff7d8b
Add out_of_memory enhanced metric (#287)
nhinsch Jun 30, 2020
3b74b90
Update installation_alternatives.md
tianchu Jun 30, 2020
404f879
Update installation_alternatives.md
tianchu Jun 30, 2020
5104ce3
Batch traces before making API calls (#291)
nhinsch Jul 7, 2020
d5906c2
Bump version from 3.14.0 to 3.15.0
nhinsch Jul 8, 2020
1825a0d
[azure event hub forwarder] Convert strings to json logs (#292)
claudiadadamo Jul 8, 2020
3abae6c
Batch traces by env instead of tags (#296)
nhinsch Jul 10, 2020
eb318fe
Parallelize GitHub Workflows (#297)
nhinsch Jul 10, 2020
b5fbe36
Run integration tests with Python 3.8 (#298)
nhinsch Jul 13, 2020
1142c04
Refactor parse_event_source to prevent mis-identification of sources …
sfirrin Jul 13, 2020
17f705e
Bump version from 3.15.0 to 3.16.0
sfirrin Jul 13, 2020
f50b63e
Use us-west-2 for installation test (#300)
sfirrin Jul 14, 2020
c8cf727
Remove code to support for Python 2.7 (#302)
nhinsch Jul 14, 2020
e922c6c
Refactor settings into a separate file (#301)
nhinsch Jul 14, 2020
c544dbb
Update README.md
tianchu Jul 17, 2020
3a7abe0
Override service metadata field with service tag (#305)
tianchu Jul 20, 2020
aab3760
Bump version from 3.16.0 to 3.16.1
tianchu Jul 20, 2020
5a72475
[documentation] updates to prepare to single source this into the doc…
Jul 20, 2020
f7568f4
Use unique variable name for Logger instance (#307)
KIVagant Jul 21, 2020
f09856d
adding decryption fix (#309)
jvanbrie Jul 27, 2020
1a24233
Updated CloudWatch deploy permissions (#313)
limweichiang Jul 30, 2020
2569701
Update lodash version (#314)
claudiadadamo Aug 3, 2020
4634db0
[AWS log forwarder] Override service tag for meta in trace (#316)
Czechh Aug 5, 2020
5e4dd8f
Bump version from 3.16.1 to 3.16.2
Czechh Aug 5, 2020
fde3947
[azure] Refactor and convert Azure eventhub log forwarder to use HTTP…
claudiadadamo Aug 6, 2020
a6160b5
Clarify PrivateLink Endpoints in README (#317)
nhinsch Aug 6, 2020
ac694d5
Enable Trace Forwarding via AWS PrivateLink (#318)
nhinsch Aug 11, 2020
d4d4786
Bump version from 3.16.2 to 3.16.3
nhinsch Aug 13, 2020
0405830
fix link, spelling (#320)
kayayarai Aug 14, 2020
bdee7ea
Fix version number incrementing (#321)
nhinsch Aug 14, 2020
0f26c03
Update integration tests to use raw JSON data (#319)
nhinsch Aug 17, 2020
cdb400f
Merge ddtags (#326)
tianchu Aug 18, 2020
45198c2
Bump version from 3.16.3 to 3.16.4
tianchu Aug 18, 2020
1c21fba
Fix version number (#328)
nhinsch Aug 18, 2020
8bd7342
Run integration tests on wrapped Forwarder (captures metrics) (#329)
nhinsch Aug 19, 2020
63fbbb4
Add --skip-forwarder-build option to integration tests (#330)
nhinsch Aug 19, 2020
dfed005
[azure log forwarder] Update lint command and lint blobs monitoring (…
claudiadadamo Aug 19, 2020
018b573
Improve integration tests (#333)
nhinsch Aug 20, 2020
0d3be0d
Fix integration tests --update option (#334)
nhinsch Aug 21, 2020
5bfdfcf
Translate binary data type to be human readable (#332)
Ricky-Thomas Aug 21, 2020
77e9f31
David.kim/updated lambda forwarder (#327)
Chronobreak Aug 24, 2020
52bf5fb
Forwarder: Additional target lambdas (#335)
Czechh Aug 25, 2020
f911091
Bump version from 3.16.4 to 3.17.0
Czechh Aug 25, 2020
7a5c59b
Update README.md (#336)
tianchu Aug 25, 2020
30b88b8
Update README with logs dual shipping info (#338)
Czechh Aug 27, 2020
cd86cf2
Fix flakiness in integration tests (#339)
nhinsch Sep 1, 2020
b71b892
Fix access to S3 within VPC (#340)
tianchu Sep 3, 2020
f5c3aed
Support sending data from VPC through a proxy (#342)
tianchu Sep 9, 2020
9520e8d
Bump version from 3.17.0 to 3.18.0
tianchu Sep 9, 2020
6aea94d
Fix forwarder template to work in AWS China (#347)
stroem Sep 11, 2020
3df104a
Use KMS for S3 bucket encryption (#349)
tianchu Sep 14, 2020
b89e3dc
Bump version from 3.18.0 to 3.18.1
tianchu Sep 14, 2020
36654fa
[azure] Make azure log forwarder tests cleaner and easier to understa…
claudiadadamo Sep 17, 2020
0dbe9cd
Handle malformed metrics (#352)
Czechh Sep 21, 2020
11eec3d
Bump version from 3.18.1 to 3.18.2
Czechh Sep 21, 2020
869305a
[sls-661] Use s3 for shared tags cache (#343)
hghotra Sep 21, 2020
3c1b83e
Bump version from 3.18.2 to 3.19.0
hghotra Sep 21, 2020
97e884f
Update README.md
tianchu Sep 22, 2020
6e10b97
Fix manual install anchor link reference. (#311)
dweekly Sep 22, 2020
943b852
Fix a typo
tianchu Sep 22, 2020
c5a2ae6
Add mention of undocumented SNS support (#286)
rromanchuk Sep 22, 2020
3554ff4
change runtime to 3.7 (#353)
jvanbrie Sep 22, 2020
058242b
Forwarder: add KMS permission to get log from Encrypted S3 Bucket (#337)
guitarrapc Sep 24, 2020
3e97db4
Add support for S3 events triggered via SNS (#351)
sagar-khanna Sep 25, 2020
e2ab5f4
Bump version from 3.19.0 to 3.20.0
tianchu Sep 25, 2020
9cd75cf
Group TagsCacheTTLSeconds under Advanced (#357)
tianchu Sep 25, 2020
11f170e
[azure] Add new source types and other cleanup (#354)
claudiadadamo Sep 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
<!--- Please remember to review the [contribution guidelines](https://github.com/DataDog/datadog-serverless-functions/blob/master/CONTRIBUTING.md) if you have not yet done so._ --->

### What does this PR do?

A brief description of the change being made with this pull request.
<!--- A brief description of the change being made with this pull request. --->

### Motivation

What inspired you to submit this pull request?
<!--- What inspired you to submit this pull request? --->

### Testing Guidelines

<!--- How did you test this pull request? --->

### Additional Notes

Anything else we should know when reviewing?
<!--- Anything else we should know when reviewing? --->

### Types of changes

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Misc (docs, refactoring, dependency upgrade, etc.)

### Check all that apply

- [ ] This PR's description is comprehensive
- [ ] This PR contains breaking changes that are documented in the description
- [ ] This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
- [ ] This PR impacts documentation, and it has been updated (or a ticket has been logged)
- [ ] This PR's changes are covered by the automated tests
- [ ] This PR collects user input/sensitive content into Datadog
- [ ] This PR passes the integration tests (ask a Datadog member to run the tests)
- [ ] This PR passes the unit tests
- [ ] This PR passes the installation tests (ask a Datadog member to run the tests)
17 changes: 17 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Integration tests

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.7", "3.8"]
steps:
- uses: actions/checkout@v2

- name: Run integration tests
run: |
./aws/logs_monitoring/tools/integration_tests/integration_tests.sh --python-version=${{ matrix.python-version }}
21 changes: 13 additions & 8 deletions .github/workflows/lambdachecks.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
name: Lambda checks
name: Lint

on: [push]
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.7

- name: Install pip
run: |
python -m pip install --upgrade pip

- name: Lint with flake8
run: |
pip install flake8
flake8 ./aws/logs_monitoring/ --count --select=E9,F63,F7,F82 --show-source --statistics

- name: Check formatting with Black
run: |
pip install black
black --check ./aws/logs_monitoring

- name: Lint CloudFormation template with cfn-lint
uses: scottbrenner/cfn-lint-action@master
with:
args: "aws/logs_monitoring/template.yaml"
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python unit tests

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Run Python unit tests
env:
AWS_DEFAULT_REGION: us-east-1
DD_API_KEY: "11111111111111111111111111111111"
DD_ADDITIONAL_TARGET_LAMBDAS: "ironmaiden,megadeth"
run: |
pip install boto3 mock
python -m unittest discover ./aws/logs_monitoring/
12 changes: 12 additions & 0 deletions .github/workflows/trace_forwarder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Trace forwarder tests

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run trace forwarder tests
run: |
./aws/logs_monitoring/trace_forwarder/scripts/run_tests.sh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
env
base.zip
*/gen
*/env
.vscode
**/node_modules
.idea
9 changes: 9 additions & 0 deletions aws/logs_monitoring/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*
!lambda_function.py
!enhanced_lambda_metrics.py
!settings.py
!setup.py
!template.yaml
!trace_forwarder/bin
!trace_forwarder/__init__.py
!trace_forwarder/connection.py
3 changes: 2 additions & 1 deletion aws/logs_monitoring/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.zip
tools/layers
tools/layers
.forwarder
361 changes: 322 additions & 39 deletions aws/logs_monitoring/README.md

Large diffs are not rendered by default.

Loading