Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

remove maintenance number on older updater

Description

Updater was crashing when receiving maintenance number

We now send the current version number to the server that will adapt its answer and send maintenance number if updater has fixed the crash when receiving maintenance number, if the version number is sent it means the updater is new enough to support maintenance number

Issue(s)

e/backlog#5660 (closed)

Test environment

  1. Download docker images

    • docker pull registry.gitlab.e.foundation/e/infra/lineageota:5660-remove-maintenance-number-on-older-updater
  2. download following file and extract it within <home directory>/builds/full/test/FP3

  3. test with Postman (Local server from -e-OTA.postman_collection.json)

    • device code: FP3
    • build type: test

Test procedures

test new implementation

  1. run
    docker run \
        -d \
        -p 80:80 \
        --rm \
        -v "${PWD}/builds:/var/www/html/builds" \
        --name OTAtest \
        registry.gitlab.e.foundation/e/infra/lineageota:5660-remove-maintenance-number-on-older-updater
  2. track logs with docker logs -tf OTAtest
  3. from postman, launch a request
  4. confirm it returns a json with no maintenance version (always 1.4 or 1.5, no 1.4.1 or 1.5.1
  5. modify postman request, add eOS v1.5 in useragent
  6. you should now see 1.5.1 and 1.4.1

Check list

  • Self review
  • Test procedure explained
  • Tested on fresh install
  • Tested applied as an update

Merge request reports

Loading