Skip to content

[GSoC 2024] Automating Release Notes Generation & Simplifying Linux Download Experience #3377

Open

Description

@akayiz

This project aims to improve and automate multiple things in Synfig, automation is very cool, the first part is strongly related to git, and I have in mind some extra ideas revolving around using Synfig's git commit history, so read on if you are a git/Linux enthusiast or generally interested!

Summary

1. Automated Release Notes Generator

Currently, Synfig's release notes are written in ChangeLog.md manually, this is about creating a script that uses Synfig's repository git conventional commits history to:

  • Automatically generate nice-looking Synfig release notes grouped by change type (fix, feature, etc.)
  • Outputs them in Markdown/HTML format
  • Shows contributors how their Pull Requests will affect the release notes when merged, which improves the contributor's change description, enhancing release notes

2. Linux Packaging Scripts Fixes/Additions

Currently, Synfig is bundled to work on Linux using AppImage v1.0 scripts, and AppImage v1.0 is outdated and has the critical issue that it doesn't work smoothly on newer systems (Ubuntu v22.04 and others); in this project, the AppImage scripts will be updated to use the latest AppImage version and potentially write scripts for automated Debian and Flatpak packages.

Extra Ideas

These are some extra ideas that excite me, we can work on them if we have time

1. Synfig Unwrapped

Create a script that also uses the Git commit history of Synfig to dynamically generate multiple short Synfig-themed videos that showcase the achievements and metrics of each contributor who contributed to Synfig per week or release; this would be a nice touch to contributors and would motivate them to contribute more.

The result would be similar to GitHub Unwrapped

2. Improve Change Description Using Large Language Models (LLMs)

Main Project Benefits

For Synfig Artists

  • Save time, reduce frustration, and gain new Synfig artists by making Synfig easier to download on Linux systems
  • Potentially grant new artists flexibility by providing them with multiple options for downloading Synfig on Linux

For Synfig Developers

  • Free up valuable time by removing the burden of modifying release notes manually
  • Eliminate the time spent supporting users with installation problems on Linux systems

For Both Synfig Artists and Developers

  • Improve the looks of the release notes for easier interpretation of the changes made
  • Enhance the description of the changes in the release notes for clearer understanding, by showing contributors how their pull requests/changes when added to Synfig will affect the release notes, their change note will look bad in the release notes if it isn't clear, so they will automatically improve it to make it descriptive

References

For more details check my proposal
Project details in the Synfig Docs
Project details in the Google Summer of Code website

As suggested by @mohamedAdhamc, I will use this issue to share things related to this project!

