Comments (6)
I had an idea for detecting which symbols have changed. If we create some sort of checksum algorithm for each symbol, we can parse the master copy, and generate a name:checksum pair for each symbol.
Then run the same check on the current branch and the changed symbols are the ones with a checksum mismatch.
What do you think?
from kicad-library-utils.
Jon, I have implemented component-level checksum and added a python script for running KLC on any components that have been added / updated into a .lib file.
Now we only need to look at which .lib files have been touched, and pass the old/new versions to the script.
from kicad-library-utils.
Well that was fast!
It looks like a pretty reasonable way to do this really. It looks like it needs a bit of adjusting before it will be fully suitable for jenkins, but that is just small tweaks about printing output.
I might pull that in to my own branch before I would suggest merging it in to this repo so I can get everything tidied up. I either need someone with admin access to respond to me, or I need to wait a few more days until I can put my server back online.
I'll keep you posted.
from kicad-library-utils.
One addition that is needed to the script is to give proper return codes based on the KLC checks - currently the script doesn't return anything
from kicad-library-utils.
#48 is merged 👍
from kicad-library-utils.
This is in a much better state now so I'll go ahead and close it. Thanks you two! Fantastic work!
from kicad-library-utils.
Related Issues (20)
- Fix: KiCad Logos: Master Update to Build HOT 1
- Discrepency between S4.6 check and KCL S4.6 rules HOT 7
- Add check of silkscreen clearance to exposed copper (F5.1) HOT 5
- Readme is missing `comparelibs.py` HOT 1
- Travis checks for packages3D HOT 5
- Error following modification of check scripts HOT 14
- Schematic line ending test failing HOT 3
- kicad-library-utils don't work HOT 7
- travis git diff behaves strangely for pull requests based on old common commits
- Travis does not check symbol if only DCM file is changed HOT 2
- S4.3 pin stacking not reliable enough HOT 2
- schlib.py - With each save a new #End Library is appended
- schlib.py - Components don't remove successfully HOT 1
- GitLab Library Utils migration HOT 3
- S6.3.2 check for space-separated keywords HOT 1
- F7.4 improve detection of vias
- Symbol library version control? HOT 2
- F5.3 and checking non-line elements HOT 6
- pin_name_offset HOT 1
- The list of datasheets is unfortunately somewhat old and therefore incomplete. Complete series like STM32G4 are missing. HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kicad-library-utils.