Hamish Coleman
e7ad089d24
Change when version.sh chooses a fallback vresion ( #896 )
We aim to always build with the full version number from the git
checkout, however if the current build is not being made from a git
repository, we need to fallback to using the version number from
the "VERSION" file.
This patch changes the choice of the fallback path from just assuming
that any git repo is our git repo to explicitly looking for a `.git` dir
in the top of our checkout.
Some integrated build systems end up doing a tar extract of the n2n
source code inside their build-system git repo, and the old fallback
check was failing in that case.
We still need to identify these build systems and work out a way to
provide them with the full and correct version number for their build,
but this patch should make things more reliable until then.
3 years ago
Logan oos Even
c5f9e8198b
had the edge output supernode version to log on incoming PONG ( #894 )
3 years ago
Hamish Coleman
f5e2f3086e
Add munin monitoring plugin ( #892 )
* Add munin monitoring plugin
* Ensure stable field ordering for munin
3 years ago
Hamish Coleman
0e8de87e38
Add a sort option to the CLI n2n-ctl tool
3 years ago
Hamish Coleman
9c3a2c3301
Merge pull request #889 from hamishcoleman/version_nr
Revamp version number handling
3 years ago
Hamish Coleman
109b6e2fa5
Remove one remaining use of N2N_OSNAME and cleanup
3 years ago
Hamish Coleman
8504b7c268
Minor lint cleanup
3 years ago
Hamish Coleman
108c9436d5
Add robustness to the version calculations
3 years ago
Hamish Coleman
a38ec0f033
Update windows cmake build docs to match current process
3 years ago
Hamish Coleman
ff72ed8190
Make all version calculations come from scripts/version.sh and remove resulting redundant substitutions
3 years ago
Hamish Coleman
a4910ddc77
Debian Standards-Version variable is the packaging standard, nothing to do with our version
3 years ago
Hamish Coleman
9cbf4ca80a
RPM Release variable is the number of patches applied to the upstream source, since we are the upstream source, there are no patches
3 years ago
Hamish Coleman
a0cdda6fa9
Add more features to the version script
3 years ago
Hamish Coleman
f7d6be51cf
Remove the correct files during autogen
3 years ago
Hamish Coleman
72a53325c5
The docker build steps are bitrotted since 2019
The `DOCKER_IMAGE_VERSION=` line was modified in commit 4d36f9f613
in
2019 and has been wrong ever since. It is using the shell variable
syntax, which does not work in Makefiles.
Add a warning message for anyone trying to use it.
3 years ago
Hamish Coleman
8dc9437870
Remove configure.ac from the distclean list
3 years ago
Hamish Coleman
c0cfe93726
How many commits to fetch? Github says 'meh'
The right number of commits to fetch is enough to be able to create
a `git describe` result - basically back until the most recent parent
annotated tag.
However, the github action/checkout@v2 only allows a simple number,
which is basically the answer to "how long is a piece of string"
3 years ago
Hamish Coleman
6c3ccadde1
Try to make debug workflow demand triggerable
The docs claim that by adding the right `on:` event, the job can be
manually triggered from the github UI.
https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch
Tests show that it doesnt work, but I can leave it here for reference.
3 years ago
Hamish Coleman
dfc1c85bce
Get the repo history
3 years ago
Hamish Coleman
d22f74bf69
Add a build job to dump details about the repository
3 years ago
Hamish Coleman
142f23bd50
Apply tags fix from https://github.com/actions/checkout/issues/290 to all checkouts
3 years ago
Hamish Coleman
06cc8ae64b
Apply tags fix from https://github.com/actions/checkout/issues/290
3 years ago
Hamish Coleman
e538e55ed7
The cmake github action is clearly not just for linux
3 years ago
Hamish Coleman
5b06254a8b
Remove unused makefile variable
3 years ago
Hamish Coleman
aafca3813a
Use script to calculate the build version
3 years ago
Hamish Coleman
d57ac3c6a1
Clearly separate documented scripts into user and build categories
3 years ago
Hamish Coleman
0d04b40926
Make distclean more clean
3 years ago
Hamish Coleman
00a2bdc307
Remove all use of N2N_VERSION_SHORT in favor of PACKAGE_VERSION
3 years ago
Hamish Coleman
4575154e1b
Shrink autogen by reading VERSION file directly in configure.ac
3 years ago
Hamish Coleman
a9216f1097
Remove GIT_RELEASE variable and use the semantically identical N2N_VERSION instead
3 years ago
Hamish Coleman
430b0cb77d
Fix CMakeFile version number embedded NL
3 years ago
Hamish Coleman
ff88803f6d
Use one common file for the version number in both build systems
3 years ago
Logan oos Even
81bd79a82a
assured correct supernode MAC address properties ( #888 )
3 years ago
Logan oos Even
e0a9bb95fc
differentiated between 'active' and 'standby' in sn-selection-by-mac mode ( #887 )
3 years ago
Logan oos Even
3d0c618d99
updated Federation.md
3 years ago
Logan oos Even
89571292f4
allowed supernode MAC address to be set manually (-m) ( #886 )
3 years ago
Logan oos Even
f4e7e513a8
added MAC address based supernode selection ( #885 )
3 years ago
Hamish Coleman
03ce1e2b84
Merge pull request #883 from hamishcoleman/release
Only trigger automatic release process on annotated tags - Take two
3 years ago
Hamish Coleman
9f7ea89229
Remove debugging outputs
3 years ago
Hamish Coleman
5055259171
Output correct debug data...
3 years ago
Hamish Coleman
02f341df87
Add a debugging job to show the get tagtype data quicker in the workflow
3 years ago
Hamish Coleman
3c3a848dc2
Re-add much of the debug output
3 years ago
Hamish Coleman
5b5fe587ae
Attempt to fix github tags in each job
See https://github.com/actions/checkout/issues/290 for some discussion.
3 years ago
Hamish Coleman
f2f49111b7
Add reference to a ticket for this problem
3 years ago
Hamish Coleman
88bd8e566f
Fix clone command, removing the half removed old fetch-based command
3 years ago
Hamish Coleman
d8fa2ef9da
Return the tags check to the releases, use our own clone and remove all the debug output
3 years ago
Hamish Coleman
11512fe1c8
Fix spelling
3 years ago
Hamish Coleman
a4f5b18308
Of course, nobody has a standard git repo layout, so need to jump more hoops
3 years ago
Hamish Coleman
d9d524a8d8
Add more debug data output
3 years ago
Hamish Coleman
e709997b3c
Abandon using the github checkout action, it is clearly at fault
3 years ago