UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    The MMS lost story

    Scheduled Pinned Locked Moved OS
    133 Posts 16 Posters 54.9k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • jezekJ Offline
        jezek
        last edited by

        If anybody installed nuntium PR since this weekend, please upgrade. I made mistake and nutium fails to acknowledge a successfully received multimedia message. Fortunately this error results in no data loss, just the MMS center will try to deliver your message more times. 😞 I'm sorry if I caused any inconvenience.

        jEzEk

        KenedaK 1 Reply Last reply Reply Quote 1
        • KenedaK Offline
          Keneda @jezek
          last edited by

          @jezek
          Only the one that never do anything never mistakes ^^

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
          πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

          1 Reply Last reply Reply Quote 1
          • jezekJ Offline
            jezek @lduboeuf
            last edited by

            @lduboeuf said in The MMS lost story:

            Yes, please add a feature request in messaging-app

            Done here, but I don't know, how to flag it as feature request.

            jEzEk

            1 Reply Last reply Reply Quote 0
            • jezekJ Offline
              jezek
              last edited by

              Failed MMS redownload progress report:

              This week nuntium and messaging-app pull request drafts got update. @lduboeuf added code to messaging-app to not be able to initiate redownload of expired messages. And I fixed a bug in nuntium, wich I previously introduced. I've also made more work on nuntium localy, got rid of some TODOs, but I haven't fully tested the added code yet, so I'm not confident to push into PR draft right now. Will continue to work on this, see ya next time.

              jEzEk

              1 Reply Last reply Reply Quote 3
              • jezekJ Offline
                jezek
                last edited by

                Failed MMS redownload progress report:

                No commits to the drafts this week. Some work was done on nuntium locally, but like last week, it's not fully tested yet. πŸ˜•

                jEzEk

                KenedaK lduboeufL 2 Replies Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @jezek
                  last edited by

                  @jezek said in The MMS lost story:

                  πŸ˜•

                  Don't be sad, we're not, take the time you need ^^

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                  πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                  1 Reply Last reply Reply Quote 0
                  • lduboeufL Offline
                    lduboeuf @jezek
                    last edited by

                    @jezek no commits doesn't mean no progress. thank you for your months of efforts.

                    i'm already super happy with the feature as it is now, of course staying with 4 ubports-qa install is quite hazardous with devel updates but i can wait πŸ˜‰

                    1 Reply Last reply Reply Quote 1
                    • jezekJ Offline
                      jezek
                      last edited by jezek

                      Failed MMS redownload progress report:

                      This week I've been working on making nuntium message error handling more robust. That means, no message should be lost or unnoticed and if something really unexpected happens during incoming message handling (service problem, phone reboots, ...) message will try to recover or at least notify user during nuntium initialization. But today I've been mostly fixing errors I introduced during making nuntium more robust and found during testing, so I decided to not push new commits, until I test again (nuntium lacks unit tests, so I have to test manually).

                      I will report again, if when something changes.

                      Note: Most of my TODOs remaining in nuntium are about testing. If next tests don't uncover any errors, then only documentation. changelogs and a few unit tests are needed to be done and we can end the PR draft era and begin a review process.

                      jEzEk

                      AppLeeA 1 Reply Last reply Reply Quote 2
                      • AppLeeA Offline
                        AppLee @jezek
                        last edited by

                        @jezek
                        Very good news.
                        Thank you so much for all the effort and trouble. Great contribution

                        1 Reply Last reply Reply Quote 0
                        • jezekJ Offline
                          jezek
                          last edited by

                          Failed MMS redownload progress report:

                          Updated PR's:

                          • nutium - Rebased to latest xenial + commits to make recovery of messages with unexpected errors during handling (phone/services crashes) more robust. The nuntium-inject-push tool was updated so it can simulate various errors. I've tried to test all possible error situations that came to my mind, found and fixed some flaws and I hope I didn't introduce any more errors. I will make more tests after I clear the last unsolved TODO (excluding testing & documentation TODOs) which was added by me.
                          • messaging-app - Rebased to latest xenial.
                          • telephony-service - Rebased to latest xenial (jekins still can't builf for armhf due to some test error which I think/hope is not my fault).

                          jEzEk

                          1 Reply Last reply Reply Quote 2
                          • jezekJ Offline
                            jezek
                            last edited by

                            Failed MMS redownload progress report:

                            During cleanup I found a small issue. During nuntium initialization I start dbus listeners to listen to redownload or read/delete requests for messages in storage, but telepathy didn't spawn listeners for these. It's not a big issue, redownload still works, but read/delete requests from messaging-app don't come through to nuntium and that leads to polluted storage. I've tried to fix it, but today I broke something, so no new commits until I fix and test. I hope this is the last issue, that needs to be solved before reviews starts.

                            jEzEk

                            1 Reply Last reply Reply Quote 3
                            • jezekJ Offline
                              jezek
                              last edited by

                              Failed MMS redownload progress report:

                              I've fixed the issue I found last week, but haven't tested it fully yet (so no commits). I will continue the cleanup, to start review process and inform you here on any progress.

                              jEzEk

                              1 Reply Last reply Reply Quote 3
                              • jezekJ Offline
                                jezek
                                last edited by

                                Failed MMS redownload progress report:

                                This week only nuntium PR got updates. I've tested message handling and initialization and fixed some bugs I found. Then cleaned the code of my own TODO comments and debug logs. The documentation got updated to more reflect current state and some info that may be helpful was added.

                                The last thing (I hope) to do in nuntium PR is to update debian changelog, which brings me to a question about versioning.

                                The last version in changelog is 1.4+ubports1. This suggests, that the project has adopted semantic versioning system, which suggest to bump up major version if API backward compatibility is broken, bump up minor version if some new API is added, or bump up patch version otherwise. I've broken the API backward compatibility in the PR, so we should change the version to 2.0. But (there is always a but) I plan to make additional work on the nuntium project and there is a possibility, the API will change again. Therefore I suggest one of these:

                                1. Change version to 2.0 and if API changes in future bump to 3.0, etc.
                                2. Change version to 2.0, with some suffix that would suggest, that the API may change in near time (something like 2.0.0-alpha+ubportsX).
                                3. Rewrite changes that we can bump only the minor version to 1.5 (there is no way to not add to the API and preserve the minor version). This would take the most effort and even more to guarantee the same behavior for all API functions. I really don't want to walk down this path.
                                4. Don't bother with versioning, leave it as it is, nobody uses our nuntium packages.

                                I would vote for no. 2.

                                Note: I'm talking here about the nuntium go packages API (storage, telepathy, mms, ofono), The nuntium dbus API is backward compatible.

                                Side question: Where do you define the version?

                                Note: I'm really don't know who to ask these questions, so I add some names here, to attract attention. @lduboeuf @dobey @Flohack

                                jEzEk

                                flohackF lduboeufL dobeyD 3 Replies Last reply Reply Quote 1
                                • flohackF Offline
                                  flohack @jezek
                                  last edited by

                                  @jezek So if I understand it right ubports1 was added since we are/were not the upstream for that project. Technically speaking you normally would not do such changes on the fork, and ubports1 can only be incremented to ubports2, whenever we add cosmetic patches etc.

                                  But since we are probably now the upstream already, as Canonical dropped everything, we could remove the ubportsxy suffix and just bump to 2.0 as you explained. But please ask the developers in the Developer Telegram group, I am not heading the transition to 20.04 and some new rules might be in effect already.

                                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                  1 Reply Last reply Reply Quote 1
                                  • lduboeufL Offline
                                    lduboeuf @jezek
                                    last edited by lduboeuf

                                    @jezek
                                    I would start making the PR ready for review before the versioning question, The maintainer should know what to do there when it will be merged

                                    jezekJ 1 Reply Last reply Reply Quote 1
                                    • dobeyD Offline
                                      dobey @jezek
                                      last edited by

                                      @jezek said in The MMS lost story:

                                      The last thing (I hope) to do in nuntium PR is to update debian changelog, which brings me to a question about versioning.

                                      I would say, don't worry about this for now. Our CI automatically includes timestamps and git revision when building, so when people are proposing changes to one of our repos, they do not need to mess with the debian changelog.

                                      1 Reply Last reply Reply Quote 1
                                      • jezekJ Offline
                                        jezek @lduboeuf
                                        last edited by

                                        @dobey said in The MMS lost story:

                                        I would say, don't worry about this for now. Our CI automatically includes timestamps and git revision when building, so when people are proposing changes to one of our repos, they do not need to mess with the debian changelog.

                                        And what about the semantic versioning?

                                        @lduboeuf said in The MMS lost story:

                                        I would start making the PR ready for review before the versioning question, The maintainer should know what to do there when it will be merged.

                                        Yop, will do, after the accompanying PRs are review ready. Or I don't need to wait? I bet the nuntium review will demand some commit squashing and some explaining. I changed/added a lot of code compared to the other PRs.

                                        jEzEk

                                        dobeyD 1 Reply Last reply Reply Quote 0
                                        • dobeyD Offline
                                          dobey @jezek
                                          last edited by

                                          @jezek said in The MMS lost story:

                                          And what about the semantic versioning?

                                          If there's issues with versioning, in that respect, we'll deal with them when migrating the repos to GitLab for supporting 20.04 and having upstream releases (version tags in the repo, so distros can package from them).

                                          Yop, will do, after the accompanying PRs are review ready. Or I don't need to wait? I bet the nuntium review will demand some commit squashing and some explaining. I changed/added a lot of code compared to the other PRs.

                                          If there are other PRs in other repos also needed for this, it would be best to propose them all at the same time, so you can link in the description to the other needed PRs, and in what order they need to merge/build. If you have some messy commit history, it is generally best to clean up commit history before hand, indeed.

                                          1 Reply Last reply Reply Quote 1
                                          • jezekJ Offline
                                            jezek
                                            last edited by

                                            Failed MMS redownload progress report:

                                            This week folowing PRs got update:

                                            • telepathy-ofono - pushed changes I forgot to push last week πŸ˜• , clean code from my debug logs.
                                            • history-service - clean code from my debug logs

                                            Right now I'm writing some tests for telephony-service code I introduced for error message redownload. It's fun, cause I don't know anything about writing tests using qt/c++ and I'm learning new stuff while struggling.

                                            jEzEk

                                            1 Reply Last reply Reply Quote 1
                                            • jezekJ Offline
                                              jezek
                                              last edited by

                                              Failed MMS redownload progress report:

                                              Ok, I admit defeat in the telephony-service testing battle. I've written some code, to test the redownload function, but I couldn't make the tests run. The crossbuilder don't run test. I've read, that I have to run crossbuilder shell to access the container and run tests, but I failed to do so. In the container, I've tried dh_auto_test command, which hangs. I've tried to run a test executable, but it said, that the executable can't be executed. As last resort I copied the project to my phone and tried to run the tests executables there. But I think, the tests need to be run in some special way, cause I didn't manage to run them, so they will pass. I don't know how long will it take me to figure out the test, so I've decided to create an issue and return to them later.

                                              With the tests skipping, everything is ready for review. These are the PRs for this project:

                                              • https://github.com/ubports/nuntium/pull/8
                                              • https://github.com/ubports/telepathy-ofono/pull/20
                                              • https://github.com/ubports/history-service/pull/35
                                              • https://github.com/ubports/messaging-app/pull/260
                                              • https://github.com/ubports/telephony-service/pull/20

                                              jEzEk

                                              mardyM 1 Reply Last reply Reply Quote 1
                                              • First post
                                                Last post