Improve backend code coverage performance

オープン
#933 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cypress, typescript

調査の方向性

support.js の193-222行目から始めて、cy.request がどのように coverage を取得し、それがどのようにブラウザーに到達し、cy.task がどのようにそれを Cypress サーバーに送信するかを追跡します。dev-server の coverage ルートを Cypress アプリサーバーからクエリできるかどうかを確認し、アクセスできない場合は既存の fallback を維持します。完了の条件は、可能な限り不要なネットワーク転送とブラウザー転送を避けることです。

索引モデルが issue の本文から書いたものです。

説明

performance

This code uses a cy.request to query the running dev servers to get their coverage which then just gets loaded in client-side and immediately sent to the Cypress server via a cy.task. It likely could be more efficient (skip one network hop, avoid transferring the data to the browser, and populating the cy.task message field with the large amount of data) to query the dev server directly from the Cypress app server.

The only way this falls apart is if the dev servers have to be accessed via cy.request but i'm not sure that is a likely scenario. We could always detect whether the coverage routes are accessible first and then fallback to the existing logic otherwise.

主要言語
TypeScript
スター
440
フォーク
114
平均マージ
42分
マージ済み PR(30日)
19

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cypress-io/code-coverage のほかの issue

cypress-io/code-coverage の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。