-
Notifications
You must be signed in to change notification settings - Fork 298
Branching and Release
This page discusses proposed changes to the branching and release scheme for g2core. Please feel free to comment and edit.
- Master branch - is currently the stable release branch. Pushes to master are performed periodically as code gets sufficient field history from early adopters of edge code
- Edge branch - is currently the working branch. Bug and feature updates are performed against this branch. All pull requests should be performed from this branch.
- Issue-NNN branches - are created to work on bugs or features. These are pulled into edge via pull requests.
- Dev branches - The Dev prefix has already been deprecated, but you may still see some dev branches around.
The proposed scheme is below:
- Master branch - is the working branch. Bug and feature updates are performed against this branch. All pull requests should be performed from this branch.
- ** Release branches ** are branches for creating releases. These are created from master when a Major or Minor release is planned. Subsequent development occurs again the release branch, and is usually limited to version number changes and tagging. The release branch is used to create binaries for the release section, put out release notes, update the wiki with info about it, etc. Bug fixes that come in against the release are addressed as issues/PRs in master, then cherry picked back to the release branch. After a certain point the version may be updated with a new point release (patch) and new binaries created.
- Issue-NNN branches - are created to work on bugs or features. These are pulled into Master via pull requests against Master.
- Deprecated and Older Branches
- Edge branch - Edge will be deprecated and ultimately removed.
- Dev branches - The Dev prefix has been deprecated, but you may still see some dev branches for a while
- Legacy branches such as digital-dro and omc-072.65 may still exist for historical reasons
The new branches will work to a fairly standard semantic versioning scheme - major.minor.patch:
-
Major: Anything can change, including:
- changes to machining behaviors
- changes that affect the semantics of existing JSON variables
- changes that require configuration files to revised
- e.g. polarity sense
- minor or patch level changes may also be included, but do not force a Major revision
-
Minor: Limited things can change, including:
- new machining or other features
- new JSON objects can be added
- new JSON tags can be added to existing objects
- ...as long as they do not change the semantics of existing attributes
- new values to existing objects
- patch level changes may also be included, but do not force a Minor revision
- NOTE: In some limited and very well documented cases a deprecated command may be removed that may force changes to UIs
-
Patch: bug fixes:
- may change erroneous behavior but not "enhancement" bugs
Perhaps this doesn't belong here, and will move somewhere else, but it's a topic of general interest and is related.
Once the new branching and versioning is in place a merged branch labeled 1.0.0
will be pushed. This combines the work that has been done on edge (the ARM M3 code base) with the work done in the ARM M7 code base. They will then be a single code base with the ARM chip being selected by the board hardware.
This section lists the changes that may be incompatible with previous releases (either branch). This is an attempt to get these all together for the 1.0.0 release and take the hit at one time.
Proposed changes to IDs:
- {fv:n} string in form Major.Minor.Patch, e.g.
1.0.0
, not a float - {fb:n} string with ShortSha, e.g.
49b671a
, not a float
The following remain the same:
- {fbc:n} settings file - e.g. settings_axidraw_v3.h
- {hp:n} board platform string - e.g. gQuintic
- {hv:n} board version string - e.g. revF
- {id:n} board ID string - e.g. 0271-6fd3-e29c-14d
Note: These are and remain Read Only attributes. TinyGv8 has a case where hardware version can be written. This in not so in g2core.
GPIO configuration is different - See GPIO Design Discussion. Key Changes:
- Mode (mo) has been removed, replaced by:
- {...en:n} Enable Setting: used to enable and disable IO channels
- {...po:n} Polarity Setting: used to set polarity of IO channels
- Function (fn) has been removed from digital inputs:
- {di1ac: Action: handles all actions and functions
- {di1in: Exposed-As: allows flexible bindings of input readers to arbitrary digital input channels
In addition to the above GPIO configuration changes, all polarities will obey 0=ACTIVE_HI (non-inverted polarity), 1=ACTIVE_LO (inverted polarity). This affects:
- Coolant
- {comp:n} coolant mist polarity - 0=active HI, 1=active LO
- {cofp:n} coolant flood polarity - 0=active HI, 1=active LO
- Spindle
- {spep:n} spindle enable polarity - 0=active HI, 1=active LO
- {spdp:n} spindle direction polarity - 0=clockwise HI, 1=clockwise LO
The following remain the same:
- Motor direction polarity {1po:n}
- Motor enable polarity {1ep:n}
- Motor step polarity {1ep:n}
These are synonymous with the following, and have been replaced by their synonym:
- NORMALLY_OPEN is replaced by IO_ACTIVE_LOW
- NORMALLY_CLOSED is replaced by IO_ACTIVE_HIGH
Motor enable {me:n} and disable {md:n} commands will function as so:
- {me:n} global motor enable
- Returns True if any motor is enabled
- In previous releases this command would enable all motors
- {md:n} global motor disable
- Returns True if all motors are disabled
- In previous releases this command would disable all motors
The following remain the same:
- {me:0} enable all motors
- {md:0} disable all motors
- {me:M} enable motor M (where M is a number from 1 to max motor)
- {md:M} disable motor M (where M is a number from 1 to max motor)
- {mt:XXX} sets motor timeout in seconds which is obeyed by enabled motors
Why?: The GET semantic will be changed as it violates RESTful GET safety - GETs should not cause any action. G2core has (and will continue to have) one exception to this rule: that's for clearing an alarm or shutdown condition using {clear:n}
or {clr:n}
. In alarm, shutdown and panic conditions no SET commands are accepted - i.e. commands with other than NULL as an argument. In order to accept a clear we make an exception for alarm and shutdown. Panics can only be cleared by a board reset.
Queue reports are an early strategy for communications synchronization that has been deprecated in favor of line mode protocol. We are planning to remove Queue reports as of 1.0.0. If this impacts you negatively please contact us.
Back in the day we added G28.2, G28.3 and G28.4 homing behaviors. These are not strictly Gcode and should never be called from within a Gcode job. We plan to substitute the following JSON commands for these functions:
- G28.2 --> {home:...tbd}
- G28.3 --> {home:...tbd}
- G28.4 --> {home:...tbd}
The G28 forms will be removed in a later release.
Getting Started Pages
- Home
- What is g2core?
- Who uses g2core?
- Jerk-Controlled Motion
- Getting Started with g2core
- Connecting to g2core
- Configuring g2core
- Flashing g2core
- Troubleshooting
Reference Pages
- Gcodes
- Mcodes
- Text Mode
- JSON Communications
- GPIO Digital IO
- Alarms & Exceptions
- Power Management
- Coordinate Systems
- Status Reports
- Status Codes
- G2 Communications
- Tool Offsets and Selection
- Probing
- Feedhold, Resume, Job Kill
- Marlin Compatibility
- 9 Axis UVW Operation
- gQuintic Specs
Discussion Topics
- Roadmap
- GPIO for 1.X Releases
- Toolheads
- Raster Streaming Prototol
- g2core REST Interface
- Gcode Parsing
- G2 3DP Dialect
- Consensus Gcode
- Digital DRO
- Overview of Motion Processing
Developer Pages
- Development & Contribution
- Branching and Release - DRAFT
- Getting Started with g2core Development
- Project Structure & Motate
- Compiling G2
- OSX w/Xcode
- OSX/Linux Command Line
- Windows10 w/AtmelStudio7
- Debugging G2 on OSX
- Board and Machine Profiles
- Arduino Due Pinout
- Arduino DUE External Interfaces
- Diagnostics
- Debugging w/Motate Pins
- Development Troubleshooting
- g2core Communications
- Git Procedures
- Windows 10 / VMware 8 Issues
- Dual Endpoint USB Internals
- G2core License
- VSCode Setup
- Compatibility Axioms
- Wiki History