Testers: Snap Edge (nightly) has been manually triggered

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Testers: Snap Edge (nightly) has been manually triggered

Post by Kunda1 »

Every so often if there are a bunch of commits that get committed before the time Snap Edge (nightly) is automatically run, I'll trigger it manually so it builds and test said changes.

If i remember, I'll try to bump this thread when I do so other testers who prefer to use the Snap edge can also benefit from testing the latest changes without having to compile FreeCAD on their systems from scratch.

Background:

freecad-ppd is the unofficial Snap for FreeCAD. It has a stable, beta, and edge version. beta is a weekly build. edge is a nightly build.

To install the edge version for testing HEAD (aka latest freecad commits) run this from the CLI:

Code: Select all

snap install freecad-ppd --edge
If you'd like to know what commits didn't make it in to the previous snap 'edge' here's a method to:
  • In the CLI, go to your cloned FreeCAD/FreeCAD git repository if you don't have one:

    Code: Select all

    git clone https://github.com/FreeCAD/FreeCAD
  • Within the FreeCAD git repo make sure you have the latest commits: (assumes that the remote FreeCAD repo is called 'upstream')

    Code: Select all

    git pull upstream master
  • Type this bash 1 liner to output the list of commits that have been made after the 'edge' was published

    Code: Select all

    snap info freecad-ppd |\
    grep -e '^\s\+latest/edge' |\
    awk -F ' ' '{ print $2 }' |\
    xargs -I{} git log --oneline --ancestry-path {}..HEAD
    
This info can be found on the FC Snap wiki page

Edit: fixed the bash 1-liner (thx to @ppd heads-up)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by ppd »

I think your cut command applies to the old version format, with a "~" as the separator between the base version and the git hash. This was changed because the tilde signifies a version before the base version in some packaging tools.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by Kunda1 »

ppd wrote: Tue Mar 29, 2022 12:45 pm I think your cut command applies to the old version format,
Old version of the snap software itself? What do you mean old version?

Code: Select all

$ snap --version
snap     2.54.4-1-dirty
snapd    2.54.4-1-dirty
series   16
manjaro  -
kernel   5.15.27-1-rt35-MANJARO
Here's the output i see from snap info freecad-ppd

Code: Select all

$ snap info freecad-ppd 
name:      freecad-ppd
summary:   An open source parametric 3D CAD modeler
publisher: Maximilian Federle (ppd)
store-url: https://snapcraft.io/freecad-ppd
contact:   https://github.com/ppd/freecad-ppd/issues
license:   LGPL-2.0-or-later
description: |
  FreeCAD is a parametric 3D modeler. Parametric modeling
  allows you to easily modify your design by going back into
  your model history and changing its parameters. FreeCAD is
  open source (LGPL license) and completely modular, allowing
  for very advanced extension and customization.
  
  FreeCAD is multiplatfom, and reads and writes many open
  file formats such as STEP, IGES, STL and others.
  
  **Channels**
  
  There are three maintained channels for this snap:
  
  - `stable` contains the latest upstream release, i.e. the most recent tagged commit. **Use this if
  you don't know what you're doing.**
  - `edge` contains automated (daily) builds from the latest master commit. **Use this to test new
  features. Might be unstable.**
  - `beta` contains automated weekly promotions from `edge`. **Use this if you want edge with fewer
  updates.**
  
  **Apps/Commands**
  
  There are multiple apps/commands included in the snap:
  
  - `freecad-ppd.freecad`:  Run FreeCAD
  - `freecad-ppd.cmd`:      Run FreeCAD command line interface
  - `freecad-ppd.pip`:      Install python packages for user (not system-wide). E.g.
  `freecad-ppd.pip install py_slvs` for Assembly3.
  
  
  This is an unofficial package, so do _not_ complain to upstream about issues with this snap!
  
  Please also consider the sister-snap `freecad-realthunder`
  (https://snapcraft.io/freecad-realthunder) for the well-known FreeCAD fork of realthunder.
commands:
  - freecad-ppd.cmd
  - freecad-ppd.freecad
  - freecad-ppd.pip
snap-id:      yqRlGf5OcbFafvXWMNnCXlaGXVtRk0Vs
tracking:     latest/edge
refresh-date: today at 02:59 EDT
channels:
  latest/stable:    0.19.4         2022-03-02 (176) 509MB -
  latest/candidate: 0.19.4         2022-03-01 (176) 509MB -
  latest/beta:      0.20-g2f8343b5 2022-03-27 (205) 581MB -
  latest/edge:      0.20-g5974abe3 2022-03-29 (208) 581MB -
installed:          0.20-g5974abe3            (208) 581MB -
Edit: <facepalm> yea..there is no tilde now..i guess that just changed...?
Edit2: Ok just removed the cut command altogether. Thanks @ppd for the heads-up. I'll update the wiki page as well
Edit3: Updated the Snap wiki page
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by Kunda1 »

Heads-up, Edge has been re-triggered to test the following commits:

Code: Select all

2578c3d2ac (HEAD -> master, upstream/master) Base: [skip ci] optimize iteration over container with parameter group elements
b47029998e Base: fix handling of path separators in parameter group names
7c24e54704 [TD]skip LCS infinite shapes
6eafd18030 Gui: Add dual info about FC + OS locale in full information
c22d37a82c Gui: Default Translator::SetLocale to OS locale + simplify code
ec3c905b6b Gui: fix (another) algorithmic issue in number format change
21e5a41480 Gui: fix algorithmic issue in language change
2ddf5dd625 Gui: improve a bit number format selection
68d7892fb0 Gui: fix locale number formatting propagation
b2df95a66d Gui: fix several regressions in DlgSettingsColorGradientImp * make line edit fields wide enough to not truncate the text * fix error: Unhandled Base::Exception caught in GUIApplication::notify.
2853f6715a [FEM] fix sphere cut filter
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by Kunda1 »

Heads-up, Edge has been re-triggered to test the following commits:

Code: Select all

$ snap info freecad-ppd |grep -e '^\s\+latest/edge' |awk -F ' ' '{ print $2 }' |xargs -I{} git log --oneline --ancestry-path {}..HEAD
7d29ddac02 (HEAD -> master, upstream/master) New 0.20 splash screen
f6464c7d5f Merge branch 'master' of github.com:FreeCAD/FreeCAD
e9c088c0ae Fem: [skip ci] issue #6673: selecting a point for the point result filter crashes
ee797360e1 [FEM] improve sphere cut function handling
54ef47276f [FEM] fix bug 4 of the cut filter bugs
New 0.20 splash screen!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by ppd »

Shall we disable the scheduled edge build? If you're triggering builds manually this often, maybe there's no need to build every day in addition.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by adrianinsaval »

I would make the opposite argument, why trigger manually when you have daily builds.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Testers: Snap Edge (nightly) has been manually triggered

Post by Kunda1 »

ppd wrote: Wed Mar 30, 2022 2:20 pm Shall we disable the scheduled edge build? If you're triggering builds manually this often, maybe there's no need to build every day in addition.
Just during this feature freeze period, because we can give the devs faster feedback then every 24 hours.
adrianinsaval wrote: Wed Mar 30, 2022 3:33 pm I would make the opposite argument, why trigger manually when you have daily builds.
Ditto above answer
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply