Builder/Viewer test hooks: the tab script and the scene script accept different commands (20 shared, 105 and 164 in one only)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- testing-qa
調査の方向性
Start by reading the tab dispatcher in src/apps/builder/BuilderScript.C, the SceneScript core in src/wxviz/viewer/SceneScript.C, and Builder's extension in src/apps/builder/Builder.C. Decide which command classes must be shared, move those commands to common implementations, and add a check that catches differences in that shared set. Done means the rule is documented and the check fails when one dispatcher lacks a required shared command.
索引モデルが issue の本文から書いたものです。
説明
The Builder and Viewer have two script dispatchers with different command sets. A hook that exists in only one of them cannot be used from the other, and a test that needs it fails with "unknown command". This happened in the release round: selectoverlay was only in the scene script, so the Viewer-tab checks W4.3 and W4.4 failed (fixed for #1279 by sharing one implementation).
The two dispatchers:
- Tab script (
ECCE_BUILDER_SCRIPT,Builder::runBuilderScriptin src/apps/builder/BuilderScript.C) runs in Builder and Viewer tabs and drives interactions. - Scene script (
ECCE_VIEWER_SCENE, theSceneScriptcore in src/wxviz/viewer/SceneScript.C plus Builder's extension in src/apps/builder/Builder.C) is used for rendering and screenshot tests.
The command names were collected from the literal comparisons each dispatcher makes (w[0] == "...", c == "..." and prefix compare(0, n, "..."), at main 31caa9f79), so the counts are approximate:
| Commands | Count |
|---|---|
| In both | 20 |
| Only in the scene script | 105 |
| Only in the tab script | 164 |
Commands only in the scene script:
assigncharges atomnumbers bondlabels camera clear clip coin: collapse columntab cubegrid densitymap
depthcue deselect display dm dockfloating dockpane dp drag dropat dsstyle esp espdump esptest
exportiso field floatstyle foldclick fragdump gridfaces gridnuclei gt gtstep hold idleframes
importfile isolobe isotest labels layerpasses layout mo mobar modiagram modioptions modipick
mofield mogrid moiso moselect mosurf motable narrowcolumn nmcheck nmhide nmstep nmtest nmvect
offscreen opacity opdos ortho paneclose panefold panelfloat panelmode panelpaints panelsize
paneorder panestate perpixel pick plotshot propswitch ptree redraws resetview residuelabels
sashdrag savecalc savethumb screen setcontext snap stickradius storedthumb stylecs stylerq surfmesh
thumb timeframes toolclip tooldock toolfloat toolmenu translate transparency vib vizfile vizthumb
wheelburst windowsize wxpick xshot zoomburst
Commands only in the tab script:
add Added addelem atomclick atompos atomstyles atomtable bonddipoles bondkind bondlen bondorders
bonds calcdiffraction calcframe calclayer calcmeasure calcpowder camerastate cell charge chooser
clean click comparewith constraints context coords coordsraw counterpoise ctrlz cutcluster dclick
debye delete delkey diffraction distortdlg dna drawn drawnstyles dummy element ellipsoid emptyclick
expect focus fold fragment fragments gmxa gten hbonds import info inview ircaxes irccalc ircclick
ircpath ircplayopt ircrow ircstep ircview key labelclick layer libatom library ligand ligands
mdcompare mdcsv mdfit mdloglog menu menuenabled menustate minsizes modal mode mostate mult nmr
noise= overlay panel panesize pertab pickatom plist popup poses progress propchange pullcsv quit
replacegroup resatoms residues rows rxnenergies save saveimagemenu savemenu savestate savexyz scan
scancalc scanclick scancompare scancsv scanjoin scanlayout scanmorse scanplayopt scanpng scanrow
scanstatus scanstep scanview scanzero selectatoms selectbonds selectelem select_hetero selection
select_ligand selectnub select_protein select_within smiles solvate specclick specfactor
spectrumcsv stamp stressinfo surface symmetry tablecopy takefrom thermo thermolayout toolbar
umbrella umbrellaanalysis umbrellaclip umbrellacreate umbrelladetails umbrellaexport umbrellafind
umbrellapage umbrellashot umbrellastate umbrellawham undolabel vector vibnote viewer viewpos
vinabox vinaboxinfo wait xrd
Many of the differences are probably intended, since each script was written for its own kind of test. What is missing is a rule saying which commands must exist in both: at least those a release-round or Viewer test needs, such as selection, panels, Properties entries and overlays.
To do:
- Decide that rule.
- Move the commands that must be shared into one implementation each, as
Builder::selectOverlaynow is. - Add a check that fails when one script gains a shared-class command the other lacks.
- 主要言語
- C
- スター
- 10
- フォーク
- 8
- 平均マージ
- 6時間 32分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FriendsofECCE/ECCE のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FriendsofECCE/ECCE#1353 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FriendsofECCE/ECCE#1348 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FriendsofECCE/ECCE#1345 ·
FriendsofECCE/ECCE の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vincentarelbundock/xtx#11 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
compiler-explorer/compiler-explorer#9738 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 3 日以内に返信
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideオープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
kamgurgul/mib2q-carplay#74 ·