-
Notifications
You must be signed in to change notification settings - Fork 0
ci: land remaining green-CI fixes (wasm-pack pin, build order, license E2BIG+LGPL exception, panelize) #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7eabd4c
1cd8a2f
fdb8414
c47b460
87cd56e
0e2155b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -70,19 +70,22 @@ async def run_panelize( | |||||||||||||||||||||||||||||||
| f"target must be a .kicad_pcb, got {target.suffix or 'no extension'}", | ||||||||||||||||||||||||||||||||
| _duration(started), | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| binary = shutil.which(kikit_binary) | ||||||||||||||||||||||||||||||||
| if binary is None: | ||||||||||||||||||||||||||||||||
| # Validate the request (config/preset) before checking external-tool | ||||||||||||||||||||||||||||||||
| # availability, so a missing config is reported as such regardless of whether | ||||||||||||||||||||||||||||||||
| # kikit happens to be installed (CI runners have no kikit on PATH). | ||||||||||||||||||||||||||||||||
| if config is None and preset_path is None: | ||||||||||||||||||||||||||||||||
| return _err( | ||||||||||||||||||||||||||||||||
| str(target), | ||||||||||||||||||||||||||||||||
| str(out), | ||||||||||||||||||||||||||||||||
| f"{kikit_binary} not on PATH", | ||||||||||||||||||||||||||||||||
| "either `config` or `preset_path` must be supplied", | ||||||||||||||||||||||||||||||||
| _duration(started), | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
|
Comment on lines
+76
to
82
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current check only ensures that at least one of Using
Suggested change
|
||||||||||||||||||||||||||||||||
| if config is None and preset_path is None: | ||||||||||||||||||||||||||||||||
| binary = shutil.which(kikit_binary) | ||||||||||||||||||||||||||||||||
| if binary is None: | ||||||||||||||||||||||||||||||||
| return _err( | ||||||||||||||||||||||||||||||||
| str(target), | ||||||||||||||||||||||||||||||||
| str(out), | ||||||||||||||||||||||||||||||||
| "either `config` or `preset_path` must be supplied", | ||||||||||||||||||||||||||||||||
| f"{kikit_binary} not on PATH", | ||||||||||||||||||||||||||||||||
| _duration(started), | ||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||
| try: | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the
python3execution fails, the script will exit immediately due toset -e, and the temporary file$json_tmpwill not be cleaned up. Using atrapensures that the temporary file is deleted upon exit, regardless of whether the script succeeds or fails.