Skip to content

Instantly share code, notes, and snippets.

View abadger's full-sized avatar

Toshio Kuratomi abadger

View GitHub Profile
@abadger
abadger / gist:2e9bdb59ee7d42dfc0d612dcef07d67d
Created November 10, 2021 18:10
Convert2rhel unit testing discussion 11-10-2021
* Integration tests
* DevDocTest
* Hackathon that made the new CI framework work with testing_farm (and
Artemis) and pakit. These are used in Fedora and RHEL
* https://packit.dev/docs/testing-farm/
* Developers should be able to write these but now that we have a QE team then
they can write them
* We might re-evaluate having the developers write these in the future.
* Runs the whole conversion:
* Set up the system
diff --git a/convert2rhel/unit_tests/logger_test.py b/convert2rhel/unit_tests/logger_test.py
index 1679f66..78477cc 100644
--- a/convert2rhel/unit_tests/logger_test.py
+++ b/convert2rhel/unit_tests/logger_test.py
@@ -119,20 +119,29 @@ def test_logger_custom_logger(tmpdir, caplog):
("convert2rhel.log", True, False, True),
),
)
[email protected]("os.stat")
-def test_archive_old_logger_files(os_stat, log_name, path_exists, is_dir, exception, monkeypatch, caplog):
@abadger
abadger / latest.log
Created July 26, 2021 01:14
minecolonies builder won't build asian plantation 2
[25Jul2021 16:59:20.114] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, AnonymousBadger, --version, MultiMC5, --gameDir, /home/badger/bin/MultiMC/instances/FTB Presents Direwolf20 1.16/minecraft, --assetsDir, /home/badger/bin/MultiMC/assets, --assetIndex, 1.16, --uuid, ec7bc4c4c50a4cf3b1beeb9e6302df9a, --accessToken, ❄❄❄❄❄❄❄❄, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.1.23, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550, --width, 854, --height, 480]
[25Jul2021 16:59:20.127] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 11.0.11 by Red Hat, Inc.
[25Jul2021 16:59:20.794] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[25Jul2021 16:59:20.898] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/home/badg
@abadger
abadger / crash-2021-07-17_21.46.47-client.txt
Created July 18, 2021 05:19
minecolonies crash logs when accessing library minimum stock Add button
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 7/17/21, 9:46 PM
Description: Ticking screen
java.lang.NullPointerException: Ticking screen
at net.minecraft.item.ItemStack.handler$zbd000$isEnchanted(ItemStack.java:1093) ~[?:?] {re:mixin,re:classloading,xf:fml:placebo:placeboitemusehook,xf:fml:astralsorcery:add_missing_tag_enchantment_tooltip,xf:fml:astralsorcery:add_enchantment_tooltip,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,pl:mixin:APP:tetra.mixins.json:MixinItemStack,pl:mixin:APP:appliedenergistics2.mixins.json:ItemStackAccessor,pl:mixin:A}
at net.minecraft.item.ItemStack.func_77948_v(ItemStack.java) ~[?:?] {re:mixin,re:classloading,xf:fml:placebo:placeboitemusehook,xf:fml:astralsorcery:add_missing_tag_enchantment_tooltip,xf:fml:astralsorcery:add_enchantment_tooltip,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack,pl:mixin:APP:tetra.mixins.json:MixinItemStack,pl:mixin:APP:appliedenergistics2.mixins.json:ItemStackAccessor,pl:mixin:A}
at net.minecraft.item.Item.func_77613_e
@abadger
abadger / argspec-in-doc.patch
Created July 15, 2021 22:08
Start of a patch to the docs schema for module argspec
diff --git a/antsibull/schemas/docs/module.py b/antsibull/schemas/docs/module.py
index d795550..ebaf2ba 100644
--- a/antsibull/schemas/docs/module.py
+++ b/antsibull/schemas/docs/module.py
@@ -12,7 +12,15 @@ from .base import BaseModel, DocSchema, OptionsSchema
from .plugin import PluginExamplesSchema, PluginMetadataSchema, PluginReturnSchema
-class InnerModuleOptionsSchema(OptionsSchema):
+class ArgSpecModifiersSchema(BaseModel):
@abadger
abadger / latest.log
Created July 13, 2021 05:43
latest.log showing minecolonies AI error
[12Jul2021 17:12:24.504] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, AnonymousBadger, --version, MultiMC5, --gameDir, /home/badger/bin/MultiMC/instances/FTB Presents Direwolf20 1.16/minecraft, --assetsDir, /home/badger/bin/MultiMC/assets, --assetIndex, 1.16, --uuid, ec7bc4c4c50a4cf3b1beeb9e6302df9a, --accessToken, ❄❄❄❄❄❄❄❄, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.1.23, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550, --width, 854, --height, 480]
[12Jul2021 17:12:24.529] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 11.0.11 by Red Hat, Inc.
[12Jul2021 17:12:25.742] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[12Jul2021 17:12:25.987] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/home/badg
@abadger
abadger / instructions.txt
Last active June 30, 2021 16:51
How to test how much more memory the docs build will consume as collections are added
* Checkout ansible-build-data
* git clone https://github.com/ansible-community/ansible-build-data
* For testing the devel tree, modify the latest ansible.in file (currently ansible-build-data/5/ansible.in)
* Example, this adds the community.dns collection to the collection docs that will be built:
* echo 'community.dns ' >> ansible-build-data/5/ansible.in
* For testing the stable tree, you will have to modify the latest ansible-X.Y.Z.deps file:
* echo 'community.dns: 1.0.1' >> ansible-build-data/4/ansible-4.2.0.deps
* Download the patch to ansible-core:
* wget https://github.com/ansible/ansible/pull/75150.patch
* Checkout the ansible-core code:
$ ansible-doc -t connection ssh
[...]
- private_key_file
Path to private key file to use for authentication
[Default: (null)]
set_via:
env:
- name: ANSIBLE_PRIVATE_KEY_FILE
ini:
- key: private_key_file
@abadger
abadger / htaccess.diff
Last active March 1, 2021 16:41
htaccess generated with an earlier version of ansible-2.10.0 versus current.
--- docsite/ansible/2.10/.htaccess 2021-03-01 07:56:39.837612425 -0800
+++ tmp/3/.htaccess 2021-03-01 08:29:51.849498052 -0800
@@ -215,6 +215,7 @@
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/redis.html" "$1/collections/community/general/redis_lookup.html"
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/sequence.html" "$1/collections/ansible/builtin/sequence_lookup.html"
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/shelvefile.html" "$1/collections/community/general/shelvefile_lookup.html"
+RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/skydive.html" "$1/collections/community/skydive/skydive_lookup.html"
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/subelements.html" "$1/collections/ansible/builtin/subelements_lookup.html"
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/template.html" "$1/collections/ansible/builtin/template_lookup.html"
RedirectMatch "^(/ansible/[^/]+)/plugins/lookup/together.html" "$1/collections/ansible/builtin/together_lookup.html"
ANSIBLE_VERSION_ARGS=
ifndef ANSIBLE_VERSION
# Only needed to make stable-2.10 docs build correctly. Do not apply to devel and future branches
ANSIBLE_VERSION=$(MAJOR_VERSION)
endif
ifdef ANSIBLE_VERSION
ANSIBLE_VERSION_ARGS=--ansible-version=$(ANSIBLE_VERSION)
endif