specify minimal eOS version in rollout config file
Description
This change allow to specify an eOS version inside config:
for example
to allow updates only from 1.5
{
"rollout":{
"percentage":"100"
},
"requirements":{
"minOSVersion": "1.5"
}
}
Issue(s)
-
Download docker images
docker pull registry.gitlab.e.foundation/e/infra/lineageota:775-ability-to-declare-minimal-eos-version-in-config-file
-
download following file and extract it within
<home directory>/builds/full/test/FP3
-
test with Postman (
Local server
from -e-OTA.postman_collection.json)-
device code
:FP3
-
build type
:test
-
incremental
:eng.root.20220913.093114
-
Test procedures
test new implementation
- run
docker run \ -d \ -p 80:80 \ --rm \ -v "${PWD}/builds:/var/www/html/builds" \ --name OTAtest \ registry.gitlab.e.foundation/e/infra/lineageota:775-ability-to-declare-minimal-eos-version-in-config-file
- track logs with
docker logs -tf OTAtest
- from postman modify postman request, add
eOS v1.5
in useragent, launch a request - confirm it returns a json with no android S version, only R
- modify postman request, add
eOS v1.5.1
in useragent - you should now see android S and R
fully validated on my own OTA test server>
Screenshots
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation