This updates python testing to py311, adjusts the trove identifiers to
match, and switches the docker file to using python3.11 on Bookworm.
The motivation behind this is once OpenDev has updated all services to
Bookworm and python3.11 the old bullseye images and images for older
python versions can be cleaned up.
Change-Id: I3dde845ba05bfec915e19c44959c187162254204
Running `python setup.py test` and similar commands is no longer
supported by setuptools. These rely on testr anyway which has been
replaced by stestr in most places. Just switch to using stestr to avoid
these problems.
Note that we drop the coverage tox target since that requires a bit more
effort to setup now, but this was not used in CI and probably isn't
super important for a tool like grafyaml. It can be added back in if a
need arises in the future.
Change-Id: I86039d1d143b0199285d9195a3582640d447b36e
This reverts commit 5920a71130.
This reverts commit 757e2d24c8.
This is a partial revert as test fixups are left as is.
OpenDev is moving back to docker.io to preserve speculative container
image testing.
Change-Id: I5cf061211df28a596271a033fb4b8bb5916ab998
This was missed when converting the per change updates to quay.io. We
should now be able to tag releases and update quay.io too.
Change-Id: Icb82428033d3f12688ff449338d4921ae59b8cbc
This migrates the published container images to quay.io. We also update
the source of the python base image to quay.io.
Three tox.ini changes are made. The first is to stop skipping sdists
which skips all installation of the software entirely. This prevents
AUTHORS file generation which breaks the docs build. We also need to
stop using develop installs to ensure AUTHORS files get generated.
Third we replace the setup.py build_sphinx command with sphinx-build as
setup.py commands are deprecated and don't work properly with modern
setuptools.
Depends-On: https://review.opendev.org/c/opendev/system-config/+/881932
Change-Id: Ia738ee9553368464dc498e4e04e1389c6dfbb969
This updates the grafyaml docker images to python 3.10. We do this
because 3.10 has been shown to be quicker than 3.8. Also, 3.11 is coming
up soon and moving off of 3.8 will allow us to remove those images
before adding 3.11 which keeps to image build count to a more reasonable
number.
We update the voluptuous version to add python 3.10 support. In
particular collections.Mapping moved to collections.abc.Mapping.
Change-Id: I1514f5e1992cfe5dcdaa06133f5da7379599e57e
It seems newer voluptuous passes the specified default value into the
verification method. Previously if data wasn't supplied it seems to have
not validated anything and returend the default. Anyway this means we
need to use a default value that matches our input type and manipulate
it on the output end the same way we would normal input.
We make this update in order to use newer voluptuous which will be
required when we switch to python3.10.
Change-Id: I64d9c8ac1334971f2d1c82f19ea675022635dc37
This was specified in project-config but got stale there. We move the
config here so that we can specify up to date jobs that make sense.
Depends-On: https://review.opendev.org/c/openstack/project-config/+/861482
Change-Id: I460d06b23639fae2d1b8898ed35a4e6914367a86
As described inline, datasources now have a UID. Set this to a fixed
hash of the URL to make dashboards which refer to datasources
explicitly portable.
Change-Id: I53e2aec7f635e8ce8793abb5755eccd2e6b3e4c5
This uses the job from the dependent change to import and take
screnshots of graphs from project-config. This job will pull from the
intermediate registry, hence to add opendev-buildset-registry.
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/847128/
Change-Id: I175635543c1a1dfe8c29304be0ccd2a58c20aac3
As noted inline, a default export from Grafana includes the uid/id
which breaks when you re-import it into a different site. Strip them.
Change-Id: I318614b33aed2ece93d44e832bad7907724cb1bc
We are relying on the "slug" field being the same as our "url
friendly" title that we create. For whatever reason the slug field
was deprecated in Grafana v5.0, and now with v8.3.4 it has stopped
working.
We can turn the name/slug into a UID by hashing, and then use this in
the various API calls.
Change-Id: I13d3162c917e094684756e51836d12000621fefa
This builds and publishes docker images to opendevorg/grafyaml
so that users can run this with "docker run ...".
Also, appease the pep8 gods.
Change-Id: Ia30438953e5c73a01ae0cd32afb660442e0e6e39
This simply takes any json files present and loads them into Grafana
directly. The idea is that you can edit the dashboards using the
inbuilt editor, then copy the dashboard JSON and keep it externally
version controlled. No parsing or validation is done on the JSON
files; we are assuming they have not been hand-modified from what
Grafana generates.
Change-Id: I38695aed2404f8b7fc350d949b7a9212498c35cb
Added with dd6582e9cc, we have found
that setting a bool here means the query variable no longer refreshes
at all. Thus it's dangerous to accept it, force it to be an int.
For reference, the values seem to be
0 = never refresh
1 = on load
2 = on timeseries change
Change-Id: Ia96f0166a80ece0b307acdca20eeca045a2e4a75
This has bit-rotted as libraries have updated to Python 3 only.
Switch to hacking; some minor changes to regex-strings is all that is
required.
Drop py27 markers and move to Python 3 only. Update requirements.
Depends-On: https://review.opendev.org/737666
Change-Id: Iabf201965129b3284166e1aedcb9f1c9d6109077
- retro-compatibility with default folder 'General' == 0
- add to config file with folderid key in grafana section
- add to cmd with --grafana-folderid
Change-Id: Iebfc5613f4c622d3d49d2f34df77ad3695f6b046
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I0d7c93b0c7e48dd86f3e1591596ca6e10caff196
Add some expanded documentation on what grafyaml actually does to
README.rst
While we're here, fix this up to use openstackdocs theme and the
latest sphinx, as it was producing a bunch of warnings.
Change-Id: I570b44cb911cd48d53d62234426edeabb22b1469
I was trying to figure out how to do multiple target calculations with
hidden targets. I didn't see this explicitly tested for, so add it.
Change-Id: Ibbbb2810dd531e792f11c07946c21829fcdbe0a1
the following patch will allow us to use datasource type in template schema.
Change-Id: I15cce5f8f97d1837b94eaa7067d7ebe8e449f8f4
Signed-off-by: Eldad Marciano <emarcian@redhat.com>
Allow custom templated vars. Custom templated vars are similiar to
interval templated vars in that they have "options" however they can be
multi-selected vs just a singular selection as with an interval var.
Change-Id: Ic89c5d192f87890da950a9d2d5f9bc4a96a3e174