You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "lupyuen (via GitHub)" <gi...@apache.org> on 2024/10/10 23:27:21 UTC

[PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

lupyuen opened a new pull request, #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676

   ## Summary
   
   This PR syncs the CI Build Workflow from `nuttx` repo to `nuttx-apps`, with the following updates:
   - https://github.com/apache/nuttx/pull/13954
   - https://github.com/apache/nuttx/pull/14011
   - https://github.com/apache/nuttx/pull/14022
   
   To follow the existing convention, `build.yml` from `nuttx` repo was slightly modified for `nuttx-apps`:
   - All References to `apache/nuttx/.../arch.yml` were changed to `apache/nuttx-apps/.../arch.yml`
   - Removed `pull_request > paths-ignore` and `push > paths-ignore`
   
   ## Impact
   
   Arm32 Build Jobs shall be extended to `arm-14` and RISC-V Build Jobs to `risc-v-06`. This will reduce the time to build Arm32 and RISC-V Jobs.
   
   The Updated Build Rules in `arch.yml` will not impact the building of NuttX Apps. That's because Board Labels are not used in the `nuttx-app` repo.
   
   ## Testing
   
   We verified that CI Build Workflow runs correctly, with Arm32 Build Jobs extended to `arm-14` and RISC-V Build Jobs to `risc-v-06`.
   
   With the updated `build.yml`, CI Build Workflow successfully recompiles `examples/hello` when we Submit a PR: https://github.com/lupyuen5/label-nuttx-apps/actions/runs/11283370051
   
   Also when we Merge a PR: https://github.com/lupyuen5/label-nuttx-apps/actions/runs/11283510569
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "nuttxpr (via GitHub)" <gi...@apache.org>.
nuttxpr commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2406243874

   [**\[Experimental Bot, please feedback here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+13552&type=issues)
   
   __Fill In The Commit Message:__ This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary.
   
   
   
   The PR as described **does not meet** the NuttX requirements. Here's why:
   
   * **Missing Testing Logs:**  The "Testing" section mentions verification but doesn't provide actual testing logs from before and after the change.  Concrete logs are essential to demonstrate the impact and correctness of the changes.
   
   * **Unclear User Impact:** While it mentions the build impact, the PR description doesn't clearly state if there's any impact on users of `nuttx-apps`. Will users need to do anything differently?
   
   * **Limited Target Information:** The testing section only mentions  Arm32 and RISC-V. To be thorough, it should list *all* target architectures and boards used for testing.
   
   **To improve the PR:**
   
   1. **Add Specific Testing Logs:**  Include snippets of logs demonstrating the build behavior before and after the changes, focusing on the areas affected (Arm32, RISC-V build times, etc.).
   
   2. **Clarify User Impact:**  Explicitly state whether users will experience any changes in functionality or if they need to adapt their workflows.
   
   3. **Provide Comprehensive Target Details:** Enumerate all architectures, boards, and configurations tested to ensure broad coverage and identify potential issues. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408896612

   @raiden00pl You're 100% correct, `arch.yml` is totally not needed in `nuttx-apps`. I have difficulty keeping `nuttx/build.yml` and `nuttx-apps/build.yml` in sync, that's why I simply copied over `arch.yml` as-is.
   
   I suppose in future we could extend `arch.yml` with Build Rules that are specific to `nuttx-apps`?
   
   Wonder if we're proposing to remove `nuttx-apps/arch.yml`? This means that we need to rewrite the `build.yml` logic from this:
   
   ```yaml
     # Select the Linux Builds based on PR Arch Label
     Linux-Arch:
       uses: apache/nuttx-apps/.github/workflows/arch.yml@master
       needs: Fetch-Source
       with:
         boards: |
           [
             "arm-01", "other", "risc-v-01", "sim-01", "xtensa-01", ...
           ]
   
     # Run the selected Linux Builds
     Linux:
       needs: Linux-Arch
       if: ${{ needs.Linux-Arch.outputs.skip_all_builds != '1' }}
       strategy:
         matrix:
           boards: ${{ fromJSON(needs.Linux-Arch.outputs.selected_builds) }}
   ```
   
   Back to this:
   
   ```yaml
     Linux:
       needs: Fetch-Source
       strategy:
         matrix:
           boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, other, risc-v-01, risc-v-02, sim-01, sim-02, xtensa-01, xtensa-02]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408902404

   > I suppose in future we could extend arch.yml with Build Rules that are specific to nuttx-apps?
   
   Build Rules for apps should be more "feature" oriented than "architecture" oriented. 
   Implementing this would require changing the concept of apps CI. We would have to prepare configs focused more on "features" that are present in apps.
   Another options are to enable all possible apps features for some of boards (but this is not so easy due to some complicated dependencies) or use fuzzing.
   
   > Wonder if we're proposing to remove nuttx-apps/arch.yml? This means that we need to rewrite the build.yml logic from this:
   
   If this logic doesn't fulfill its job then I think it is better to go back to the old version, which will avoid unnecessary complexity. The downside of this is that the CI files for `nuttx` and `nuttx-apps` will be different.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "cederom (via GitHub)" <gi...@apache.org>.
cederom merged PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408885816

   @lupyuen hi, do we even need this in this repo ?
   We can't give "Boards" and "Arch" labels in apps, they have no reason to exist here. 
   The apps repo is platform independent (except a few cases), so it seems to me that these changes make no sense here :) All configurations will be built anyway.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408893374

   What I mean is that the whole `arch.yml` workflow doesn't make sense here. The concept of `arch` and `boards` doesn't exits in the case of apps. "Board" and "Arch" labels will never be assigned to any PR in this repo, because it's just not possible. So the logic from `arch.yml` here will always compile all configurations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408888194

   @raiden00pl I think we need this because `build.yml` refers to `arch.yml` (for the build rules). So when we sync `build.yml` from `nuttx` to `nuttx-apps`, we won't need to remove the references to `arch.yml`.
   
   We could make `nuttx-apps/build.yml` point to the `nuttx` version of `arch.yml`. But that would make the CI fragile: Changes to `nuttx/arch.yml` might cause `nuttx-apps/build.yml` to break. I hope this makes sense?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CI: Sync the Build Workflow from nuttx repo [nuttx-apps]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #2676:
URL: https://github.com/apache/nuttx-apps/pull/2676#issuecomment-2408906569

   > If this logic doesn't fulfill its job then I think it is better to go back to the old version, which will avoid unnecessary complexity. The downside of this is that the CI files for `nuttx` and `nuttx-apps` will be different.
   
   Hi @simbit18: Wonder if you have ideas how we can solve this? Syncing `nuttx/build.yml` to `nuttx-apps` will be tricky when we remove `arch.yml`. (And I'm totally stressed out over the [ASF Policy for GitHub Minutes](https://infra.apache.org/github-actions-policy.html)) Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org