Skip to content

Conversation

@kelvin-lu
Copy link
Contributor

@kelvin-lu kelvin-lu commented Apr 26, 2021

Summary

  • increases the network timeout for the node modules to be very long to prevent ETIMEDOUT errors
  • file naming lint
  • breaks out the prettier/eslint changes to another check, making it more obvious on the checks section what exactly is failing (and also because these do not need to be run on multiple OS's)
  • macOS -10.14 -> macOS-latest
  • runs the unit test only once per matrix combination

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

Copy link
Contributor

@jooohhn jooohhn left a comment

Choose a reason for hiding this comment

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

Overall LGTM with some clarifications

name: Test

on: [push, pull_request]
# https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this config stop tests on non-main branches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would stop tests on push for non-main branches, only run when they put a PR on main.

This is also an important callout - if we change our core branch name again this is another piece to maintain. thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

have we changed the core branch name in the past? Is there a reason to think we might do so again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot to respond here!

It changed once from master -> main, but I feel like it'd be pretty stable after that? Just the idea that the head branch can change

jobs:
lint-check:
name: Check for ESLint + Prettier Violations
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want ubuntu-latest over ubuntu-18.04?

Copy link
Contributor Author

@kelvin-lu kelvin-lu Apr 27, 2021

Choose a reason for hiding this comment

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

ubuntu-latest is 20, not 18 actually. I changed it here since the environment of the linting probably did not matter as much as the actual unit test suite.

Do you have a preference between either? The reason I made this change for mac/ubuntu is cuz the Node SDK actions gave me a warning when I was running not the latest version when I was shoring up the tests there

matrix:
node-version: [10.x, 12.x, 14.x]
os: [macos-10.14, ubuntu-18.04]
os: [macOS-latest, ubuntu-18.04]
Copy link
Contributor

Choose a reason for hiding this comment

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

ubuntu-18.04 here is mixed with ubuntu-latest in other files

- name: Build and run tests
run: |
make test
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the changes in this block all whitespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so - just my yml linter; let me check which one i'm using

@kelvin-lu
Copy link
Contributor Author

kelvin-lu commented Apr 28, 2021

@jooohhn @ajhorst I've gone an updated them all to ubuntu-latest, which will keep us up-to-date. Only concern here is if the latest has some critical error that causes stuff to break, but these are unit tests and not mission-critical if we get some unexpected failure; we can probably deal with that if we (ever) come to it?

@kelvin-lu kelvin-lu merged commit 7a8ce81 into main May 19, 2021
@kelvin-lu kelvin-lu deleted the 273/yamls branch May 19, 2021 21:08
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.

4 participants