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

fix: revert CI change + fix broken tests #4306

Merged
merged 3 commits into from
Oct 4, 2021
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Oct 4, 2021

This PR does a few things:

Fixes N/A

@jsjoeio jsjoeio requested a review from a team as a code owner October 4, 2021 19:09
@jsjoeio jsjoeio added chore Related to maintenance or clean up ci Issues related to ci testing Anything related to testing labels Oct 4, 2021
@jsjoeio jsjoeio self-assigned this Oct 4, 2021
- name: Run code-server unit tests
run: yarn test:unit
if: success()

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'm guessing this was removed by accident but it should be here and we need it before uploading coverage to Codecov (it outputs coverage information).

Comment on lines -407 to -409
- name: Run end-to-end tests
run: yarn test:unit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to run unit tests twice

@@ -162,7 +162,7 @@ export const register = async (
}

server.on("close", () => {
vscode.vscodeServer.close()
vscode?.vscodeServer.close()
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 prevents us trying to call vscodeServer.close() on undefined

@@ -7,7 +7,7 @@ import * as integration from "../../../utils/integration"

const NOT_FOUND = {
code: 404,
message: "not found",
message: "Not Found",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🛠️ Change needed to make test pass (casing shouldn't matter). I was going to use .toMatch(/string/) but this was quicker

@jsjoeio jsjoeio enabled auto-merge October 4, 2021 19:13
@github-actions
Copy link

github-actions bot commented Oct 4, 2021

✨ Coder.com for PR #4306 deployed! It will be updated on every commit.

@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #4306 (a8d873f) into main (672038c) will increase coverage by 68.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           main    #4306       +/-   ##
=========================================
+ Coverage      0   68.09%   +68.09%     
=========================================
  Files         0       31       +31     
  Lines         0     1586     +1586     
  Branches      0      308      +308     
=========================================
+ Hits          0     1080     +1080     
- Misses        0      432      +432     
- Partials      0       74       +74     
Impacted Files Coverage Δ
src/node/routes/index.ts 76.53% <100.00%> (ø)
src/node/proxy_agent.ts 65.00% <0.00%> (ø)
src/node/routes/login.ts 70.90% <0.00%> (ø)
src/node/routes/health.ts 100.00% <0.00%> (ø)
src/node/wsRouter.ts 91.66% <0.00%> (ø)
src/node/coder_cloud.ts 28.57% <0.00%> (ø)
src/common/http.ts 100.00% <0.00%> (ø)
src/node/routes/errors.ts 69.56% <0.00%> (ø)
src/node/cli.ts 81.48% <0.00%> (ø)
src/node/entry.ts 0.00% <0.00%> (ø)
... and 22 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 672038c...a8d873f. Read the comment docs.

@jsjoeio jsjoeio merged commit 8a4ed5a into main Oct 4, 2021
@jsjoeio jsjoeio deleted the jsjoeio-fix-broken-tests branch October 4, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Related to maintenance or clean up ci Issues related to ci testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants