X Tutup
Skip to content

fix(gerber-plotter): Board outline regression#64

Merged
mcous merged 3 commits intonextfrom
fix-board-outline-regression
Jun 19, 2018
Merged

fix(gerber-plotter): Board outline regression#64
mcous merged 3 commits intonextfrom
fix-board-outline-regression

Conversation

@kasbah
Copy link
Collaborator

@kasbah kasbah commented Jun 18, 2018

I am looking at the regression observed in the outlines drawn from the bus-pirate and maulwurf example boards. This is most likely something to do with trying to use the closest point for outline gap filling which was added to the gerber-plotter recently and seemed to be working well for the usbvil board.

@kasbah kasbah changed the title WIP: Fix board outline regression fix(gerber-plotter): Board outline regression Jun 18, 2018
@kasbah kasbah requested a review from mcous June 18, 2018 21:59
@kasbah kasbah force-pushed the fix-board-outline-regression branch from 39e4609 to f14a447 Compare June 18, 2018 22:20
mcous
mcous previously requested changes Jun 18, 2018
Copy link
Member

@mcous mcous left a comment

Choose a reason for hiding this comment

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

Great catch! Could you do me a favor and split this up into two PRs for the sake of the changelog?

  1. Add new boards for fixtures (with a few changes)
    • See comment about skipSnapshot
    • See comment about filename extensions
  2. Fix board outline regression

})

if (existing != null) {
return
Copy link
Member

Choose a reason for hiding this comment

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

That'd do it!

@@ -0,0 +1,48 @@
{
"skipSnapshot": true,
Copy link
Member

Choose a reason for hiding this comment

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

Feel free to remove this line from any of the boards! It's in 8-bit mixtape because the complicated silkscreens makes it take forever to snapshot. I remember bus-pirate may be a little long, too, but feel free to use your best judgement

"skipSnapshot": true,
"layers": [
{
"name": "PIC18F14K50.GBL",
Copy link
Member

Choose a reason for hiding this comment

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

Can these files be renamed to have lower-case extensions for consistency? Just wanna avoid any weird case-sensitive file-system issues in any refactors down the road

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But shouldn't we have some test cases with uppercase extensions to be sure not to break that behaviour?

Copy link
Member

Choose a reason for hiding this comment

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

Yup! And we do in the normal whats-that-gerber unit tests (packages/fixtures/gerber-filenames.json). Better to test that functionality there than in integration tests

@@ -0,0 +1,29 @@
#!/usr/bin/env node
//utility for creating manifest.json files for the test boards
Copy link
Member

Choose a reason for hiding this comment

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

Can we leave this out for now? Requires a little extra discussion. The layer type and file type in the manifest is functioning as inputs to tests of whats-that-gerber and gerber-parser, so I'm a little uncomfortable with a manifest generation script that uses whats-that-gerber to generate the expectation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I'll remove that commit for now. The idea is to check over and modify the manifest after it's created and just use the generated one as a base. Maybe I could rename it to init-manifest? It's a bit like making a snapshot as well and it should be fairly easy to spot any errors introduced.

Copy link
Member

Choose a reason for hiding this comment

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

Wanna put it in its own PR and we can figure it out there?

@kasbah kasbah force-pushed the fix-board-outline-regression branch from f14a447 to a104e9a Compare June 19, 2018 11:36
@kasbah kasbah force-pushed the fix-board-outline-regression branch from a104e9a to 553215f Compare June 19, 2018 11:37
@kasbah kasbah dismissed mcous’s stale review June 19, 2018 11:38

Should be good now.

@mcous mcous merged commit 23b4bcb into next Jun 19, 2018
@mcous mcous deleted the fix-board-outline-regression branch June 26, 2018 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup