plotly / plotly/Kaleido

SVG output isn't ordered, making comparisons across different CI machines impossible...

Open
#435 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
498
Forks
62
Avg merge
1d 11h
Merged PRs (30d)
2

Description

We now output SVGs, and normalise the output as much as we can (IDs etc), but sometimes the params are coming out in different orders....

Image

Ie, this is the BeyondCompare view of two the same image (Golden Test Master on the left, CI machine output on the right).

The images are identical, except the ordering of the parameters "style" and "viewbox" are reversed, making test comparisons impossible without significant pre-processing. Is it possible to get Kaleido to output the same order of params every time, regardless of machine used?

I guess the 2nd question here is, if Style is blank, why is it even there?

Thanks
Si

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing SVG export on the differing machines and trace where the style and viewbox parameters are serialized; done means deterministic ordering across environments and a clear decision on whether an empty style parameter should be omitted, covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.