Activity

  1. akayiz commented on Jun 27, 2024

    @akayiz
    ContributorAuthor

    I will start working on the first part "Automated Release Notes Generator", while applying to work with Synfig during GSoC 2024 I already finished a portion of this script, and @mohamedAdhamc (my GSoC mentor) suggested that I list the things that I have finished until now and what remains to be done.

    Any feedback or ideas would be greatly appreciated!
    We have multiple things that we will still decide in the "What remains to be done" section, so check the section and give us your thoughts!

    What I have finished until now

    1. Generate markdown release notes from non-merge commits and group them by conventional commit type, currently, I group them by only 3 types (Bug Fixes, New Features, and Code Refactoring), and for each type I only show the messages of a constant number of commits (Currently hardcoded as 3)
      I don't change anything in the commit message except removing the conventional commit type (like "fix:") and capitalizing the first letter, in this mode (non-merge commits) I don't retrieve anything from the pull request related to this commit

      How the output currently looks (Using the Synfig repo)

      Release notes for non-merge commits

      Below is the git commit history of Synfig that I will use to demonstrate how the above point works, starting with the "Bug Fixes", it retrieved the first 3 non-merge commits it met (colored with orange).
      I wanted to clarify another point, looking at the "New Features" (colored in yellow), it retrieved the first 3 non-merge commits, as you can see it skipped the merge commit that has an "X" next to it, so this mode retrieves all types of commits except merge commits, even the ones merged through PRs but are not in themselves merge commits like the one below with an "X"

      Clarification for how script works with non-merge commits

    2. Generate markdown release notes from merge commits with 2 modes (short and full), in short mode for each merge commit I retrieve the title of the pull request related to this commit (Looks exactly like the first point shown above), in full mode, I also retrieve its pull request description (Take care this is currently only done for merge commits)

      How the full mode output currently looks

      Full release notes preview|690x308

      How the last commit in the Bug Fixes above looks on GitHub

      Merge commit on github|690x235

    You can view the code I wrote until now and even test the script yourself through the following GitHub repo

    What remains to be done

    1. Decide on the modes we will have in the script

      I think both the above modes were added just for practice, especially since they focus on specific types of commits (non-merge/merge), I remember @ice0 mentioned wanting to have 2 main modes, short and full, so we need to confirm what modes we will have, and what they will do, for example, 2 modes, first one generates release notes using only commit message of all types of commits that happened in the past week, the second one does the same but in addition, retrieves pull request details for commits that were merged through PRs

    2. Decide on how frequently will the script run (weekly/monthly/per release)

      Based on this I should add some stuff to the release notes, date, and release version, and also work on being able to trigger the script to run based on the date or when a new release is launched, also I think Synfig has multiple types of releases (core and some other stuff that I don't understand completely) so if we run the script per release, I should work on being able to automatically detect the version and type of this release to write it in the release notes

    3. Decide on how many commits will we show in the release notes

      The previous decision would help with deciding that, in the project details it is mentioned to give the script a start and end commit id, but if we run the script weekly or per release I believe this can be automated without the need to manually enter the start and end commit ids

    4. Decide on the format/looks of the release notes

      Let me know what you think of the current looks of the script output and how you think we can improve it, I was also wondering if we will remove the commit id and PR number next to the commits or keep them (demonstrated in the image below from the Synfig ChangeLog.md)

      Extra stuff in release notes

    5. Add the remaining conventional commit types (docs, chore, ci, perf, etc.)

    6. Decide if we will add the ability to output release notes in HTML format, if yes then I should add that

    7. Fix links in the pull request description not appearing correctly in the output markdown

      If you check the second point in the things I have finished until now, you will find that links in the GitHub PR description like "3214 (comment)" and "fix 3212" don't get copied correctly, I didn't test images but they probably will also not appear correctly

    8. Add the script to the CI pipeline by adding the ability to automatically show contributors how their unmerged changes (PRs) will affect the release notes when merged (I am very excited to work on this part)

    9. Remove any constants in the code into an external configuration (Like max commits per type, commit types that we have, URLs, etc.)

    10. Add unit tests for the code if needed

    11. Write a detailed documentation on how to run/build the script

    12. Publish the script and test it live

  2. akayiz commented on Jul 2, 2024

    @akayiz
    ContributorAuthor

    3 Day Status Update 29/June - 1/July

    What I Have Done

    1. Added grouping by all commit types

      image

    2. Fixed the script not detecting commit types with subcategories "(GUI)", like this

      image

      And made it add these subcategories in the release notes

      image

    3. Fixed issue links (fix # 2008) and PR links (# 2777) and commit SHAs (219c214) in PR descriptions getting retrieved using GitHub API as plain text without links

      Before

      image

      image

      After

      image

      image

    Additional Remarks

    1. Video links are retrieved correctly and they preview correctly on GitHub

      image

    2. Images are retrieved perfectly

      image

    Issues That I am Facing

    New lines in the GitHub API retrieved PR descriptions are not identical to the new lines in the PR description in GitHub (They look worse)

    For example, the PR description on GitHub

    image

    Release notes retrieved markdown PR description

    image

    As you can see new lines are not accurate, which removes paragraphs and decreases the readability and cleanness of the release notes, I tried multiple things to fix it but I didn't reach a solution to make it look exactly like in GitHub

    What I Plan To Do

    1. Clean the code and document it and commit
    2. Research different approaches to fix the above mentioned new lines bug
    3. Add outputting release notes in HTML format
  3. akayiz commented on Jul 5, 2024

    @akayiz
    ContributorAuthor

    3 Day Status Update 2/July - 4/July

    What I Have Done

    1. Fixed the extra new lines that appeared in the retrieved markdown PR descriptions, to increase the readability of the release notes (This is the issue that I mentioned in the previous status update)

      GitHub PR descriptions example

      image

      image

      Before

      image

      image

      After

      image

      image

    2. Added outputting release notes in HTML format

      Example focusing on the "Bug Fixes" section in release notes generated from pull requests full mode

      release_notes.md

      image

      release_notes.html

      image

      Below are the full release notes files that are generated, let me know if the looks and format are as expected in markdown and especially HTML since it's important that later on you can easily style the HTML tags using CSS, which I believe will be easy in the current HTML tags, but please confirm that

      release_notes.md
      release_notes.html

    3. For now, I changed the release notes generation methods to work on all types of commits and only rely on which source we would like to generate release notes from (commit messages or pull requests) and if the chosen source is pull requests then the user must specify the mode (short/full), all this is documented in detail in the repo's README

    Issues That I am Facing

    There are no issues currently :)

    What I Plan To Do

    I believe before working on adding the script in the CI cycle we should first integrate it with Synfig to generate release notes periodically, so I think it's best currently to agree on the first 4 points in the "What Remains To Be Done" section in the above comment and finish working on these points and then integrate the script with Synfig

  4. akayiz commented on Jul 8, 2024

    @akayiz
    ContributorAuthor

    Status Update 09-July-2024

    What I Have Done

    Currently, until we agree on some final decisions on the release notes script, I played a bit with GitHub Actions and did the below

    Synfig.Status.Update.09-July-2024.mp4

    Issues That I am Facing

    There are no issues currently :)

    What I Plan To Do

    1. Generate release notes based on commits that only happened in the published GitHub release (currently it uses all the commits that happened in the repo)
    2. Make the workflow work with pull requests as the source of release notes
    3. Improve release notes looks by removing empty categories (like for example "Styles" in the above video)

    I would greatly appreciate your feedback on the above @mohamedAdhamc, @ice0

  5. ice0 commented on Jul 12, 2024

    @ice0
    Collaborator

    Looks good, but I'm thinking maybe we should add this pipeline to the draft release as well?
    At least this will allow you to check what it looks like before publishing the release.

  6. mohamedAdhamc commented on Jul 12, 2024

    @mohamedAdhamc
    Member

    maybe we should add this pipeline to the draft release as well?

    Yes, I think so too.

  7. akayiz commented on Jul 16, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 09/July till 16/July

    what-i-have-done

    Important video that contains additional details and showcases the above
    https://drive.google.com/file/d/1jX9EFQlAJtsnw8BOB1PpsyIDVBhMyjiV/view?usp=sharing

    In addition to the above, I removed a lot of constants into an external configuration

    Watch the video

    what-i-plan-to-do

    blockers-i-am-facing

    Note

    Currently, the simple option that I have in mind, is if for example the following pull request is created

    ci PR

    Then I make a GitHub Action send a comment in this pull request telling the contributor that his pull request will affect the release notes like this (Although I don't understand which release notes it will affect, based on my trial to understand your git workflow)

    ci release note

    Lastly, let me know what you think of the slides style in status updates, this idea came to my mind while creating the showcase video :)
    Thank you in advance!

  8. mohamedAdhamc commented on Jul 24, 2024

    @mohamedAdhamc
    Member

    Hello @Ahmed-Khaled-dev ,

    Then I make a GitHub Action send a comment in this pull request telling the contributor that his pull request will affect the release notes like this

    Yes I think this should be good -at least for now at this stage-. Just having contributors see how their addition will look like in the release notes (regardless of which release notes exactly).

    let me know what you think of the slides style in status updates

    I like it, it keeps the status update message briefer :).

  9. akayiz commented on Jul 26, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 16/July till 23/July

    what-i-have-done

    Showcasing the first 4 points

    first-four-points-showcase.mp4

    Showcasing the last (5th) point (most important)

    last-point-showcase.mp4

    what-i-plan-to-do

    I apologize for the delay in sending this weekly status update, unexpected events caused the delay, for future updates I will send them on Thursday

    The release notes generator project is technically finished, please let me know your feedback and how I should plan to deploy this in the Synfig repository

  10. akayiz commented on Aug 1, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 25/July till 1/August

    The Release Notes Generator or Release Notes Manager project as I am currently calling it, is Finished and Ready To Deploy!

    What I Have Done

    1. Added unit tests to the script

    2. Fixed bugs that were discovered during unit testing

    3. Made the Release Notes Manager extremely easy to deploy by converting it into a GitHub Action

    4. Tremendously improved the looks of the code documentation

    5. Rewrote README.md to clearly demonstrate its current features and how to use/deploy it

    What I Plan To Do

    1. Deploy the Release Notes Manager in Synfig

      This is now very easy as you can see in the How To Use section, @ice0 @mohamedAdhamc please let me know your feedback and if I should create a pull request

    2. Download a Linux distribution as a dual boot on my computer, I believe this will help a lot with the AppImage project

    3. Start reading the AppImage documentation and planning for how I will work on this project

  11. mohamedAdhamc commented on Aug 1, 2024

    @mohamedAdhamc
    Member

    The Release Notes Generator or Release Notes Manager project as I am currently calling it, is Finished and Ready To Deploy!

    Awesome :).

    Deploy the Release Notes Manager in Synfig
    This is now very easy as you can see in the How To Use section, @ice0 @mohamedAdhamc please let me know your feedback and if I should create a pull request

    Yes, I think you should create a PR.

    Download a Linux distribution as a dual boot on my computer, I believe this will help a lot with the AppImage project

    It would certainly help yes.

    Start reading the AppImage documentation and planning for how I will work on this project

    Sounds good.

    p.s.
    I will test the Release Note Generator out and let you know If I find anything that sticks out.

  12. ice0 commented on Aug 2, 2024

    @ice0
    Collaborator

    Hi guys!
    First of all, thanks for the awesome video showing the whole process, it helps a lot.
    A few questions:

    1. commitTypesCount - if it should always be equal to the size of the commitTypes array, is it really needed?

    Download a Linux distribution as a dual boot on my computer, I believe this will help a lot with the AppImage project

    1. Maybe try VirtualBox VM, it should be easier? )
    2. If a user adds a new commit to a PR, will it affect the changelog? (I mean is that there will be no changes in the PR title/description)

    Lastly, let me know what you think of the slides style in status updates, this idea came to my mind while creating the showcase video :)

    Looks awesome!

  13. akayiz commented on Aug 3, 2024

    @akayiz
    ContributorAuthor

    First of all, thanks for the awesome video showing the whole process, it helps a lot.

    I am glad you liked them!

    1. commitTypesCount - if it should always be equal to the size of the commitTypes array, is it really needed?

    No, most likely I can detect the size of the commitTypes array, for some reason when I started I added the commitTypesCount and it just stayed with me, but I will make sure to change it when I refactor the code

    Generally, I have in mind multiple things that I can do to refactor and improve the Release Notes Manager code and also multiple extra features that can be added to it. Still, I believe the best decision currently is to make sure I also finish the AppImage project and then if I have extra time, I can get back and improve the Release Notes Manager!

    1. Maybe try VirtualBox VM, it should be easier? )

    Yes, I will also consider doing that

    1. If a user adds a new commit to a PR, will it affect the changelog? (I mean is that there will be no changes in the PR title/description)

    It wouldn't affect the release notes generated using pull requests as source, and it also won't trigger the GitHub Bot that shows the contributor how his changes look like in the release notes, since both these rely mainly on the pull request title and description, not the commit message, but it will affect the release notes generated using commit messages as source

  14. akayiz commented on Aug 8, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 4/Aug till 8/Aug

    I started working on the second project which is "Simplifying Linux Download Experience"!

    What I Have Done

    1. Created 2 pull requests to add the 2 functionalities of the Release Notes Manager inside Synfig

    2. Setup a Linux Mint virtual machine using Virtual Box

    3. Successfully built Synfig on this VM

    4. Refreshed my memory about AppImage and read about the different ways available to package software as an AppImage

    What I Plan To Do

    1. Try using the result of Synfig's ./2-build-production.sh which is the folder _production/build to build an AppImage using what's inside this folder, based on the AppImage documentation this is best done using the tool called linuxdeploy, so that's what I will try

    Note

    Until now I haven't checked the already-made AppImage packaging scripts in Synfig, I thought I would first try packaging it as an AppImage myself and see how it goes, let me know if you think this is the right decision currently :)

  15. akayiz commented on Aug 15, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 11/Aug till 15/Aug

    I am able to generate a working Synfig AppImage!

    If you would like to test it, here is the AppImage Download Link

    What I Have Done

    1. Created a bash script that automatically generates a Synfig AppImage using only the Synfig build

      The generated AppImage when tested on a Linux Mint 21 Cinnamon, opens up and at first glance, everything looks good
      The output when running the generated AppImage is shown below

      Synfig AppImage v1.0 Result

    2. Thoroughly added comments in the script to demonstrate how it works and added a step-by-step README to illustrate how to use the script

    3. Discovered the old Synfig AppImage generation files and understood some of what is going on in launch.sh which I believe is equivalent to the AppRun file, and used some lines that are in launch.sh to get my AppImage working

    Questions That I Have

    1. How can I test the AppImage to make sure it doesn't introduce new bugs in Synfig

      • Do you have automated tests that I can run on the generated AppImage?
      • Do you have a set of manual tests that I can do?
      • Are there specific things that probably might fail or generally have been failing with AppImages before, so I need to test these?
    2. Which set of Linux distributions are you targeting? (and also if you are targeting specific releases of each distro)

    3. How will this script run later on?

      • Will it run using Travis CI, or GitHub Actions?
      • Will I need to learn/use docker containers?
    4. Should I use every line in the Synfig Morevna launch.sh or does it contain outdated stuff?

      I am asking this since things like lib/ImageMagick mentioned in line 30 don't exist in the output of the Synfig build, also I don't quite understand what is going on with fontconfig at the end of the launch.sh script, although to be fair I still didn't put much time into understanding what was going on there

    What I Plan To Do

    1. Fix the AppImage not having the Synfig logo

    2. Test the generated AppImage on other different and newer Linux distros

    3. Try to understand the old AppImage scripts better

    4. To be determined based on the answers to the above questions :)

  16. ice0 commented on Aug 16, 2024

    @ice0
    Collaborator

    Additions/suggestions:

    1. add support for 32-bit AppImage.
      Ubuntu dropped support for 32-bit systems, but Debian still supports them. For testing, you can use a 32-bit Debian Docker image (should be faster than installing a full OS from scratch)

    Do you have automated tests that I can run on the generated AppImage?

    Yes. @morevnaproject is doing quality tests, so I hope he can give a more detailed answer.

    Are there specific things that probably might fail or generally have been failing with AppImages before, so I need to test these?

    First you need to test, if you can run produced AppImage on systems with older libc/glibc/fontconfig libraries.
    Currently we are using Debian 9 for building AppImages because libc has backward, but not forward compatibility.
    So the packed libc should work fine on new systems.
    We plan to migrate to Debian 10, so if you have big issues with Debian 9, I suggest to switch to Debian 10.

    But building on older systems leads to another problem. For example, we use the harfbuzz library, but in newer versions they broke backward compatibility, so we had some problems with it.

    Users reported that AppImage does not work on ArchLinux (they have newer packages installed), so we included harfbuzz dependencies - fontconfig/freetype in AppImage and this led to the slow startup problem of AppImage (fontconfig rebuilds the font cache using only one thread on startup).

    You can read the full discussion here: #2397

    Which set of Linux distributions are you targeting? (and also if you are targeting specific releases of each distro)

    We try not to stop supporting old systems unless necessary.
    For testing you can use 2 distributions: Debian 9/10 for older distributions + latest Fedora/Arch Linux for newer distributions.

    Will it run using Travis CI, or GitHub Actions?

    Github Actions. We used Travis until they replaced the open source plans and they became hard to use.

    Will I need to learn/use docker containers?

    Yes, it should be useful. In this case, you only need basic skills - how to create a container with the desired OS and run a command inside the container.

    I am asking this since things like lib/ImageMagick mentioned in line 30 don't exist in the output of the Synfig build,

    Release script only builds Synfig binaries. All other dependencies (fontconfig/ImageMagick/etc configuration files) usually collected by another script. This is the reason why this folder is missing inside _production folder.

    @morevnaproject Can you add details here?

    also I don't quite understand what is going on with fontconfig at the end of the launch.sh script, although to be fair I still didn't put much time into understanding what was going on there

    These additional steps are needed to display the message while fontconfig is rebuilding the font cache (a very long process), otherwise users would think that the program had hang or not starting.
    Discussed here: #2397

  17. akayiz commented on Aug 22, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 18/Aug till 22/Aug

    What I Have Done

    1. Thoroughly understood @ice0's answers to my questions
      Thanks a lot, your answers clarified a lot of things for me, I greatly appreciate you taking the time to send this amazingly detailed reply

    2. Created 2 Debian 10 64-bit VMs, 1 to package Synfig as an AppImage on it and the other for testing (I got bugs while trying to create ones for Debian 9 so as suggested I switched to Debian 10)

    3. Created a new script to clone Synfig and build it, so now for packaging Synfig as an AppImage I just run 2 scripts

    4. Generated the Synfig AppImage on Debian 10 64-bit

    5. Adjusted my AppImage generating script to be able to create 32-bit AppImages when run on a 32-bit system and to create 64-bit ones on 64-bit systems

    What I Plan To Do

    1. Test the AppImage generated on Debian 64-bit on the clean/testing Debian 64-bit VM

    2. Create 2 new Debian 10 32-bit VMs for packaging Synfig and testing

    3. Test the ability of my script to generate 32-bit AppImages on the above-created VMs

    4. Create 2 (32-bit and 64-bit) new Arch/Fedora VMs for testing

    5. Test my 32/64-bit generated AppImages on them

    6. Fix any bugs that will occur (predicted to be related to harfbuzz/fontconfig/freetype)

  18. akayiz commented on Aug 29, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 25/Aug till 29/Aug

    What I Have Done

    1. Fixed the "Bridged Network" option in VirtualBox not working on the virtual machines, which didn't give me the ability to transfer the AppImage between the virtual machines using scp for fast testing, but now by fixing it this improves the testing workflow

    2. Generated Synfig's AppImage on Debian 10 64-bit using the current script and tested it on a clean Debian 10 64-bit and it runs successfully and everything looks good

    3. Created a new Debian 10 32-bit VM and tried building Synfig on it to be able to generate the 32-bit AppImage but the Synfig build failed due to 2 automated test cases failing (bezier and bline)

    4. Created a Fedora Workstation 40 64-bit VM and tested the generated AppImage on it, but as expected it didn't run since there were errors that came up

    5. Fixed one of the errors that came up, but I am still working on the others

    Important Note

    I will be unavailable from 1/Sep to 14/Sep due to family travel, as previously communicated to Mohamed.
    I am aware that my progress during the past 2 weeks has been slower than usual, this occurred due to some unexpected circumstances, including a necessary Linux-Windows dual-boot setup (In which I learned a lot about Linux)
    So based on that, I will get back to work on 15/Sep and I will make sure to compensate for the past 2 weeks and get back to the regular productivity

    What I Plan To Do

    • Fix all the errors that come up when testing the AppImage on Fedora Workstation 40 64-bit and get it working on it
  19. ice0 commented on Sep 9, 2024

    @ice0
    Collaborator

    Created a new Debian 10 32-bit VM and tried building Synfig on it to be able to generate the 32-bit AppImage but the Synfig build failed due to 2 automated test cases failing (bezier and bline)

    This is a known issue (#2606).
    As a temporary fix you can cherry-pick commit from this PR #2618

    I will be unavailable from 1/Sep to 14/Sep due to family travel, as previously communicated to Mohamed.

    I wish you a good time!

    So based on that, I will get back to work on 15/Sep and I will make sure to compensate for the past 2 weeks and get back to the regular productivity

    Awesome!

  20. akayiz commented on Sep 16, 2024

    @akayiz
    ContributorAuthor

    Status Update 12/Sep till 15/Sep

    I resumed work earlier than planned to ensure all tasks are completed by the end of GSoC, and I am happy to report significant progress, the AppImage now works smoothly on Fedora 40, and all the critical errors have been fixed, also the generated AppImage works on Debian 10 64-bit, Pop!_OS 22.04, Arch, Ubuntu, and Kali (these are the ones I tested it on)

    Synfig on Debian 10 Synfig on Pop!_OS 22.04 Synfig on Fedora 40
    Synfig working on Debian 10 Synfig Working on Pop OS Synfig working on Fedora 40

    Synfig AppImage Download Link if you would like to test it

    What I Have Done

    1. Fix generated AppImage not working on Fedora 40

      The generated AppImage was not working on Fedora 40 due to multiple differences (filesystem structure and window manager) and GTK/GDK compatibility issues between it and the old Debian 10 that I am generating the AppImage on, at first I was trying to fix these issues manually by setting environment variables and creating scripts to bundle libraries into the AppImage, but then I thought I would check if someone already did a script that does this, and to my surprise I found this amazing gtk script/plugin that bundles all the GTK/GDK needed libraries (GLib Schemas, GDK Pixbuf libraries and cache, librsvg, Pango, PangoCairo, etc.) inside the AppImage and suitably edits the environment variables required to make it work on all other distributions

    2. Fix non-critical error Failed to load pk-gtk-module on Fedora 40

    3. Fix generated AppImage not working on Pop!_OS 22.04 and most Debian-based distros

    4. Since I am using this great gtk plugin the script that generates the AppImage is concise, clean, commented, and easy to understand

    5. No harfbuzz/fontconfig errors

      While testing on Fedora 40 (the latest one) and Arch I got no errors related to harfbuzz or fontconfig, I am not sure if the gtk plugin fixed them, I checked the script it uses and I can't determine for sure, but currently, I don't get any errors related to them and the startup of the Synfig AppImage is very fast

    Questions That I Have

    1. Currently the Synfig AppImage as shown above runs successfully on a lot of Linux distributions but when the AppImage is run through the command line there are some messages/warnings that come up, I want to understand if these warnings are well-known warnings that come out of Synfig and I shouldn't worry about them or if these warnings are generated by my AppImage and they might impact specific functionalities in Synfig so I should look into fixing them, it's important to note that these warnings come up on all the distributions and are not distribution-specific

      1. Module Warnings

        Mod error (1)
        Mod error (2)

        I would expect this is a general one in Synfig and not related to the AppImage since these modules exist inside the AppImage and I also tested the AppImage available in the Synfig Download Page and it also outputted these warnings

      2. Plugin Warning

        Plugin error

        I expect this is normal since on a fresh install of Synfig there are no Plugins installed

      3. Icon Warnings

        Icon Warnings

        I expect this is unrelated to the AppImage since no icons with these names exist as an output of the Synfig build

      4. GdkPixbuf Criticals

        GdkPixbuf Criticals

        I am not sure about this one and it seems to be the most important

    2. Currently the process of generating a Synfig AppImage is straightforward and well documented in the synfig-appimage repo but I expect you would like to automate this process when a new release is created to have the AppImage generated and added as an asset in the release or uploaded somewhere, so let me know what you have in mind.

    3. How can we test to ensure that Synfig is functioning correctly after it ran successfully, as mentioned in a previous status update are there specific manual/automated tests that we can do to confirm this?
      Or is it running a enough sign that everything inside will work correctly?

    What I Plan To Do

    To be determined based on the answers to the above questions

  21. mohamedAdhamc commented on Sep 16, 2024

    @mohamedAdhamc
    Member

    AppImage now works smoothly on Fedora 40, and all the critical errors have been fixed, also the generated AppImage works on Debian 10 64-bit, Pop!_OS 22.04, Arch, Ubuntu, and Kali

    Great 🥳

    3. How can we test to ensure that Synfig is functioning correctly after it ran successfully

    Well, you can check this for some tests on the rendering engine + lottie exporter. Also I think there are some tests scattered in the repo here. I think also @ice0, and @morevnaproject would also know more regarding this.

    Also in general, I think as long as there is no change in the code itself (which I think there probably shouldn't). A somewhat simplistic way of checking would be by comparing the build logs. If you see any new build errors/warning for example you could investigate them. But... there could probably be a better way than doing this.

  22. akayiz commented on Sep 28, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 22/Sep till 26/Sep

    What I Have Done

    1. Started preparing the GSoC final submission URL to look clean, professional, and last for a long time by working on creating a personal static website for myself using Hugo which I will use to post a blog post that will contain my final report, and the link to that blog post will be my final submission URL

    2. Summarized what I have done until now in concise sentences to help me while writing the content for the final report

    Note

    The past week I have been doing a lot of chores, especially since I will be returning to university tomorrow. Still, I will make sure to maintain my productivity and balance between work and university

    What I Plan To Do

    1. Finish my static website
  23. akayiz commented on Oct 4, 2024

    @akayiz
    ContributorAuthor

    Weekly Status Update 29/Sep till 3/Oct

    What I Have Done

    1. Finished my portfolio and blog website.

    2. Spent considerable time writing a detailed and well-structured GSoC final report, which serves as both my GSoC final submission URL and the primary resource for anyone with a basic software engineering background to understand the project's goals, achievements, remaining tasks, and future enhancement possibilities.

    3. Uploaded the GSoC final report as a blog on my website and hosted the site on a professional, long-term domain. Please @mohamedAdhamc check it when you have time and let me know your feedback!

    Questions That I Have

    1. My PR, which adds automatic release notes generation, has some failed tests. I believe it's a bug in the tests since my changes only involve a GitHub workflow. The tests passed in my second PR, so could these tests be fixed on the first PR? It would look better without the failed tests. 😅

    2. I was wondering if there is an estimate of when my PRs would get reviewed/merged.

    3. Currently the process of generating a Synfig AppImage is straightforward and well documented in the synfig-appimage repo but I expect you would like to automate this process when a new release is created to have the AppImage generated and added as an asset in the release or uploaded somewhere, so let me know what you have in mind.

      Let me know if you'd like this implemented and how, so that I can work on it in the following week.

    What I Plan To Do

    1. To be determined
  24. mohamedAdhamc commented on Oct 4, 2024

    @mohamedAdhamc
    Member

    @Ahmed-Khaled-dev

    I checked the final report and it looks good. Maybe we'd need a few more edits later on, but for now it looks good.

    I'll be checking the release note generator more closely in the upcoming days.

  25. ice0 commented on Oct 14, 2024

    @ice0
    Collaborator

    Hi guys!
    Sorry for the delay, was busy at work.

    Currently the Synfig AppImage as shown above runs successfully on a lot of Linux distributions but when the AppImage is run through the command line there are some messages/warnings that come up, I want to understand if these warnings are well-known warnings that come out of Synfig and I shouldn't worry about them

    Yes, there's no need to worry about them. Most of the GTK-CRITICAL errors are due to using deprecated GTK methods. They will be fixed later.

    Currently the process of generating a Synfig AppImage is straightforward and well documented in the synfig-appimage repo but I expect you would like to automate this process when a new release is created to have the AppImage generated and added as an asset in the release or uploaded somewhere, so let me know what you have in mind.

    Yes, that would be awesome. I also suggest generating AppImages for PRs, so anyone can test the build locally.

    How can we test to ensure that Synfig is functioning correctly after it ran successfully, as mentioned in a previous status update are there specific manual/automated tests that we can do to confirm this?

    For manual testing, I usually do the following three things:

    1. Test file opening: Try opening any file from the synfig-studio/example folder. I suggest using pirates.sif. It should open the file successfully.
    2. Test the plugin system: Navigate to the main menu, then select Plugins -> Add Skeleton (simple). It should insert a skeleton into the canvas.
    3. Test the Lottie exporter: Create an empty canvas (File -> New), add a circle to it, and then go to File -> Export. Press Save, and it should save an HTML file.

    My #3392, which adds automatic release notes generation, has some failed tests. I believe it's a bug in the tests since my changes only involve a GitHub workflow.

    Yes, there was an issue with the CI at that time. Please rebase and force push your commits again.

    I was wondering if there is an estimate of when my PRs would get reviewed/merged.

    It's planned to be merged by the end of this week. It looks good to me, but I suggest waiting until Mohammed can check it as well.

    Let me know if you'd like this implemented and how, so that I can work on it in the following week.

    I am a little late, and I'm not sure if you still have some free time, but I suggest putting your generator in the synfig/autobuild/linux/appimage folder and adding Generate AppImage and Upload artifacts steps to the GitHub Actions. (if possible).

    It's also better not to add binary files to the project (I mean libpk-gtk-module.so), because they can be incompatible with other architectures, such as ARM.
    So I suggest not to fix issue with Fedora 40 and leave it as-is for now. I am pretty sure this should be fixed by upstream (https://github.com/linuxdeploy/linuxdeploy-plugin-gtk). It looks like this is a new dependency which is not known by the plugin.

  26. akayiz commented on Oct 20, 2024

    @akayiz
    ContributorAuthor

    Hi guys!
    Sorry for the delay, was busy at work.

    Hello Artem!
    It's all good, thanks for the very helpful replies,
    I also apologize for the delay in replying, this past week has been hectic at university, I am currently taking an operating systems course which is taking most of my time.

    Yes, there's no need to worry about them. Most of the GTK-CRITICAL errors are due to using deprecated GTK methods. They will be fixed later.

    Great!

    Yes, that would be awesome. I also suggest generating AppImages for PRs, so anyone can test the build locally.

    That's a very nice idea, I will try my best to add these features before Nov 03 (the GSoC deadline) and if I am unable to I will make sure to add them later on either way.

    For manual testing, I usually do the following three things

    I will make sure to test these thoroughly, I already tested file opening on Pop OS and it works great, but I will make sure to do all three tests on multiple distros and send their results 👌🏻

    Yes, there was an issue with the CI at that time. Please rebase and force push your commits again.

    I just did that but there is a check that still fails.

    image

    It's planned to be merged by the end of this week. It looks good to me, but I suggest waiting until Mohammed can check it as well.

    Sounds great!

    I am a little late, and I'm not sure if you still have some free time, but I suggest putting your generator in the synfig/autobuild/linux/appimage folder and adding Generate AppImage and Upload artifacts steps to the GitHub Actions. (if possible).

    Thank you for the suggestion, as mentioned above I will try my best to do it before Nov 03 and if I am unable to I will make sure to add them later on either way!

    It's also better not to add binary files to the project (I mean libpk-gtk-module.so), because they can be incompatible with other architectures, such as ARM.
    So I suggest not to fix issue with Fedora 40 and leave it as-is for now. I am pretty sure this should be fixed by upstream (https://github.com/linuxdeploy/linuxdeploy-plugin-gtk). It looks like this is a new dependency which is not known by the plugin.

    Thanks for mentioning this, generally this didn't cause a critical issue with Fedora 40, it was just a warning in the command line but Synfig was running fine, I will remove libpk-gtk-module.so and do the tests you mentioned above and report the results 👌🏻

  27. ice0 commented on Oct 21, 2024

    @ice0
    Collaborator

    I just did that but there is a check that still fails.

    There was an issue with the self-hosted runner. I have rerun it, and it should be okay now.

  28. akayiz commented on Oct 31, 2024

    @akayiz
    ContributorAuthor

    Status Update 31/Oct/2024

    What I Have Done

    1. Manually tested the generated Synfig AppImage using the 3 tests that @ice0 mentioned on Debian 10, Pop OS 22.04, and Fedora 40.
      File Opening and the Plugin system work smoothly on all the above distributions as shown below:

      File Opening Plugin System
      File Opening Test Plugin System Test

      However, the Lottie exporter gives an error when trying to export since it works using Python scripts and the Python dependencies that the scripts need aren't bundled inside the AppImage.

    2. Adjusted the script to bundle some of these Python dependencies and got it to work on Debian 10, but I am still working on making it work on all the targeted distributions (Pop OS, Fedora 40, Arch, etc.)

    What I Plan To Do

    1. Update my GSoC final report to reflect the current state.

    2. Fill in my GSoC Final Submission.

    Whenever I have the time I will make sure to prioritize working on the below

    1. Remove libpk-gtk-module.so from the AppImage generator script.

    2. Adjust the AppImage generator script to fix the Lottie exporter.

    3. Automate the generation of the Synfig AppImage on a Debian 10 machine using GitHub Actions whenever a new GitHub release is created and automate uploading the generated AppImage as an asset to the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions