Bibisect/da

From The Document Foundation Wiki
< QA‎ | Bibisect
Jump to: navigation, search

Introduktion

Bibisect står for ”binær bisektion“ Det er en procedure, der hjælper med at identificere tilsagn, der har forårsaget regressioner. Regressioner er den mest irriterende menneskelige efterladenskab, som uheldigvis dukker op med softwareudvikling og QA (kvalitetssikring). Vi vil behandle regressioner hurtigt og før tiden er gået og de bliver sværere og sværere at vurdere og ordne.

Hvordan fungerer Bibisection?

Hver Bibisect-pakke er et git-lager befolket med hundreder eller tusinder prototyper af LibreOffice. Tilføjet til lageret in kronologisk orden giver prototyperne en hurtig og enkel måde for os at teste en fejl mod imod mange forskellige versioner uden at skulle kompilere LibreOffice hver gang, vi skifter til en anden version.

Vi kan geare værktøjerne, der er indbygget i git til binære søgninger gennem tilsagnene (”fx git bisect“) såvel som drage fordel af kompressionen og de-duplikeringsfunktioner, der inkluderet i git. Fx i en serie af prototyper, som hver kunne optage 500 MB diskplads, skal vi gennem de-duplikation potentielt kun bruge kun 25 MB til hver ekstra prototype.

Detaljer

En succesfuld bibisection vil overlade udviklerne kun nogle få tilsagn at gennemsøge for at finde det 'skyldige' tilsagn, som vi tror indførte en regression. Afhængigt af det bestemte bibisect-lager, kan samlingen være på 60, 100 eller bare 2 tilsagn. (Vi har også nogle meget 'grove' bibisect-lagre, som bruger frigivne versioner + beta + RC-prototyper, og disse har måske samlinger der spænder over flere hundreder tilsagn)

QA kan tage det ekstra skridt, der består i en fuldstændig bibisection (der bestemmer det nøjagtige tilsagn) eller kan overlade det til udviklerne. Det er ofte let at at finde det tilsagn, som har forårsaget problemet, efter at fejlen er blevet bibisectet.

Med omkring 10 GB vil du have hundreder af prototyper at arbejde med. En bibisect kan tage så lidt som 15 minutter.

Aktuelt kan bibisect udføres på:

Generelle Instruktioner

Bemærk: Hver operativsystem er særligt, læs venligst venligst de fulde instruktioner, som vedrører dit specifikke operativsystem (GNU/Linux, macOS eller Windows) for mere komplette instruktioner, instruktionsvideoer og anden beslægtet information.

Bibisection hviler på 6 trin:

  1. Opsætning af dit miljø, herunder installation af eventuel ekstra software
  2. Download af bibisect-pakken
  3. Bibisection af fejlen
  4. Fremstilling af en bibisect-log
  5. Tilknytning af bibisect-loggen til fejlrapporten
  6. Opdatering af fejlrapportfelterne

Begrænsninger

Udførelse af en 'bibisect' er kun muligt, hvis vi har et tilgængeligt lager til det korrekte operativsystem, der dækker den korrekte samling af LibreOffice-tilsagn. Vi har meget god dækning af GNU/Linux og forbedrer vores dækning af Windowa og macOS.

Nogle regressioner er vanskelige at genskabe og kræver måske flere testkørsler, før fejlen viser sig. Som du måske kan forestille dig, er det ”meget“ svært at bibisecte sådanne regressioner, og kræver at du foretager mange testkørsler efter hver udgivelse af en ny version af LibreOffice for at give nogen sikkerhed / statistik for, at fejlen faktisk findes eller ikke findes i den givne version.

Vi har aktuelt ikke bibisect-understøttelse af

Versioner

Versioner er oplistet på hver OS-side. Se #Detaljer ovenfor.

Ikke Bibisectable

Nogle fejl er ikke bibisect-bare. De omfatter

  • Fejl, der ikke viser sig på en understøttet platform (se #Begrænsninger)
  • Fejl, der er ældre en vores bibisect-prototyper ”(Vi arbejder på at udvide dækningsområdet)“
  • Fejl, der er afhængige af prototypeindstillinger, der ikke er aktiveret i TDF-prototyper ”(fx ”'-kde“')“

Hvis du finder, at en fejl med nøgleordet bibisectRequest ikke er bibisectbar, skriv en kommentar om, hvorfor vi ikke kan bruge bibisect til at opspore begyndelsen af dette problem, og erstat nøgleordet bibisectRequest med notBibisectable.

Fejlfinding

Find fejl, der behøver bibisect

Følg fejl med nøgleord bibisectRequest are waiting for a bibisect:

Full Query
ID Summary Priority Status
54703 Hidden Sections are no longer hidden when printing or exporting pdf. medium NEW
56910 FILEOPEN Calc text import dialog preview with non-default separators initializes too long medium NEW
60413 Images in header disappear in Word for Mac OSX after save to Word 97 format medium NEW
62093 VIEWING of preview in Print Dialog destroyed after horizontal or vertical resize medium NEW
65200 FORMATTING: Autofit width not behave properly if cell(s) contain text wrapping medium NEW
65259 CONFIGURATION: paragraph style sheets in in wrong language when using wizard medium NEW
66054 FORMATTING: font work medium NEW
68784 cell comment pop-up window doesn't disappears completely when mouse moves away medium NEW
68988 FILEOPEN: bullets are not shown the correct size in .cgi-format medium NEW
69069 [EDITING, VIEWING] 100% CPU while Scrolling and copying Columns medium NEW
69479 Formula is getting corrupted after input medium NEW
69932 Toolbar elements flicker on resize (not with GTK3) low NEW
70607 LibO uses 100% CPU and crashes when quit during extension update high NEW
70710 filled areas are not filled for WMF images medium NEW
70838 FILESAVE: doc: wrong size and position exporting rotated shapes medium REOPENED
75218 Letter Wizard does not respect locale anymore medium NEW
75260 double line border styles wrongly displayed high NEW
75331 FILEOPEN: DOCX - table has a text wrapping of 'around' (see Comment 15) medium NEW
76644 extended tips missing for menu items medium NEW
77929 Fill series should detect the last cell to be filled, rather than fill to row #1648576 medium NEW
79063 cell height of spreadsheet printed different after cut/paste to Writer as object when row height set using dialog low NEW
79452 Themes with a separator line per toolbar incorrectly places separator line at bottom when toolbar docked at bottom low NEW
81943 FILEOPEN: RTF - Image should be placed behind table (wrap through-in background) medium NEW
82091 Spelling dialog <F7> correction of Calc cells does not remove red wavy underline, but context menu spelling correction does medium NEW
82113 FILEOPEN: EMF+ EmfPlusRecordTypeDrawDriverString Text in EMF not displayed medium NEW
86321 EDITING, FORMATTING: diagram didn't automatic update when change variable (recalculation not triggered) highest NEW
86919 Writer loses focus when toggling between full screen mode medium NEW
87165 FILEOPEN: text missing in tables in .rtf medium NEW
87218 FILEOPEN: table displayed in wrong position in .rtf medium NEW
87219 FILEOPEN: line at the top displayed at the bottom in .rtf medium NEW
87680 No accessible caret-moved events in Writer tables medium NEW
90414 Text inside Folded Corner rendering at Draw is different when export to SVG medium NEW
90580 VBA modules break valid StarBasic code; cannot delete "VBA context" medium NEW
90621 FORMATTING: Custom character styles are not applied in bibliographies medium NEW
91237 CALC hangs on web table paste (intermittent) high NEW
91894 Impress Cut & paste of a line selects the whole table medium NEW
92796 [ODF] Writer does not remove unused page background image/bitmap medium NEW
92909 UI - Table creation field data types are displayed in rounded buttons that do not fill grid cell (OSX only) low NEW
92960 Calc doesn't merge cells correctly when pasting merged content from HTML medium NEW
93085 Application window is too high, status bar is not visible (1024x600 resolution), size of module launch inherited from the StartCenter which gets a fixed minimum height (comment 14) high NEW
93660 FILEOPEN: Writer cannot open DOCX with large table again (writerfilterlo.dll) medium NEW
94099 Calc performance degradation after selecting cells in an Excel document and activating font chooser with previews enabled medium NEW
94259 FILEOPEN XLS Charts are vertically squashed medium NEW
94265 bootstrap exception when running C# application with LibreOffice API medium REOPENED
94499 FORMATTING: "Expand formatting" affects non-empty adjacent cell medium NEW
94666 Narrow spacing of menu items, and truncated tooltips with lower resolution low NEW
94737 Poor subpixel rendering on Linux medium NEW
94826 Big image in header completely freezes modern hardware medium NEW
95150 Border of tablecontrol doesn't show color medium NEW
95191 Forms and dialogs opened via macros on ODB file open no longer work high NEW
95476 FILESAFE: Fileexport to xhtml shows display:condition; for section, which is defined as displayed with condition medium NEW
95658 Repagination caused by changing print settings in File > Print .. under "Range and Copies" is too slow low NEW
95680 Convert - Metafile - Save Image... No function. Must use Alt+R medium NEW
96176 DRAW: Slow performance zooming an SVG after opening medium NEW
96310 LO will hang for 30 plus seconds after opening EMR software alongside the LO suite (1 processor fully consumed) medium NEW
96341 Version 5.1 takes a lot more RAM than version 5.0 in Windows medium NEW
96500 EDITING: flicker during mouse-move of table control (form design mode) low NEW
96880 Slow page scrolling when an SVG object is in view medium NEW
97129 No feedback while saving a document medium NEW
97905 Unfocused display of current style in Sidebar has bad contrast (see comment 20) medium NEW
98491 Split hsqldb Base application will not start under OSX10.11.x causes LO to freeze requiring force kill high NEW
98546 EDITING sheet links created using a macro are not updated immediately medium NEW
99707 Impress stalls presentation on 3-liner text block medium NEW
99912 Writer creates a new hyperlink when proofing hyperlink text medium NEW
100119 Korean Autocorrect does not work in OS X 10.11 medium NEW
100215 Cropped images corrupted when reopening the Slidedeck high NEW
100585 Ordering of sheets with different direction changes when switching between them (RTL UI) low NEW
100961 After inserting Fixed Date, and saving in DOC format, the date is not fixed anymore medium NEW
101293 Bad marker icons in Galaxy and Highcontrast theme low NEW
101379 UI - (on high resolution screens) text cursor is too thin and so nearly invisible medium NEW
101396 VIEWING Font color changes when auto spellcheck is enabled and text is underlined due to spelling error (steps in comment 7) medium NEW
102364 Freeze when doing Crtl + Z on large spreadsheet with concatenation medium NEW
103056 Endless scrolling upwards after reaching top of document medium NEW
103151 SVG rendered wrong in the presenter console medium NEW
103218 Imported XSLX wrong image boundaries medium NEW
103252 macOS: Time to open StartCenter high NEW
103375 MAILMERGE: unpredictable failures: sometimes looses embedded image, or not all mails sent, when e-mailing as pdf medium NEW
103476 FORMATTING: bad paragraph and line spacing in textbox medium NEW
103553 FORMATTING: Writer show zero page borders in specific docx file medium NEW
103570 Java not selected automatically when a database is opened for the first time low NEW
103806 Slide sorter doing unwanted deletion and duplication when moving slides medium NEW
103909 macOS: Start Center doesn't open on top - doesn't receive focus high NEW
104225 VIEWING: sluggishness while scrolling medium NEW
104596 FILEOPEN: image in .DOC header incorrectly positioned, bellow paragraph from Word not correctly set to margin in Writer medium NEW
104716 General performance problems - UI freezes, slow scrolling, etc. in files with big/complex images medium NEW
104816 Inserting a user field will lose the condition of section medium NEW
105330 The text position pointer will disappear when undoing creating a table in a table medium NEW
105487 Screen readers have trouble reading tables that span multiple pages medium NEW
105541 Charts rendering stutters on bargraphs + hatched-areas medium NEW
105690 FILESAVE: Button dissapears after saving in Calc medium NEW
105714 Link dialog icons and fields are too big medium NEW
105799 Undoing applied table style (aka autoformat) doesnt return table text formatting back to original medium NEW
106113 EDITING: Text in cells has different vertical alignment when being edited medium NEW
106484 UI: Print Properties Device tab dropdown items not applied or remembered medium NEW
106617 Writer memory leak medium NEW
106730 Searching for Character Formatting is Broken medium NEW
106788 Libreoffice 'Export to PDF' save dialog allows newline characters in file name medium NEW
106831 Can't print #10 envelopes properly and with proper orientation medium NEW
106962 Clicking text or text box on macOS Sierra results in sluggish UI high NEW
107140 FILESAVE Additional empty columns and larger filesize after deleting a column medium NEW
107248 Improvements to the version control dialog medium NEW
107304 FILEOPEN OTT: Slow file-opening medium NEW
107376 Displaying false preview when using pptx files. medium NEW
107391 FILEOPEN: Images set as 'no wrap' appear floating over text medium NEW
107443 FILEOPEN: "Open" in "Document in Use" dialog for non-default file format documents opens read-only medium NEW
107574 Blue throbbing highlight of comments appear over comment at different window views medium NEW
107913 Text animation order in Impress slide show wrong for hypelinked text since LO 3.6 medium NEW
107987 EDITING: Resizing an image is slow depending on slide design medium NEW
108266 FILESAVE: RTF: paragraphs preceded by endnote with custom character lose formatting (see comment 7) medium NEW
108560 Editing multi-line cells with thousands of words is slow when OpenGL is enabled medium NEW
108573 EDITING: No 'preview' while moving complex drawing object medium NEW
108637 Memory usage increases considerably when deleting rows in a document with a 1000 empty sheets (see comment 3) medium NEW
108638 FORMATTING Text size is not scaled correctly according to the zoom factor medium NEW
108757 PDF Export of a particular spreadsheet is slower than it has been before medium NEW
111522 SdrUndoMoveObj::Undo() Crash When multi windows high NEW
111874 Regression: glitch in fade->smoothly transition in 5.4 wrt 5.3 (linux, intel graphics) medium NEW
111936 CHARTS: Bad display on data label in percent stacked chart medium NEW
112081 UI: Checkbox labels getting cropped in various language setting options medium NEW
112166 Crash on previewing slide fade transition with Intel graphics card in a VM medium NEW
112414 When checking for updates in macOS 10.13, screen hangs, and the program hangs high NEW
112568 Slow typing in Writer after inserting png image, image repaints all the time medium NEW
112811 FILESAVE: DOCX - Dots separator in index not fully preserved medium NEW
112966 EDITING Large pasted text not visible until adjacent cell edited medium NEW
113014 FILEOPEN DOCX Numbering in a table is displayed outside the visible area medium NEW
113042 FILESAVE: Saving an large calc sheet is slower in LibO5.4 compared to LibO5.3 medium NEW
113084 FILEOPEN: RTF - Font table not imported/applied correctly medium NEW
113228 Gallery category/folder names not localized medium NEW
113273 Crash in: SfxShell::SetDisableFlags(SfxDisableFlags) medium NEW
113539 FILEOPEN ODT: Slower opening of file containing a large table (25 rows 2000 columns) medium NEW
113620 Conversion of Draw documents to html fails with command line. medium NEW
113721 One CPU core stuck at 100% after saving a file medium NEW
113849 FILESAVE: Saving a file as .docx format adds spurious extra page breaks medium NEW
114022 Selection in Input Line, of cell containing also an email address as link, is not synchronized properly in the cell medium NEW
114223 RTL/LTR buttons don't appear when CTL is enabled medium NEW
114272 [macOS] Some Asian characters are garbled with western fonts. medium NEW
114452 The indent feature does not work in CALC, merged cells. medium NEW
114602 Query-Editor: No functions available for Sqlite 3 odbc medium NEW
114695 Calc Format->Page->Header dropdown extends outside the dialog when the file path is long medium NEW
114949 FILESAVE: Position or vertical or oblique lines lost in XML format (docx) medium NEW
114950 one line disapears when saving a document as .docx, then reopen the document, then renew the table of contents. medium NEW
114980 "Preparing preview" for master slides "Recently used" or "Used in this presentation" takes a long time sometimes medium NEW
115077 Merge mail wizard send empty images by mail in HTML format medium NEW
115147 Right pane offset and the appearance was broken when editing charts medium NEW
115249 FILEOPEN: PPT: Column displayed instead of lines medium NEW
115298 Locale information is wrong when LibreOffice optimizes them from span to paragraph medium NEW
115407 Impress loses transition sounds and sound instructions medium NEW
115431 Calculation and border problem medium NEEDINFO
115492 [EDITING] If a selected rang with protected cells exist and user tries to move by Enter or Tab, the cursor shoot out from the range medium NEW
115671 OpenGL: MSO OOXML shapes incorrectly rendered medium NEW
115822 Help navigation back-arrow crashes LibreOffice high NEW
115907 Index entries are corrupted if the entry is followed by italic and/or superscripted text medium NEW
116098 Shortcut for recording changes doesn't work medium NEW
116425 FILEOPEN XLSX Excel spreadsheet takes forever and a lot of CPU time to open medium NEW
116547 Export of mathematical formula in Writer document to DOCX is displayed incorrectly in Word medium NEW
116633 Values in filtered columns with dates shown incorrectly medium NEW
116687 Multiple Selection "hangs" after Ctrl+Left or Ctrl+Right medium NEW
116754 When saving a Writer document As RTF header text from p.2 appears in a footnote on p.1 medium NEW
116849 JPEG export as selection crops too much medium NEW
116872 6-page DOCX shows 10 pages in Writer medium NEW
116892 FILEOPEN: Rotated Objects Anchored to Cells set Move when Opened medium NEW
117091 "Import MathML from Clipboard" is broken medium NEW
117160 Solid color background on Impress and Draw leaves top and left 1px white/blank when exporting to PNG medium NEW
117180 Dashed lines of the hard page break separator in Writer appears only, if you scroll or zoom in/out medium NEW
117254 PDF: has charts rendered in wrong position (imported as Star Obj Descr (XML)) medium NEW
117255 EDITING: Star Obj Descr (XML) Resize preview is sometimes inconsistent medium NEW
117308 EDITING Comment box is not resized after Font size change after Save and Open medium NEW
117386 EXPORT SVG Text spacing not preserved by SVG export filter medium NEW
117485 Clicking on the table border will select the full table content instead of only selecting the border (used for cut/paste) medium NEW
117576 Image inserted as PDF initially is stored as both PDF and PNG, but a Deletion and Undo of the image is restored as PNG with loss of the original PDF stream ( steps in comment 19 ) high NEW
117671 Comments (some or all not seen) are lost when a .fods file is saved with a new name medium NEW
117742 On format menu, when numbered list is enabled, keyboard navigation is broken medium UNCONFIRMED
117814 PIVOTTABLE: date format from registered data source lost (FORMATTING) medium NEW
117905 Coinmarketcap api doesn't work anymore medium NEW
117930 FILESAVE; Error while exporting document to XHTML medium NEW
117942 Active/Expanded comment box doesn't adjust position when resizing the main window medium NEW
117948 After hide a colum and save the file, some object position are moved when reopen it. medium NEW
117985 Cell comment created in row 66054 appears at row 198160 high NEW
118071 Libreoffice impress does not save master slide settings medium NEW
118169 FILESAVE DOCX ActiveX form control saved incorrectly with Hungarian accented letters medium NEW
118178 Conversion of ODT to PDF stalls for 25 seconds on the x-th conversion if settings.xml contains a PrinterName medium UNCONFIRMED
118205 EDITING Image is lost when added toward the end of the sheet medium NEW
118269 Comment Shortcut "Ctrl + Alt + C" not working in Writer medium NEW
118327 undo selects a list item medium NEW
118354 Draw just closes if to try select table in file high NEW

184 Total; 184 Open (100%); 0 Resolved (0%); 0 Verified (0%);


Derudover kunne all unresolved regressions in LibreOffice have nytte af bibisection.

Find fejl, der allerede er bibisectet

Se venligst links til bugzilla-forespørgsler i here.

Når informationen ovenfor er tilføjet fejlen, ved en udvikler , at regressionen blev introduceret mellem tilsagnene fb754a0df859e30255c25af8fa19bfaa75f257e7 (good) og 2d19e9bb07ccff3134f855812dddfda5c07b1fe4 (bad) på master. A:

 
git log fb754a0df859e30255c25af8fa19bfaa75f257e7..2d19e9bb07ccff3134f855812dddfda5c07b1fe4

på kildelageret, der vil så vise de 128 tilsagn, herunder den, som introducerede fejlen og gøre det meget lettere for udvikleren at nærme sig den skyldige. Se flere detaljer i:

Specielle situationer

Kørsel med en separat brugerprofil

For at oprette en mappe til separate profiler på /tmp/ (som vil blive fjernet automatisk under den næste maskinopstart):

 
./opt/program/soffice -env:UserInstallation=file:///tmp/soffice-bisect

Hvis du vil begynde forfra på hver bisect-gentagelse, kan du tilføje nummeret på git-tilsagnet til mappens navn. For eksempel

 
./opt/program/soffice \ 
-env:UserInstallation=file:///tmp/soffice-bisect-$(git rev-parse HEAD)

Find en løsning

Sommetider er en fejl indirekte skade af en anden (måske mindre) fejl på en uklar måde. I sådanne tilfælde er en anden fejl måske blev fikset på masteren, men ikke tilbageporteret til udgivelsesforgreningen. Du kan finde løsningen (fix'et), ligesom du finder en fejl, bortset fra at du skal skrive
git bisect good
i stedet for
git bisect bad
og omvendt. Hvis løsningen er lille og vigtig nok, kan den sandsynligvis let blive tilbageporteret til udgivelsesforgreningen.

Problemløsning

Beskriv venligst dine problemer og hvordan du løste dem. Dette afsnit dækker spørgsmål, som dækker mere end et OS. Om OS-specifikke spørgsmål se venligst de individuelle OS wikisider.

Umuligt at udtrække filer

Hvis du ikke kan udtrække filer (du skulle få en fejlmeddelelse). Prøv at omdøbe filen fra *.tar.lzma til *.tar.xz.

Installeret LibreOffice blev uventet ændret

Problemer / Beskeder:

 error: Your local changes to the following files would be overwritten by checkout (Dine lokale ændringer i følgende filer ville blive blive overskrevet ved udtjekning): 
  opt/program/pythonloader.pyc 
  opt/program/uno.pyc 
  opt/program/unohelper.pyc 
 Please, commit your changes or stash them before you can switch branches (Indsend venligst dine ændringer eller gem dem før du kan skifte forgrening). 
 Aborting 

Løsninger:

 
git checkout .

vil reparere problemet. Derefter kan du starte den næste testkørsel som sædvanligt med

 
git bisect good # or git bisect bad

Hvis det ikke løser problemet, kan du prøve

 
git clean -fd 
git reset --hard
Den ultimative reparation er at slette alt undtagen en skjult
.git/
mappe, Og udføre
git checkout oldest
.


Umuligt at start soffice

Problem: Efter forsøg på at køre soffice inde i bibisect får du fejlmeldingen "unexpected operator terminate called after throwing an instance of 'com::sun::star::uno::DeploymentException'“

Løsning: Nulstil din LibreOffice-profil, der er placeret i ~/.config/libreoffice. Sørg for at tage sikkerhedskopi af mappen, hvis du har nogen som helst indstillinger, du vil bevare til brug med din stabile LibreOffice-udgave. Når du er færdig med bibisect kan du prøve at genskabe din sikkerhedskopi på dens oprindelige plads (dvs. slette den den nye profilmappe og erstatte den med den sikkerhedskopierede).


Yderligere oplysninger

Noter

Se detaljer om, hvordan bibisect-arkiver genereres:

Information om sammenfletning af alle vore bibisect-lagre, ser du på

Vi vil lave en grafisk brugerflade (GUI) til bibisect: Bibisect GUI