Skip to content
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

Support non-executable files during pipeline setup #10684

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

djova
Copy link
Contributor

@djova djova commented Nov 18, 2021

What does this PR do?

If a file in the pipeline setup scripts directory starts with an underscore, then it is treated as a "non-executable" file and it will not be executed.

This is required for #10637 where a large SQL setup script is needed to be referenced by one of the other scripts, but the SQL script itself must not be executed.

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

If a file in the pipeline setup scripts directory starts with an underscore, then it is treated as a "non-executable" file and it will not be executed.

This is required for #10637 where a large SQL setup script is needed to be referenced by one of the other scripts, but the SQL script itself must not be executed.
@codecov
Copy link

codecov bot commented Nov 18, 2021

Codecov Report

Merging #10684 (f5082f5) into master (7ec881f) will not change coverage.
The diff coverage is n/a.

Flag Coverage Δ
datadog_checks_dev 80.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@sarah-witt sarah-witt left a comment

Choose a reason for hiding this comment

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

Looks good, can you also update the docs here after this PR? https://datadoghq.dev/integrations-core/meta/ci/#scripts

@djova djova merged commit 1e2abac into master Nov 19, 2021
@djova djova deleted the djova/datadog-checks-dev-handle-non-exe-files branch November 19, 2021 01:09
@djova djova mentioned this pull request Nov 19, 2021
4 tasks
@djova
Copy link
Contributor Author

djova commented Nov 19, 2021

Looks good, can you also update the docs here after this PR? https://datadoghq.dev/integrations-core/meta/ci/#scripts

Sure, #10691

@ChristineTChen ChristineTChen changed the title support non-executable files during pipeline setup Support non-executable files during pipeline setup Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants