-
Notifications
You must be signed in to change notification settings - Fork 140
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
Assorted apio blocking items #453
Comments
I've tried to build it but the scripts gives an error: https://github.com/FPGAwars/tools-oss-cad-suite/actions/runs/11792202730/job/32845461579 When creating the window package it is run out of space: "No space left on device" @zapta Sorry for no answering all your questions. During this quarter I have to give a lot of lectures at the university and I have no time to spend on Apio. But I will have more free time in a month or so. My stutends use Icestudio 0.12 a lot (with apio 0.9.5). Once the lectures are finished, I will test apio and icestudio for the next release cycle (the new version is the one I will use with the students on the next course) |
Hi @zapta , I recommend that your students use the latest wips https://downloads.icestudio.io This week I started uploading many changes that stabilize and fix UI/UX bugs and in a few days it will integrate your celery changes. I am going to integrate into icestudio this week the new tools that celery will include by default. Regarding the actions problem, I am already in the process of solving it, actions have a maximum size, if you cover it you have to go to other options (external workers hosted in your infrastructure and things like that) I am going to try to solve it by deleting temporary files during the build. Thanks for the great work on Apio. |
I think today at the end of the day i'm relasing a new wip with your changes. |
Regarding item 2, some of the deprecated stuff we can delete there are the flags See #468 for details. |
Hi @cavearr, any luck with testing the latest apio? I am ready to make apio.ini required and delete the deprecated commands, once you OK it. |
Hi @zapta! i'm on it, i need probably this week to finish the tests and the integration because has been more difficult that i expected at the beginning (icestudio part with all improvements i want to close around this). I'm telling you when i'll done. Thanks! |
Hi @cavearr, what's the status regarding the deprecated commands? Can I go ahead delete them?
|
Hi @zapta i'm working in the migration , i not only change the command line with this change i'm refactoring and migrating icestudio internals to other toolchain architecture, i need few days more.
Probably in a couple of days i have it.
Thanks!
De: "Zapta" ***@***.***>
Para: "FPGAwars" ***@***.***>
CC: "Carlos" ***@***.***>, "Mention" ***@***.***>
Enviados: Sábado, 7 de Diciembre 2024 1:39:29
Asunto: Re: [FPGAwars/apio] Assorted apio blocking items (Issue #453)
Hi [ https://github.com/cavearr | @cavearr ] , what's the status regarding the deprecated commands? Can I go ahead delete them?
Deprecated commands:
modify [Depreciated] Modify the apio.ini project file.
time [Depreciated] Report design timing.
verify [Depreciated] Verify the verilog code.
install [Depreciated] Install apio packages.
uninstall [Depreciated] Uninstall apio packages.
—
Reply to this email directly, [ #453 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ABUVYILTS4AJL4ICP5JRL4D2EI7UDAVCNFSM6AAAAABRTJDXW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRUG4YDKNBTGQ | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
|
@zapta i have problems with paths with white space in it (linux and osx, i'll check windows with all works at linux and osx), for example: "/icestudio/app/resources/collection/examples/1. Basic" Try to replicate a path with a lot of spaces in diferent folders and try to apply apio commands. ¿Could you check it? |
Hi @cavearr, this is a known issue. Iverilog -B has a problem with spaces. Do you know if we need the -B flag? I removed spaces from the paths we use for testing to make the tests pass. |
Hi @zapta! i'm playing with it, i'm telling you along the day for advances. I think could be very useful has a "core" apio flag for debugging, for example: apio --debug lint and with that flag we can define debug messages for example for print the commands that apio execute, if you don't like the debug flag, what do you think to manage debug messages with an environment variable, for example APIO_DEBUG, at launch apio if detect this environment variable we could print messages , what do you think? |
Hi @zapta ! i don't understand well why before this upgrade apio works well with spaces. Is truth that i'm trying the tools directly (iverilog....) and doesn't work with spaces in the path. Very strange but it is. While this not work in the original tools, we can't support spaces in the path, i'll try to look for this this afternoon , but if i don't fin any solution, i think i put controls in Icestudio to rename paths with spaces and put this feature in standby because this is a blackhole of time. |
yes! just now i'm playing with it, i think i'm near a solution but for now not works yet. |
Hi @cavearr, the debug flag or var is a good idea and I can implement it, but I prefer to do that after I clean apio. Any news on items 2-5? Can I delete the deprecated commands (already have a pending change) and make apio.ini required? |
@zapta, If only affect to apio develop go ahead! i'm working in icestudio wips and some things not work now for the latest changes in apio, for this go ahead and i still working in stabilize the wip as soon as possible. Thanks for the tip! |
Thanks @cavearr. Yes, it's in the develope branch. I will got ahead and send the changes, deleting the 5 deprecated commands and making apio.ini required and only source of project configuration. |
Hi @zapta doing this , all appears works well? a could try in other way, but i want to use it if you make this test to check the whitespates, but the output is all ok: python -m tox --skip-missing-interpreters false -e py312 -- --offline test/commands/test_boards.py .. [ 3%] ---------- coverage: platform darwin, python 3.12.8-final-0 ---------- =========================================================================================================== 54 passed, 6 skipped in 2.03s =========================================================================================================== |
@zapta i'm testing apio from console outside icestudio and all works well with white spaces in paths, in fact i need remove the check of spaces in the apio path because this is important to support , there are a lot of examples and people use directorios with spaces, i prefer that you remove this check from apio. The think that fails is when apio dir is inside a path with spaces, this only affect for development or for users with usernames with spaces, i think this check could be fine (check if apio_home has spaces, but not the project dir that works well). We could maitain open the issue for APIO_HOME with spaces while verilator support it, but this is not important if we advice to the user. What do you think? could do you do it? |
@cavearr, the --offline causes the real tests to be skipped (notice the 's' marks in the integration tests). Try to run I can remove the two checks and leave only for the apio home path. Will also modify the test such that those two paths have contains white spaces. |
Thanks @zapta, running "make check" and review errors! Testing boards with apio commands all works well with spaces in the path (with apio installed in APIO_HOME without spaces) as i said before, is very important that this could work as now, and appears works well. |
@zapta i need unblock the constraint of apio when detect spaces in paths, if you couldn't today i could do it without problems, only tell me ok? |
Hi @cavearr, please do. |
Thanks, this is in my side! |
I presume that this is an apio commit. Can you submit it now so I can merge
it with my changes?
…On Tue, Dec 17, 2024 at 10:46 AM Carlos Venegas Arrabé < ***@***.***> wrote:
Thanks, this is in my side!
—
Reply to this email directly, view it on GitHub
<#453 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQVMQOQWCCWAJGB3CK3YQ32GBWO5AVCNFSM6AAAAABRTJDXW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBZGMYTQOJXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @zapta i have fix the problem with spaces in path (for tests). Check test_examples.py file, at Apio we should adapt the path management like the example i fix it. The only way in that all paths works is with pathlib library, please check the file to view it. In other way i think we need to change the path creation from something like: base_path / "examples" / "Alhambra-II" / "ledon" / "ledon.v" to solution with os.path.join or similar because we need to do multi platform paths (Windows). |
Hi @cavearr, I believe that that the / is a redefinition of the div operator for the Path class, that accepts a string as an argument and return a new joined Path. That is, it's not a simple concatenation using the "/" string, but an abstracted path joining using an operator that was designed for it. https://stackoverflow.com/questions/53083963/python-pathlib-operator-how-does-it-do-it If you have an example that doesn't behave well please let me know. |
All items got unblocked. Thanks. Closing. |
Hi @cavearr, I am nearing the end of the planned feature list and next I will focus on testing and cleanup. Here are a few action items for you that blocks the cleanup.
[DONE] Build oss-cad-tools release 0.2.0 so I can switch the apio dev to it (should not affect apio prod)
Make icestudio using
apio.ini
so we can make it required and do a bunch of related clean ups.If icestudio uses
apio time
please switch toapio report
so we can deleteapio time
.if icestudio uses
apio install
orapio uninstall
, switch toapio packages
so we can delete them.If icestudio uses
apio verify
switch toapio lint
so we can delete it.If you have any questions please let me know.
The text was updated successfully, but these errors were encountered: