Conversation
|
Note: we have to upgrade vulkan version, because old version no longer avialble. |
13820c5 to
ee692a5
Compare
.github/workflows/linux_x86.yml
Outdated
| - uses: actions/checkout@v4 | ||
| - name: Linux x86 Build | ||
| run: | | ||
| bash .github/workflows/scripts_new/linux_x86.sh |
There was a problem hiding this comment.
I do get the point of putting the CI script in a dedicated file instead of just pasting itself contain here. If the script is only used for CI, avoid unnecessary layers for indirection that are just obfuscating the logic.
There was a problem hiding this comment.
It would also allow splitting it into multiple steps or jobs for better modularity and readability of failures.
There was a problem hiding this comment.
Ok, so my understanding of the desires here are:
- nice to see multiple steps
- nice to be able to track progress across multiple steps in UI, eg something like https://github.com/duburcqa/jiminy/actions/runs/14775364707/job/41482561535
I in my turn personally like to factorize code out of the runner configuration because:
- decouples code from runner configuration
- means I can run/test the code easily, on arbitrary platforms, without needing to somehow trigger full CI flow etc
- eg spin up a container, try running the script
- run on my mac
- etc ...
- personally, I also find it easier to format code in standalone bash scripts, without needing to indent, pay attention to various yaml quirks etc
- lastly, I feel that we shouldn't require potential developers to be able to read github runner config files, when setting up their development environment
- yet I feel that the scripts used by CI are the best 'golden source' for what works today, when someone wants to install
To comply with all the above 😓 , what I have done is:
- split the runner configuration into 4 steps:
- prerequisites
- build
- install
- test
- split the script corresondingly into 4 parts, one part for each step
- added documentation to the dev install page, linking to each of these steps, as a reference
Now I admit that we should ideally turn on the markup link checker, to run across all .md files, systematically, even if they didn't change, since someone could rename one of these scripts, and break the build page 😓 Well, baby steps. We do at least have the link checker running, and we'll turn it on, to run across all .md files, systematically, in a bit.
| outdir.mkdir(parents=True, exist_ok=True) | ||
| unzip(local_cached, outdir, strip=strip) | ||
| elif name.endswith(".tar.gz") or name.endswith(".tgz"): | ||
| elif any(name.endswith(ext) for ext in [".tar.gz", ".tgz", ".xz", ".tar.bz2"]): |
There was a problem hiding this comment.
No need to change here, but I recommend immutable tuple instead of mutable list if mutability is irrelevant. better use the minimal required container, this makes the code more self-explanatory and may avoid silly mistakes (i.e. default values for method in Python).
There was a problem hiding this comment.
Personally, I feel that list is more intuitive to read. tuple on the whole I feel represents something more analogous to a struct, even though it's technically iterable. I don't have a strong preference to keep it as a list, but I do have a gentle preference.
Default values for a method, totally agree with using tuple, instead of list, for the reason you allude to: that parameters to methods should not be mutaable, otherwise if you modify them inside the method, then you just modified thd efault parametrsr 😓
There was a problem hiding this comment.
I guess stachexchange tends to align with your own pov on this: when not mutable, use a tuple https://stackoverflow.com/questions/1708510/list-vs-tuple-when-to-use-each. i'll change to tuple
There was a problem hiding this comment.
actually, I might ask in #code
.github/workflows/linux_x86.yml
Outdated
| - uses: actions/checkout@v4 | ||
| - name: Linux x86 Build | ||
| run: | | ||
| bash .github/workflows/scripts_new/linux_x86.sh |
There was a problem hiding this comment.
It would also allow splitting it into multiple steps or jobs for better modularity and readability of failures.
0a047ed to
451f379
Compare
|
Thank you! |
Issue: #
Brief Summary
Add linux x86 runner
Notes:
copilot:summary
Walkthrough
copilot:walkthrough