Skip to content

Use BoardsManifest if Boards is not applicable #294

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

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

kittaakos
Copy link
Contributor

This patch falls back to the BoardsManifest when the Boards is not
available.

When the Boards are not installed, hence unavailable, the produced
gRPC instance won't contain the FQBN but the Name only.

This patch is a kind of a workaround for #277. The name of the boards will be still available, although the FQBN cannot be accessed.

Let me know what you think about this patch. Thanks!

Signed-off-by: Akos Kitta [email protected]

@CLAassistant
Copy link

CLAassistant commented Jul 19, 2019

CLA assistant check
All committers have signed the CLA.

@kittaakos kittaakos force-pushed the use-boards-manifest branch 2 times, most recently from e4bd962 to f204bfb Compare July 22, 2019 08:33
@kittaakos
Copy link
Contributor Author

I am not sure this will work at all, I would have expected, names are unique, but it's not the case. I can see the following board names on my client:
Screen Shot 2019-07-22 at 14 01 48

@kittaakos
Copy link
Contributor Author

It's because both the arduino:[email protected] and arduino:[email protected] platform releases contain the same Arduino MKR Vidor 4000 board.

@csweichel
Copy link
Contributor

This is certainly somewhat unexpected, but I'd think it depends on the use-case where this board list is used. In case of the board manager for example, after de-duping the list it would certainly be useful.

@masci what do you think?

Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

Code is clear and well commented so I'm not concerned for having this workaround in the codebase. I think we should merge this while elaborating a fix for the root cause of #277.

@masci
Copy link
Contributor

masci commented Jul 23, 2019

@32leaves agree, that problem must be solved upstream, if deduping works for you in the meantime and it's helpful for the user (which I believe it's the case) we should go for it.

@kittaakos
Copy link
Contributor Author

Code is clear and well commented

There is a typo, let me fix that now.

@kittaakos kittaakos force-pushed the use-boards-manifest branch from f204bfb to fad37bb Compare July 23, 2019 08:28
@kittaakos
Copy link
Contributor Author

let me fix that now.

Done.

@kittaakos kittaakos force-pushed the use-boards-manifest branch from fad37bb to e068cc5 Compare July 23, 2019 08:43
@masci
Copy link
Contributor

masci commented Jul 23, 2019

@ArduinoBot build this please

1 similar comment
@rsora
Copy link
Contributor

rsora commented Jul 23, 2019

@ArduinoBot build this please

@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Linux 64: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linux64.tar.bz2

⬇️ Linux 32: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linux32.tar.bz2

⬇️ Linux ARM: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-linuxarm.tar.bz2

⬇️ Windows: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-windows.zip

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-osx.zip

ℹ️ To test this build:

  1. Just replace arduino-cli binary with the provided one

@kittaakos
Copy link
Contributor Author

kittaakos commented Jul 23, 2019

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-148-PR294-osx.zip

Dear @ArduinoBot, the download link for macOS incorrect 😉

     _                     _                 _                       _       _                         
    | |                   | |               | |                     | |     (_)                        
  __| | _____      ___ __ | | ___   __ _  __| |___      __ _ _ __ __| |_   _ _ _ __   ___      ___ ___ 
 / _` |/ _ \ \ /\ / | '_ \| |/ _ \ / _` |/ _` / __|    / _` | '__/ _` | | | | | '_ \ / _ \    / __/ __|
| (_| | (_) \ V  V /| | | | | (_) | (_| | (_| \__ \_  | (_| | | | (_| | |_| | | | | | (_) |  | (_| (__ 
 \__,_|\___/ \_/\_/ |_| |_|_|\___/ \__,_|\__,_|___(_)  \__,_|_|  \__,_|\__,_|_|_| |_|\___/  (_\___\___|

Should end with -macosx.zip.

@rsora
Copy link
Contributor

rsora commented Jul 23, 2019

@ArduinoBot build this please

@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Linux 64: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linux64.tar.bz2

⬇️ Linux 32: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linux32.tar.bz2

⬇️ Linux ARM: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-linuxarm.tar.bz2

⬇️ Windows: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-windows.zip

⬇️ OSX: https://downloads.arduino.cc/PR/arduino-cli/arduino-cli-149-PR294-macosx.zip

ℹ️ To test this build:

  1. Just replace arduino-cli binary with the provided one

@rsora
Copy link
Contributor

rsora commented Jul 23, 2019

@kittaakos good catch!
Now the link is fixed.

@masci
Copy link
Contributor

masci commented Jul 25, 2019

@kittaakos can you rebase on master (again, sorry), the CI should pass then 🙇‍♂️

This patch falls back to the `BoardsManifest` when the `Boards` is not
available.

When the `Boards` are not installed, hence unavailable, the produced
gRPC instance won't contain the `FQBN` but the `Name` only.

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos force-pushed the use-boards-manifest branch from e068cc5 to a48664b Compare July 25, 2019 08:58
@kittaakos
Copy link
Contributor Author

The builds are green now.

@masci masci merged commit 19f5f9f into arduino:master Jul 25, 2019
@kittaakos kittaakos deleted the use-boards-manifest branch July 25, 2019 09:48
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.

6 participants