You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2026/10/19 08:10:53 UTC
(mynewt-newt) 02/04: ci: Pin apache-mynewt-core release in sysinit test
This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit dc596b981e6218836858b234486a72f325f1b732
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Fri Oct 16 21:59:03 2026 +0200
ci: Pin apache-mynewt-core release in sysinit test
The expected sysinit output had to follow apache-mynewt-core master,
so any change there broke the test. Use a project with
apache-mynewt-core pinned to 1.15.0, whose output for the btshell
target matches the current expected output.
The project allows only repositories with packages used by the
target, sysinit configuration does not need the sources of others,
and uses a shallow clone. This takes 16 seconds instead of over four
minutes for all apache-mynewt-core dependencies. Nothing is built, so
the toolchain and gcc-multilib are no longer installed.
Assisted-by: Claude:claude-opus-5-5
---
.github/newt_sysinit/project.yml | 39 ++++++++++++++++++++++++++++++++++++++
.github/workflows/test_sysinit.yml | 16 ++++------------
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/.github/newt_sysinit/project.yml b/.github/newt_sysinit/project.yml
new file mode 100644
index 00000000..8046327e
--- /dev/null
+++ b/.github/newt_sysinit/project.yml
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+project.name: "newt_sysinit"
+
+project.repositories:
+ - apache-mynewt-core
+
+# Pinned to a release, so that the expected output does not change with
+# apache-mynewt-core master.
+repository.apache-mynewt-core:
+ type: github
+ vers: 1.15.0
+ user: apache
+ repo: mynewt-core
+
+# Only repos with packages used by nordic_pca10056_btshell; sysinit
+# configuration does not need the external sources these depend on.
+project.repositories.allowed:
+ - apache-mynewt-core
+ - apache-mynewt-mcumgr
+ - apache-mynewt-nimble
+ - mcuboot
diff --git a/.github/workflows/test_sysinit.yml b/.github/workflows/test_sysinit.yml
index 85700a35..eb0d495c 100644
--- a/.github/workflows/test_sysinit.yml
+++ b/.github/workflows/test_sysinit.yml
@@ -34,14 +34,6 @@ jobs:
- uses: actions/setup-go@v7
with:
go-version: 'stable'
- - uses: carlosperate/arm-none-eabi-gcc-action@v1.14.0
- with:
- release: '12.2.Rel1'
- - name: Install Dependencies
- if: matrix.os == 'ubuntu-latest'
- run: |
- sudo apt-get update
- sudo apt-get install -y gcc-multilib
- name: Build newt
working-directory: newt
shell: bash
@@ -52,10 +44,10 @@ jobs:
- name: Test_sysinit
shell: bash
run: |
- newt new project
- cp -r .github/targets/nordic_pca10056_btshell project/targets
+ cp -r .github/newt_sysinit project
+ cp -r .github/targets project/targets
cd project/
- newt upgrade -v --escape=false apache-mynewt-core apache-mynewt-nimble
+ newt upgrade -v --shallow=1
newt info
newt target sysinit brief nordic_pca10056_btshell > tmp.txt
- diff -w tmp.txt ../.github/newt_sysinit/expected.txt
+ diff -w tmp.txt expected.txt