Skip to content

core: ci scripts overhaul #1597

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 14 commits into from
Sep 23, 2016
Merged

core: ci scripts overhaul #1597

merged 14 commits into from
Sep 23, 2016

Conversation

callmehiphop
Copy link
Contributor

@callmehiphop callmehiphop commented Sep 15, 2016

Closes #1579
Don't merge until after #1606

This PR aims to do 2 major things

  1. Only run tests for modules that have actually been updated.
  2. Converts scripts from Bash to JS

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2016
@stephenplusplus
Copy link
Contributor

stephenplusplus commented Sep 15, 2016

Could you go comment-crazy in the files, in terms of headings to each major file / function on what its purpose is?


if (!modules.length) {
echo('No code changes found, exiting early.');
exit();

This comment was marked as spam.

This comment was marked as spam.

var mod = new Module(MODULE_NAME);

mod.install();
mod.runSystemTests();

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

I think we might need an overhaul on what a build is and what a release is. Since Travis doesn't publish to npm for us anymore, what distinguishes the two?

@stephenplusplus
Copy link
Contributor

Topics that would be awesome if they were covered in the "Developer's Documentation" code comments:

  • What a build is, what a release is, what triggers each, etc.
  • An overview of the chain of events that take place
  • How CI runs code coverage (is it only running and reporting it once now?)

I have some more code-specific confusions, but I'll wait to see something like ^^ before I confuse us both by asking.

@callmehiphop
Copy link
Contributor Author

@stephenplusplus I went ahead and added a bunch of docs/comments to build.js - PTAL and let me know if you're cool with the format, then I'll do the others.

* - For each module that has updates, we'll install their dependencies and run
* their unit tests.
*
* - Assuming all the unit tests pass, we'll then attempt to get code coverage

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

*
* - Assuming all system tests pass, we'll create symlinks for each module
* via `npm link`. We'll then search for any modules that have the updated
* modules listed as dependencies or devDependencies. For each dependent

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

*
* - We'll then check to see if this build requires a documentation update.
* This is determined by the `TEST_ONLY` environment variable. This is set
* in the .travis.yml file. If this build does not require a documentation

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

I went ahead and added a bunch of docs/comments to build.js - PTAL and let me know if you're cool with the format, then I'll do the others.

They're beautiful 😢

@stephenplusplus
Copy link
Contributor

Is there anything left to do on this before I review?

@callmehiphop
Copy link
Contributor Author

@stephenplusplus I think it's good to go!

@stephenplusplus stephenplusplus merged commit 4c79e8b into googleapis:master Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants