CI: repo packages have higher priority than built ones during build test
Open
@aparcar is already working on this.
Since Feb 23, 2021.
GitHub/CI
stale
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Description:
Tests for #14696 are installing dependencies packages from repo instead of using the ones available during the build.
When a makefile generates both pkgA-boo and pkgA-foo and pkgA-boo requires pkgA-foo, it looks like the CI scripts gets the pkgA-foo from repository instead of using the just compiled one.
There are many cases but I'll focus on ruby-singleton:
Testing package ruby-erb in version 3.0.0 from ruby
...
Installing ruby-singleton (2.7.2-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/ruby-singleton_2.7.2-1_aarch64_cortex-a53.ipk
...
Testing package ruby-singleton in version 3.0.0 from ruby
Upgrading ruby-singleton on root from 2.7.2-1 to 3.0.0-1...
Removing obsolete file /usr/lib/ruby/2.7/singleton.rb.
Removing obsolete file /usr/lib/ruby/2.7/singleton/version.rb.
Removing obsolete file /usr/lib/ruby/gems/2.7/specifications/default/singleton-0.1.0.gemspec.
Configuring ruby-singleton.
No test.sh script available
Removing package ruby-drb from root...
Removing package ruby-rake from root...
Removing package ruby-singleton from root...
...
Maybe I could use EXTRA_DEPENDS for locking the version requirements to force the selection of a specific version but OpenWrt does not seem to heavily use version dependencies.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.