Skip to content

Add dashboard tests to CI#18

Merged
simba-git merged 22 commits intodevelopfrom
feature/simba/dashboard-ci
Jul 18, 2020
Merged

Add dashboard tests to CI#18
simba-git merged 22 commits intodevelopfrom
feature/simba/dashboard-ci

Conversation

@simba-git
Copy link

No description provided.

Simba added 4 commits July 18, 2020 00:18
Using npx pretier --write .
This commit explicitly sets keys for each item in the DrawerLists to
fix the warning being printed to the console.
We will have a different workflow for the dashboard and the client so
it makes sense to name the files as such.
Uses GitHub actions CI to test dashboard on all 3 OS and using
node 12.x and 14.x. It calls into the Makefile.
@simba-git simba-git force-pushed the feature/simba/dashboard-ci branch from 0207311 to f3c91ed Compare July 18, 2020 07:19
Simba added 15 commits July 18, 2020 00:23
The workflow should only run if the client Makefile, code, or the
workflow changes. The workflow yaml file was re-named and the client
Makefile was moved into the client/ directory. This updates the paths
parameters to match this.
It is re-named to "python_client_unittests" to be more descripitive
as we begin adding more job and workflows to the project.
The python-version variable never existed, only the python one did. This
resolves that problem.
The version was manually set to 1.0.7 instead of just v1 to fix a
previous upstream issue that has since been resolved.
The codecov flags are now python and client which are more helpful
and descriptive than just unittests.
The previous workflow was mixing installing dependencies and caching
in a single step. It was not compiling correctly. This solves that
problem.
This Makefile borrows heavily from the python client one and uses
npm to perform most of its work.
This fixes unittets and should work out of the box.
Remove Python 3.5 support from setup.py and removes tests for it in
the Python client workflow. pandas requires atleast Python 3.6 to work
and we aren't tied to 3.5 at all.
The install rule was renamed into install-dev, but the make dependencies
were not updated to reflect this.
setup-python was leftover from copy the python client workflow. It
should be using setup-node to get the right node version (though
for some reason, it worked anyways)
The setup-node version was set to v2 which doesn't exist. This is
because setup-python uses v2. This drops it down to v1.
env_vars was removed from the API in a newer version. This fold in
that info into the flags argument.
The file argument wasn't working, this attempts using the coverage
directory in its entirety.
@codecov
Copy link

codecov bot commented Jul 18, 2020

Codecov Report

Merging #18 into develop will decrease coverage by 10.72%.
The diff coverage is 82.35%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop      #18       +/-   ##
============================================
- Coverage    93.07%   82.35%   -10.73%     
============================================
  Files            4        4               
  Lines          260       34      -226     
  Branches        24        1       -23     
============================================
- Hits           242       28      -214     
+ Misses          15        6        -9     
+ Partials         3        0        -3     
Flag Coverage Δ
#dashboard 82.35% <82.35%> (?)
#macos-latest 82.35% <82.35%> (?)
#node 82.35% <82.35%> (?)
#node-12.x 82.35% <82.35%> (?)
#node-14.x 82.35% <82.35%> (?)
#ubuntu-latest 82.35% <82.35%> (?)
#unittests ?
#windows-latest 82.35% <82.35%> (?)

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

Impacted Files Coverage Δ
dashboard/src/components/app/App.js 0.00% <0.00%> (ø)
dashboard/src/index.js 0.00% <0.00%> (ø)
dashboard/src/components/nav/Nav.js 100.00% <100.00%> (ø)
dashboard/src/styles/theme/index.js 100.00% <100.00%> (ø)
client/streamsql/errors.py
client/streamsql/operation.py
client/streamsql/feature.py
client/streamsql/local.py
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 611ac86...194dadf. Read the comment docs.

Simba added 3 commits July 18, 2020 10:54
Adds a .gitattributes file that changes the EOL character on Windows
to \n instead of \r\n. This also should allow JS formatting checks
using prettier to pass.
Generating a coverage report in the dashboard also runs all the tests.
That means that, prior to this commit, all the tests were being run
twice.
If we find a cached version of node_modules, we should use that rather
then re-installing all dependencies. The workflow had a bug that checked
the venvcache id for a cache hit rather than the nodecache id.
@simba-git simba-git merged commit 4ae6945 into develop Jul 18, 2020
@simba-git simba-git deleted the feature/simba/dashboard-ci branch July 18, 2020 18:14
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.

1 participant