-
Notifications
You must be signed in to change notification settings - Fork 504
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
Add shareable instances of config.toml and openocd.gdb #308
Add shareable instances of config.toml and openocd.gdb #308
Conversation
r? @adamgreig (rust-highfive has picked a reviewer for you, use r? to override) |
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.
Looks good to me!
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.
Thank you!
bors r+
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Build failed: |
bors retry |
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Build failed: |
bors retry |
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Build failed: |
It seems building the book just takes too long on Travis :/ bors retry |
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Build failed: |
I wonder if something is actually wrong - does it work building locally? |
Oh, nevermind, the CI passed on the commit itself, so it should be fine. Just Travis things then? |
Do you want me to do anything? |
Let's give it one more go on Travis... bors retry |
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Build failed: |
Is this failing during |
So I've done some investigation and there is a difference between how CI works for testing the PR itself and when it's merged. When "testing the PR" The problem appears that
And it took 7 minutes to run
Although for some reason on my computer it takes 5 seconds, which is weird!
Anyway, one solution I thought of was to see I could get
So there appears to be at least three solutions:
Other idea's? |
Thank you for your investigation. We have switched many projects already to GitHub Actions but this one is more complicated. Travis performance has pretty much made an U-turn. See rust-embedded/book#285. |
@winksaville could you rebase this onto master? I increased the allowed waiting time in #310 |
Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>>
3f33f3c
to
4d57c9a
Compare
Done |
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.
Thank you! Let's see if we get it through this time.
bors r+
308: Add shareable instances of config.toml and openocd.gdb r=eldruin a=winksaville Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>> Co-authored-by: Wink Saville <wink@saville.com>
Timed out. |
Bummer, looks like it got stuck in the job queue and hasn't run, although I could be wrong :( |
Travis finally finished, hopefully u can just kick bors :) |
Yeah, let's try again... bors retry |
Build succeeded: |
Instead of every chapter having its own copy of the cargo configuration
and openocd.gdb files this change creates a shared set. This will make it
much easier for the user of the discovery book to handle the situation
where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy
of .cargo/config.toml will have to be modified.
Also src/05-led-roulette is updated to take advantage of this and I
will go through each of the other chapters changing them to use
the shared set.
I also needed to comment out the rustflags variable in all of the config
files as I'd get an error executing ci/script.sh:
ry.x:5: region 'FLASH' already defined
>>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K
>>>