Skip to content

Conversation

@maxday
Copy link
Contributor

@maxday maxday commented Jun 11, 2021

  • Add integration tests for DD_TAGS and DD_EXTRA_TAGS for both metrics and tags
  • Trigger Github-Action on push on files related to integration tests to make review easier (and not to wait for the cron job to see whether or not tests are successful)

@maxday maxday requested a review from a team as a code owner June 11, 2021 18:33
app.post('/v1/input', async (req, res) => {
if(JSON.stringify(req.body) !== '{}') { // to avoid printing empty logs due to the connectivity test
for(let i = 0; i < req.body.length; ++i) {
//sort tags to avoid flakky tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flakky -> flaky

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// reset tags once sorted
req.body[i].ddtags = sortedTags.join(",")
const logString = JSON.stringify(req.body[i]);
if(logString.indexOf("[sketch]") === -1 && logString.indexOf("[log]") === -1) { // avoid inception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "avoid inception" here? I would make this comment a bit more specific.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@nhinsch nhinsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Hooray for integration tests!

@maxday maxday merged commit 050c22d into main Jun 11, 2021
@maxday maxday deleted the maxday/integration-test-dd-tags-dd-extra-tags branch June 11, 2021 18:50
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.

3 participants