Skip to content

ci(jenkins): don't run TAV tests for Node.js core modules #1352

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 1 commit into from
Sep 17, 2019

Conversation

watson
Copy link
Contributor

@watson watson commented Sep 16, 2019

Previously if there was a change to any of our patches for a Node.js core modules (e.g. http), Jenkins would try to run TAV tests for the http module. This is just a waste of resources as there are no TAV tests for core modules.

This commit will filter out any core module from the list of modules being considered for TAV tests.

Previously if there was a change to any of our patches for a Node.js
core modules (e.g. http), Jenkins would try to run TAV tests for the
http module. This is just a waste of resources as there are no TAV tests
for core modules.

This commit will filter out any core module from the list of modules
being considered for TAV tests.
@watson watson requested a review from v1v September 16, 2019 15:06
@watson watson self-assigned this Sep 16, 2019
@watson
Copy link
Contributor Author

watson commented Sep 16, 2019

@v1v Does this somehow conflict with the change in #1351 because I'm also adding quotes here?

@v1v
Copy link
Member

v1v commented Sep 16, 2019

They are independent:

@v1v
Copy link
Member

v1v commented Sep 16, 2019

So if someone might change https://github.com/elastic/apm-agent-nodejs/blob/master/lib/instrumentation/modules/http.js then this particular script should skip running the TAV for the module http, right?

@watson
Copy link
Contributor Author

watson commented Sep 16, 2019

@v1v Correct. I discovered this in #1340 where it tried to run the http2 TAV tests: https://apm-ci.elastic.co/blue/organizations/jenkins/apm-agent-nodejs%2Fapm-agent-nodejs-mbp/detail/PR-1340/12/pipeline

@watson watson merged commit 56e6b07 into elastic:master Sep 17, 2019
@watson watson deleted the jenkins-tav branch September 17, 2019 06:15
@Qard
Copy link
Contributor

Qard commented Sep 18, 2019

I think this PR may have missed dealing with the TAV_UPDATED flag in the Jenkinsfile. It's resulting in failed attempts to load a .ci/.jenkins_generated_tav.yml file.

@watson
Copy link
Contributor Author

watson commented Sep 19, 2019

@Qard fixed in #1363

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