author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
603,665 | 02.02.2022 15:17:36 | -10,800 | 9a54bab6ffd720a2ee442cb7adbff6f1cd0e8aff | [Chore] Fix faucet link
Problem: There are several occurencies of
which is deprecated since hangzhounet and doesn't work now.
Solution: Replace them with | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -42,7 +42,7 @@ snapshot_import_modes = {\nkey_import_modes = {\n\"ledger\": \"From a ledger\",\n\"secret-key\": \"Either the unencrypted or password-encrypted secret key for your address\",\n- \"json\": \"Faucet JSON file from https://faucet.tzalpha.net/\",\n+ \"json\": \"Faucet JSON file from https://teztnets.xyz/\",\n}\nsystemd_enable = {\n@@ -450,7 +450,7 @@ secret_key_query = Step(\njson_filepath_query = Step(\nid=\"json_filepath\",\nprompt=\"Provide the path to your downloaded faucet JSON file.\",\n- help=\"Download the faucet JSON file from https://faucet.tzalpha.net/.\\n\"\n+ help=\"Download the faucet JSON file from https://teztnets.xyz/.\\n\"\n\"The file will contain the 'mnemonic' and 'secret' fields.\",\nvalidator=Validator([required_field_validator, filepath_validator]),\n)\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/baking.md",
"new_path": "docs/baking.md",
"diff": "@@ -173,7 +173,7 @@ In order to import such a key, run:\nsudo -u tezos tezos-client import secret key baker <secret-key>\n```\n-3) You have a faucet JSON file from https://faucet.tzalpha.net/.\n+1) You have a faucet JSON file from https://teztnets.xyz/.\nIn order to activate the account run:\n```\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix faucet link
Problem: There are several occurencies of https://faucet.tzalpha.net/
which is deprecated since hangzhounet and doesn't work now.
Solution: Replace them with https://teztnets.xyz/. |
603,665 | 01.02.2022 15:15:03 | -10,800 | 665b4fb0b571cc4873f7d0f590d6579c7c5689a4 | Document 'tezos-packaging' usage on WSL
Problem: During testing it was found that `tezos-packaging`
can be used on WSL, but its usage has some limitations.
Solution: Information about WSL support was added to support
policy doc. Limitations are also mentioned in the corresponding
sections. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -39,6 +39,7 @@ the binaries, and the services used.\n- [**Raspberry Pi OS**](./docs/distros/ubuntu.md#raspberry)\n- [**Fedora**](./docs/distros/fedora.md)\n- [**macOS**](./docs/distros/macos.md)\n+- [**Windows using WSL**](./docs/distros/ubuntu.md#wsl)\nThe information about supported versions of the aforementioned OSes is available in the [support policy doc](./docs/support-policy.md).\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/distros/ubuntu.md",
"new_path": "docs/distros/ubuntu.md",
"diff": "-\n- SPDX-License-Identifier: LicenseRef-MIT-TQ\n-->\n+<a name=\"ubuntu\"></a>\n# Ubuntu Launchpad PPA with `tezos-*` binaries\nIf you are using Ubuntu you can use PPA in order to install `tezos-*` executables.\n@@ -34,7 +35,7 @@ Configuration files for these services are located in `/etc/default/tezos-baking\n## Ubuntu packages on Raspberry Pi OS\nIf you have a Raspberry Pi running the 64bit version of the official OS, you can\n-use the Lauchpad PPA to install `tezos-*` executables on it as well.\n+use the Launchpad PPA to install `tezos-*` executables on it as well.\nYou can add the PPA using:\n```\n@@ -51,6 +52,16 @@ And install packages with `apt-get`, e.g. for `tezos-client`:\nsudo apt-get install tezos-client\n```\n+<a name=\"wsl\"></a>\n+## Ubuntu packages on WSL\n+\n+If you use [Ubuntu on WSL](https://ubuntu.com/wsl), you can use the Launchpad PPA\n+to install `tezos-*` executables on it as well.\n+\n+You can add the PPA and install packages in the same way as described in [Ubuntu section](#ubuntu)\n+\n+In order to use ledger on WSL some additional preparation steps are needed. We recommed to use `usbipd-win` tool and follow [this guide](https://docs.microsoft.com/en-us/windows/wsl/connect-usb) about connecting usb devices to WSL.\n+\n## Systemd services from Ubuntu packages\nSome of the packages provide background `systemd` services, you can read more about them\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/systemd.md",
"new_path": "docs/systemd.md",
"diff": "@@ -55,6 +55,13 @@ Apart from the `.service` file you'll need the service startup script and defaul\nconfiguration file, they can be found in the [`scripts`](../docker/package/scripts) and\n[`defaults`](../docker/package/defaults) folders respectively.\n+## Systemd units on WSL\n+\n+Unfortunately, `systemd` is not officially supported on WSL.\n+\n+However, there are several unofficial workarounds for it and some have been known to work with `tezos-packaging`'s units.\n+\n+If you are successfully running a distro on WSL with `systemd`, the documentation above should apply to you too.\n## Multiple similar systemd services\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#375] Document 'tezos-packaging' usage on WSL
Problem: During testing it was found that `tezos-packaging`
can be used on WSL, but its usage has some limitations.
Solution: Information about WSL support was added to support
policy doc. Limitations are also mentioned in the corresponding
sections. |
603,652 | 28.01.2022 17:06:08 | -10,800 | 4526657b81d639e0e9b23d49b101090e15372a5f | Support multiple ledgers connection in setup wizard
Problem: Setup shows incorrect data when multiple ledgers are connected
and have the Baking app open.
Solution: Properly support a case when multiple ledgers are connected.
Explicitly show the ledger URL in the list of derivations. Additionally,
allow choosing a ledger when specifying additional derivations. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -225,12 +225,16 @@ def wait_for_ledger_baking_app():\nf\"sudo -u tezos {suppress_warning_text} tezos-client list connected ledgers\"\n).stdout\nproc_call(\"sleep 1\")\n- base_ledger_url = (\n- re.search(b\"ledger:\\/\\/[\\w\\-]+\\/\", output).group(0).decode(\"utf-8\")\n+ ledgers_derivations = {}\n+ for ledger_derivation in re.findall(ledger_regex, output):\n+ ledger_url = (\n+ re.search(b\"ledger:\\/\\/[\\w\\-]+\\/\", ledger_derivation).group(0).decode()\n)\n- return base_ledger_url, [\n- name.decode() for name in re.findall(derivation_path_regex, output)\n- ]\n+ derivation_path = (\n+ re.search(derivation_path_regex, ledger_derivation).group(0).decode()\n+ )\n+ ledgers_derivations.setdefault(ledger_url, []).append(derivation_path)\n+ return ledgers_derivations\ndef get_data_dir(network):\n@@ -251,16 +255,16 @@ def get_data_dir(network):\nreturn \"/var/lib/tezos/node-\" + network\n-def ledger_urls_info(ledger_derivations, base_ledger_url, node_endpoint):\n- info = []\n- # max accepts only non-empty lists\n- if len(ledger_derivations) == 0:\n- return info\n- max_derivation_len = max(map(len, ledger_derivations))\n- for derivation in ledger_derivations:\n+def ledger_urls_info(ledgers_derivations, node_endpoint):\n+ ledgers_info = {}\n+ max_derivation_len = 0\n+ for derivations_paths in ledgers_derivations.values():\n+ max_derivation_len = max(max_derivation_len, max(map(len, derivations_paths)))\n+ for ledger_url, derivations_paths in ledgers_derivations.items():\n+ for derivation_path in derivations_paths:\noutput = get_proc_output(\nf\"sudo -u tezos {suppress_warning_text} tezos-client \"\n- f\"show ledger {base_ledger_url + derivation}\"\n+ f\"show ledger {ledger_url + derivation_path}\"\n).stdout\naddr = re.search(address_regex, output).group(0).decode()\nbalance = (\n@@ -271,12 +275,12 @@ def ledger_urls_info(ledger_derivations, base_ledger_url, node_endpoint):\n.stdout.decode()\n.strip()\n)\n- info.append(\n- (\"{:\" + str(max_derivation_len + 1) + \"} address: {}, balance: {}\").format(\n- derivation + \",\", addr, balance\n- )\n+ ledgers_info.setdefault(ledger_url, []).append(\n+ (\n+ \"{:\" + str(max_derivation_len + 1) + \"} address: {}, balance: {}\"\n+ ).format(derivation_path + \",\", addr, balance)\n)\n- return info\n+ return ledgers_info\ndef search_baking_service_config(config_contents, regex, default):\n@@ -324,15 +328,42 @@ class Step:\npass\nif self.options and isinstance(self.options, list):\n- str_format = \"{:1}. {}\"\n+ options_count = 0\n+ for o in self.options:\n+ if isinstance(o, dict):\n+ for values in o.values():\n+ if not isinstance(values, list):\n+ options_count += 1\n+ else:\n+ options_count += len(values)\n+ else:\n+ options_count += 1\n+ index_len = len(str(options_count))\n+ str_format = f\"{{:{index_len}}}. {{}}\"\nfor o in self.options:\n+ if isinstance(o, dict):\n+ for k, values in o.items():\n+ print()\n+ print(f\"'{k}':\")\n+ print()\n+ if not isinstance(values, list):\n+ values = [values]\n+ for v in values:\n+ if def_i is not None and i == def_i:\n+ print(str_format.format(i, \"(default) \" + v))\n+ else:\n+ print(str_format.format(i, v))\n+ i += 1\n+ print()\n+ else:\nif def_i is not None and i == def_i:\nprint(str_format.format(i, \"(default) \" + o))\nelse:\nprint(str_format.format(i, o))\ni += 1\nelif self.options and isinstance(self.options, dict):\n- str_format = \"{:1}. {:<26} {}\"\n+ index_len = len(str(len(self.options)))\n+ str_format = f\"{{:{index_len}}}. {{:<26}} {{}}\"\nfor o in self.options:\ndescription = textwrap.indent(\ntextwrap.fill(self.options[o], 60), \" \" * 31\n@@ -462,25 +493,40 @@ derivation_path_query = Step(\nvalidator=Validator([required_field_validator, derivation_path_validator]),\n)\n+\n+def get_ledger_url(ledgers):\n+ return Step(\n+ id=\"ledger_url\",\n+ prompt=\"Choose a ledger to get the new derivation from.\",\n+ options=ledgers,\n+ default=None,\n+ validator=Validator([required_field_validator, enum_range_validator(ledgers)]),\n+ help=\"In order to specify new derivation path, you need to specify a ledger to get the derivation from.\",\n+ )\n+\n+\n# We define this step as a function since the corresponding step requires\n# tezos-node to be running and bootstrapped in order to gather the data\n# about the ledger-stored addresses, so it's called right before invoking\n# after the node was boostrapped\n-def get_ledger_derivation(ledger_derivations, base_ledger_url, node_endpoint):\n+def get_ledger_derivation(ledgers_derivations, node_endpoint):\nextra_options = [\"Specify derivation path\", \"Go back\"]\n+ full_ledger_urls = []\n+ for ledger_url, derivations_paths in ledgers_derivations.items():\n+ for derivation_path in derivations_paths:\n+ full_ledger_urls.append(ledger_url + derivation_path)\nreturn Step(\nid=\"ledger_derivation\",\n- prompt=\"Select a key to import from \" + base_ledger_url + \".\\n\"\n+ prompt=\"Select a key to import from the ledger.\\n\"\n\"You can choose one of the suggested derivations or provide your own:\",\nhelp=\"'Specify derivation path' will ask a derivation path from you.\"\n\"'Go back' will return you back to the key type choice.\",\ndefault=None,\n- options=ledger_urls_info(ledger_derivations, base_ledger_url, node_endpoint)\n- + extra_options,\n+ options=[ledger_urls_info(ledgers_derivations, node_endpoint)] + extra_options,\nvalidator=Validator(\n[\nrequired_field_validator,\n- enum_range_validator(ledger_derivations + extra_options),\n+ enum_range_validator(full_ledger_urls + extra_options),\n]\n),\n)\n@@ -804,10 +850,8 @@ class Setup:\nelse:\nprint(\"Please open the Tezos Baking app on your ledger.\")\n- (\n- base_ledger_url,\n- ledger_derivations,\n- ) = wait_for_ledger_baking_app()\n+ ledgers_derivations = wait_for_ledger_baking_app()\n+ ledgers = list(ledgers_derivations.keys())\nbaker_ledger_url = \"\"\nwhile (\nre.match(ledger_regex.decode(\"utf-8\"), baker_ledger_url)\n@@ -815,8 +859,7 @@ class Setup:\n):\nself.query_step(\nget_ledger_derivation(\n- ledger_derivations,\n- base_ledger_url,\n+ ledgers_derivations,\nself.config[\"node_rpc_addr\"],\n)\n)\n@@ -827,6 +870,13 @@ class Setup:\nself.config[\"ledger_derivation\"]\n== \"Specify derivation path\"\n):\n+ if len(ledgers) >= 1:\n+ # If there is only one connected ledger, there is nothing to choose from\n+ if len(ledgers) == 1:\n+ ledger_url = ledgers[0]\n+ else:\n+ self.query_step(get_ledger_url(ledgers))\n+ ledger_url = self.config[\"ledger_url\"]\nself.query_step(derivation_path_query)\nsigning_curves = [\n\"bip25519\",\n@@ -835,15 +885,15 @@ class Setup:\n\"P-256\",\n]\nfor signing_curve in signing_curves:\n- ledger_derivations.append(\n+ ledgers_derivations.setdefault(\n+ ledger_url, []\n+ ).append(\nsigning_curve\n+ \"/\"\n+ self.config[\"derivation_path\"]\n)\nelse:\n- baker_ledger_url = (\n- base_ledger_url + self.config[\"ledger_derivation\"]\n- )\n+ baker_ledger_url = self.config[\"ledger_derivation\"]\nproc_call(\nf\"sudo -u tezos {suppress_warning_text} tezos-client {tezos_client_options} \"\nf\"import secret key {baker_alias} {baker_ledger_url} --force\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#379] Support multiple ledgers connection in setup wizard
Problem: Setup shows incorrect data when multiple ledgers are connected
and have the Baking app open.
Solution: Properly support a case when multiple ledgers are connected.
Explicitly show the ledger URL in the list of derivations. Additionally,
allow choosing a ledger when specifying additional derivations. |
603,658 | 03.12.2021 20:49:34 | -3,600 | 43c5c8385d469b648521ff9c19c63e49e81a2181 | Add voting wizard to docker installation process
Problem: there is now a script for interactive voting but no way to
easily use it from native packages.
Solution: added the voting wizard to be included in the docker packages
similar to the setup wizard. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -563,6 +563,7 @@ class TezosBakingServicesPackage(AbstractPackage):\ndef fetch_sources(self, out_dir):\nos.makedirs(out_dir)\nshutil.copy(f\"{os.path.dirname(__file__)}/tezos_setup_wizard.py\", out_dir)\n+ shutil.copy(f\"{os.path.dirname(__file__)}/tezos_voting_wizard.py\", out_dir)\ndef gen_control_file(self, deps, ubuntu_version, out):\nrun_deps_list = [\"acl\", \"tezos-client\", \"tezos-node\"]\n@@ -648,9 +649,14 @@ tezos-setup-wizard:\nmv $(CURDIR)/tezos_setup_wizard.py $(CURDIR)/tezos-setup-wizard\nchmod +x $(CURDIR)/tezos-setup-wizard\n-install: tezos-baking tezos-setup-wizard\n+tezos-voting-wizard:\n+ mv $(CURDIR)/tezos_voting_wizard.py $(CURDIR)/tezos-voting-wizard\n+ chmod +x $(CURDIR)/tezos-voting-wizard\n+\n+install: tezos-baking tezos-setup-wizard tezos-voting-wizard\nmkdir -p $(DESTDIR)$(BINDIR)\ncp $(CURDIR)/tezos-setup-wizard $(DESTDIR)$(BINDIR)/tezos-setup-wizard\n+ cp $(CURDIR)/tezos-voting-wizard $(DESTDIR)$(BINDIR)/tezos-voting-wizard\n\"\"\"\nwith open(out, \"w\") as f:\nf.write(file_contents)\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#237] Add voting wizard to docker installation process
Problem: there is now a script for interactive voting but no way to
easily use it from native packages.
Solution: added the voting wizard to be included in the docker packages
similar to the setup wizard. |
603,658 | 31.01.2022 18:40:25 | -3,600 | 56c78941a591ecea502ee3f2c521b194a99e8534 | Add custom network support
Problem: we might want to use the voting wizard with custom chains,
and we certainly want to use them at least for testing. Currently though,
the voting wizard only supports mainnet.
Solution: add steps querying the network to use, giving two options:
mainnet and a custom network. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -381,9 +381,10 @@ network_query = Step(\nid=\"network\",\nprompt=\"Which Tezos network would you like to use?\\nCurrently supported:\",\nhelp=\"The selected network will be used to set up all required services.\\n\"\n- \"The currently supported protocol is 011-PtHangz2 (used on hangzhounet and mainnet).\\n\"\n- \"\\nKeep in mind that you must select the test network \"\n- \"(hangzhounet) if you plan on baking with a faucet JSON file.\",\n+ \"The currently supported protocol is 011-PtHangz2 (used on hangzhounet and mainnet)\\n\"\n+ \"and 012-Psithaca (used on ithacanet).\\n\"\n+ \"Keep in mind that you must select the test network (hangzhounet ot ithacanet)\\n\"\n+ \"if you plan on baking with a faucet JSON file.\\n\",\noptions=networks,\nvalidator=Validator(enum_range_validator(networks)),\n)\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_voting_wizard.py",
"new_path": "docker/package/tezos_voting_wizard.py",
"diff": "@@ -16,6 +16,11 @@ import re, textwrap\n# Global options\n+networks = {\n+ \"mainnet\": \"Main Tezos network\",\n+ \"custom\": \"Custom network, will require its name\",\n+}\n+\nballot_outcomes = {\n\"yay\": \"Vote for accepting the proposal\",\n\"nay\": \"Vote for rejecting the proposal\",\n@@ -92,12 +97,15 @@ class Validator:\nwelcome_text = \"\"\"Tezos Voting Wizard\nWelcome, this wizard will help you to vote in the Tezos protocol amendment process.\n-Please note that for this you need to already have set up the baking infrastructure\n-on mainnet, as only bakers can submit ballots or proposals.\n+Please note that for this you need to already have set up the baking infrastructure,\n+normally on mainnet, as only bakers can submit ballots or proposals.\nIf you have installed tezos-baking, you can run Tezos Setup Wizard to set it up:\ntezos-setup-wizard\n+Alternatively, you can use this wizard for voting on a custom chain,\n+which also needs to be set up already.\n+\nAll commands within the service are run under the 'tezos' user.\nTo access help and possible options for each question, type in 'help' or '?'.\n@@ -223,7 +231,7 @@ custom_network_query = Step(\nhelp=\"The selected network will be used to vote.\\n\"\n\"For example, to use the tezos-baking-custom@voting service, input 'voting'.\"\n\"You need to already have set up the custom network using systemd services.\",\n- # TODO: \"\\nFor that, you can follow a tutorial here:\",\n+ # TODO: \"\\nYou can follow a tutorial here:\",\nvalidator=Validator(required_field_validator),\n)\n@@ -315,11 +323,14 @@ class Setup:\nreturn bool(re.match(value_regex, address.stdout))\ndef check_baking_service(self):\n+ net = self.config[\"network_suffix\"]\ntry:\n- proc_call(\"systemctl is-active --quiet tezos-baking-mainnet.service\")\n+ proc_call(f\"systemctl is-active --quiet tezos-baking-{net}.service\")\nexcept:\n- print(\"Looks like the tezos-baking-mainnet service isn't running.\")\n- print(\"Please start the service or set up baking by running:\")\n+ print(f\"Looks like the tezos-baking-{net} service isn't running.\")\n+ print(\"Please start the service or set up baking.\")\n+ if self.config[\"network_mode\"] == \"mainnet\":\n+ print(\"You can do this by running:\")\nprint(\"tezos-setup-wizard\")\nsys.exit(1)\n@@ -333,15 +344,28 @@ class Setup:\nprint(\"tezos-setup-wizard\")\nsys.exit(1)\n+ def get_network(self):\n+ self.query_step(network_query)\n+\n+ if self.config[\"network_mode\"] == \"mainnet\":\n+ self.config[\"network_suffix\"] = \"mainnet\"\n+ elif self.config[\"network_mode\"] == \"custom\":\n+ # TODO: maybe check/validate this\n+ self.query_step(custom_network_query)\n+ self.config[\"network_suffix\"] = (\n+ \"custom@\" + self.config[\"custom_network_name\"]\n+ )\n+\ndef fill_baking_config(self):\n- output = get_proc_output(\"systemctl show tezos-baking-mainnet.service\").stdout\n+ net = self.config[\"network_suffix\"]\n+ output = get_proc_output(f\"systemctl show tezos-baking-{net}.service\").stdout\nconfig_filepath = re.search(b\"EnvironmentFiles=(.*) \", output)\nif config_filepath is None:\nprint(\n- \"EnvironmentFiles not found in tezos-baking-mainnet.service configuration,\",\n- \"defaulting to /etc/default/tezos-baking-mainnet\",\n+ f\"EnvironmentFiles not found in tezos-baking-{net}.service configuration,\",\n+ f\"defaulting to /etc/default/tezos-baking-{net}\",\n)\n- config_filepath = \"/etc/default/tezos-baking-mainnet\"\n+ config_filepath = f\"/etc/default/tezos-baking-{net}\"\nelse:\nconfig_filepath = config_filepath.group(1).decode().strip()\n@@ -496,6 +520,8 @@ class Setup:\nprint(welcome_text)\n+ self.get_network()\n+\nself.fill_baking_config()\nself.check_baking_service()\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#237] Add custom network support
Problem: we might want to use the voting wizard with custom chains,
and we certainly want to use them at least for testing. Currently though,
the voting wizard only supports mainnet.
Solution: add steps querying the network to use, giving two options:
mainnet and a custom network. |
603,652 | 25.02.2022 17:26:21 | -10,800 | e375d2143556fdabd5724f3a620e9b05f31d7a64 | [Chore] Explicitly checkout in 'sync-hashes' job
Problem: 'sync-hashes' job is failing due to lack of '.git' folder.
Solution: Explicitly checkout repository before downloading bottles. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-bottles.yml",
"new_path": ".github/workflows/build-bottles.yml",
"diff": "@@ -67,6 +67,9 @@ jobs:\nruns-on: macos-10.15\nneeds: build-bottles\nsteps:\n+ - name: Checkout\n+ uses: actions/checkout@v2\n+\n# It's possible we have had to rerun the building workflow, skipping some jobs and\n# erasing the previously built bottles, so we use the release to download them all\n- name: Download Catalina bottles from the release\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Explicitly checkout in 'sync-hashes' job
Problem: 'sync-hashes' job is failing due to lack of '.git' folder.
Solution: Explicitly checkout repository before downloading bottles. |
603,652 | 25.02.2022 15:11:43 | -10,800 | e8c6e50efd4a6f90cceca223f2d757ba6f6a1f88 | [Chore] Remove Ubuntu 21.04 support
Problem: Ubuntu 21.04 is now obsolete and launchpad rejects builds that
target this Ubuntu version.
Solution: Remove 21.04 from the list of supported Ubuntu versions. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -239,7 +239,7 @@ Source: {self.name.lower()}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"hirsute\" else \"\"} autotools-dev, {str_build_deps}\n+Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev, {str_build_deps}\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n@@ -389,7 +389,7 @@ Source: {self.name}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"hirsute\" else \"\"} autotools-dev, wget\n+Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev, wget\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n@@ -578,7 +578,7 @@ Source: {self.name}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"hirsute\" else \"\"} autotools-dev\n+Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/package_generator.py",
"new_path": "docker/package/package_generator.py",
"diff": "@@ -80,7 +80,6 @@ common_deps = run_deps + build_deps\nubuntu_versions = [\n\"bionic\", # 18.04\n\"focal\", # 20.04\n- \"hirsute\", # 21.04\n]\npwd = os.getcwd()\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/support-policy.md",
"new_path": "docs/support-policy.md",
"diff": "@@ -20,10 +20,6 @@ Currently, these are versions:\n* 18.04 LTS (Bionic Beaver)\n* 20.04 LTS (Focal Fossa)\n-When feasible, we also provide support for non-LTS versions on request from the users.\n-Currently:\n-* 21.04 (Hirsute Hippo) - requested in [#212](https://github.com/serokell/tezos-packaging/issues/212)\n-\nThere are packages for `arm64` and `amd64` architectures.\n## Fedora packages\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove Ubuntu 21.04 support
Problem: Ubuntu 21.04 is now obsolete and launchpad rejects builds that
target this Ubuntu version.
Solution: Remove 21.04 from the list of supported Ubuntu versions. |
603,652 | 25.02.2022 15:20:20 | -10,800 | ded5951082b327cfbf5d733cf27f5c264f079e07 | Update Fedora versions support list
Problem: Fedora 35 was unsupported on x86_64 due to incompatibility
between Octez and new glibc version. With v12.0 Octez is now compatible
with new gcc and glibc.
Solution: Update Fedora support description and mention that we support
x86_64 and aarch64 for both supported Fedora versions. | [
{
"change_type": "MODIFY",
"old_path": "docs/support-policy.md",
"new_path": "docs/support-policy.md",
"diff": "@@ -27,8 +27,8 @@ There are packages for `arm64` and `amd64` architectures.\nWe aim to provide packages for all [currently supported Fedora releases](https://docs.fedoraproject.org/en-US/releases/).\nCurrently, these are versions:\n-* Fedora 34, both `x86_64` and `aarch64`\n-* Fedora 35, only `aarch64`. `x86_64` is currently unsupported due to [tezos/#1449](https://gitlab.com/tezos/tezos/-/issues/1449)\n+* Fedora 34\n+* Fedora 35\nThere are packages for `x86_64` and `aarch64` architectures.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#390] Update Fedora versions support list
Problem: Fedora 35 was unsupported on x86_64 due to incompatibility
between Octez and new glibc version. With v12.0 Octez is now compatible
with new gcc and glibc.
Solution: Update Fedora support description and mention that we support
x86_64 and aarch64 for both supported Fedora versions. |
603,652 | 01.03.2022 17:27:00 | -10,800 | a15460af3b7360ad0a277e0290fea20c4e3c251a | [Chore] Fetch BUILDKITE_BRANCH before updating mirror
Problem: 'git push --mirror' pushes changes from the local ref which is
nearly empty due to the way buildkite fetches repository before doing
CI step.
Solution: Explicitly fetch, checkout, and pull current branch before
pushing to the mirror repository. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -182,7 +182,11 @@ steps:\nbuild.message =~ /^Merge pull request .* from serokell\\/auto\\/update-brew-formulae-v[.0-9]+-[0-9]+/ )\ndepends_on:\n- \"auto-release\"\n- command: git push --mirror git@github.com:serokell/tezos-packaging-stable.git\n+ env:\n+ MIRROR_REPO: \"git@github.com:serokell/tezos-packaging-stable.git\"\n+ commands: &update_mirror\n+ - git pull origin \"$BUILDKITE_BRANCH:$BUILDKITE_BRANCH\"\n+ - git push --mirror \"$MIRROR_REPO\"\n- label: update RC mirror repository\nif: |\n@@ -191,4 +195,6 @@ steps:\nbuild.message =~ /^Merge pull request .* from serokell\\/auto\\/update-brew-formulae-v[.0-9]+-rc.*/)\ndepends_on:\n- \"auto-release\"\n- command: git push --mirror git@github.com:serokell/tezos-packaging-rc.git\n+ env:\n+ MIRROR_REPO: \"git@github.com:serokell/tezos-packaging-rc.git\"\n+ commands: *update_mirror\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fetch BUILDKITE_BRANCH before updating mirror
Problem: 'git push --mirror' pushes changes from the local ref which is
nearly empty due to the way buildkite fetches repository before doing
CI step.
Solution: Explicitly fetch, checkout, and pull current branch before
pushing to the mirror repository. |
603,658 | 25.02.2022 15:47:08 | -3,600 | 4b56a292bd8be53ee6c05760f8c892c271421fcd | Document the voting wizard
Problem: we now have released Tezos Voting Wizard, but there's no documentation
on how to use it.
Solution: added a doc on voting as well as documented how to set up a
custom baking instance and use it for voting. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -31,6 +31,18 @@ tezos-setup-wizard\nRead [the dedicated article](./docs/baking.md) to find out more about the setup,\nthe binaries, and the services used.\n+### Voting on Ubuntu\n+\n+An interactive voting wizard is provided for Ubuntu. After setting up a baking instance\n+on mainnet, you can vote by running:\n+\n+```bash\n+tezos-voting-wizard\n+```\n+\n+Read the [documentation on voting](./docs/voting.md) to find out more details about\n+voting on custom networks.\n+\n## Installing Tezos\n`tezos-packaging` supports several native distribution methods for convenience:\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/baking.md",
"new_path": "docs/baking.md",
"diff": "@@ -247,6 +247,42 @@ In case you want to use a different alias for the baking account:\n2. update the `BAKER_ADDRESS_ALIAS` by editing the\n`/etc/default/tezos-baking-<network>` file.\n+### Using a custom chain\n+\n+In case you want to set up a baking instance on a custom chain instead of relying on mainnet\n+or official testnets, you can do so:\n+\n+1. Create a config file for future custom baking instance:\n+ ```bash\n+ sudo cp /etc/default/tezos-baking-custom@ /etc/default/tezos-baking-custom@<chain-name>\n+ ```\n+2. In `/etc/default/tezos-baking-custom@<chain-name>`, provide the path to your custom node\n+ config in `CUSTOM_NODE_CONFIG`.\n+3. Start custom baking service:\n+ ```bash\n+ sudo systemctl start tezos-baking-custom@<chain-name>\n+ ```\n+4. Check that all parts are indeed running:\n+ ```bash\n+ systemctl status tezos-node-custom@<chain-name>\n+ systemctl status tezos-baker-011-pthangz2@custom@<chain-name>.service\n+ systemctl status tezos-baker-012-psithaca@custom@<chain-name>.service\n+ systemctl status tezos-endorser-011-pthangz2@custom@<chain-name>.service\n+```\n+\n+If at any point after that you want to reset the custom baking service, you can set\n+`RESET_ON_STOP=true` in the `/etc/default/tezos-baking-custom@<chain-name>` config file and run:\n+\n+```bash\n+sudo systemctl stop tezos-baking-custom@voting\n+```\n+\n+Manually resetting is possible through:\n+\n+1. Removing the custom chain node directory, `/var/lib/tezos/node-custom@<chain-name>` by default.\n+2. Deleting `blocks`, `nonces`, and `endorsements` from the `tezos-client` data directory,\n+ `/var/lib/tezos/.tezos-client` by default.\n+\n## Quick Start\n<details>\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/voting.md",
"diff": "+<!--\n+ - SPDX-FileCopyrightText: 2022 TQ Tezos <https://tqtezos.com/>\n+ -\n+ - SPDX-License-Identifier: LicenseRef-MIT-TQ\n+ -->\n+\n+# Voting with `tezos-packaging` on Ubuntu\n+\n+`tezos-packaging` provides an easy way to propose amendments and cast votes on the Tezos blockchain.\n+\n+This article documents the way to vote on Ubuntu, as well as any prerequisite steps necessary.\n+\n+## Using the wizard\n+\n+You can easily use Tezos Voting Wizard to vote on mainnet.\n+\n+A prerequisite for this is a mainnet baking instance already set up and running. An easy way to configure\n+it is Tezos Setup Wizard. See the [baking](./baking.md#prerequisites) article for more details.\n+\n+After all the services required for baking have been set up, run:\n+\n+```bash\n+tezos-voting-wizard\n+```\n+\n+The wizard displays the voting period and offers approppriate possible actions for that period.\n+\n+# Advanced usage\n+\n+## Using custom networks\n+\n+`tezos-voting-wizard` supports voting on custom networks, in turn enabled by `tezos-packaging`'s\n+support for custom chain systemd services. The process to set up a custom baking instance is\n+documented [here](./baking.md#using-a-custom-chain).\n+\n+After the custom baking instance is fully set up, you can vote or propose amendments on it by running:\n+\n+```bash\n+tezos-voting-wizard\n+```\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#389] Document the voting wizard
Problem: we now have released Tezos Voting Wizard, but there's no documentation
on how to use it.
Solution: added a doc on voting as well as documented how to set up a
custom baking instance and use it for voting. |
603,658 | 07.03.2022 19:30:00 | -3,600 | 52743d5f4fdd04defe348807d82299bac0e26502 | [Chore] Fix: tezos-baking fails to build on Fedora
Problem: COPR reports tezos-baking-v12.0-1 failing to build on any
version/architecture because 'tezos-baking-custom@.default' isn't found.
Solution: fixed the bug in how the default name is chosen. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/fedora.py",
"new_path": "docker/package/fedora.py",
"diff": "@@ -29,7 +29,7 @@ def build_fedora_package(\nsystemd_unit.service_file.service.environment_file.lower()\n)\nif systemd_unit.suffix is None:\n- unit_name = f\"{pkg.name}\"\n+ unit_name = pkg.name\nelse:\nunit_name = f\"{pkg.name}-{systemd_unit.suffix}\"\nout_path = (\n@@ -39,9 +39,12 @@ def build_fedora_package(\n)\nprint_service_file(systemd_unit.service_file, out_path)\nif systemd_unit.config_file is not None:\n+ default_name = (\n+ unit_name if systemd_unit.instances is None else f\"{unit_name}@\"\n+ )\nshutil.copy(\nf\"{cwd}/defaults/{systemd_unit.config_file}\",\n- f\"{dir}/{unit_name}.default\",\n+ f\"{dir}/{default_name}.default\",\n)\nfor script, script_source in [\n(systemd_unit.startup_script, systemd_unit.startup_script_source),\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix: tezos-baking fails to build on Fedora
Problem: COPR reports tezos-baking-v12.0-1 failing to build on any
version/architecture because 'tezos-baking-custom@.default' isn't found.
Solution: fixed the bug in how the default name is chosen. |
603,658 | 07.03.2022 19:42:47 | -3,600 | 528725536bfff3c1378a3461733137f739f5dcea | [Chore] Fix typo in docker README
Problem: the 'docker/' directory README has instructions on signing
built '.src.rpm' packages, but rpm's '--addsign' flag needed for it
is spelled with a dash, leading to an error.
Solution: fixed the typo. | [
{
"change_type": "MODIFY",
"old_path": "docker/README.md",
"new_path": "docker/README.md",
"diff": "@@ -203,7 +203,7 @@ cd .. && ./docker/docker-tezos-packages.sh --os fedora --type source --package t\nSign source packages:\n```\n-rpm --add-sign out/*.src.rpm\n+rpm --addsign out/*.src.rpm\n```\nNote, that in order to sign them, you'll need gpg key to be set up in `~/.rpmmacros`.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix typo in docker README
Problem: the 'docker/' directory README has instructions on signing
built '.src.rpm' packages, but rpm's '--addsign' flag needed for it
is spelled with a dash, leading to an error.
Solution: fixed the typo. |
603,650 | 17.03.2022 03:01:16 | -3,600 | 7d7745d4edceb4e46353d9a163ce9a9251a03e73 | [Chore] Update copyright holders and licensing info
Problem: licenses and copyright holders are outdated.
New changes should no longer be attributed to TQ Tezos
but rather to Oxhead Alpha (still using MIT).
Solution: add a new LICENSE file for TQ/OA and update the main
LICENSE file. Also update copyright holders where needed. | [
{
"change_type": "MODIFY",
"old_path": ".reuse/dep5",
"new_path": ".reuse/dep5",
"diff": "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nFiles: .github/* nix/nix/* protocols.json meta.json tests/buildkite/golden/* tests/host.key tests/host.cert tests/ca.cert\n-Copyright: TQ Tezos <https://tqtezos.com>\n-License: LicenseRef-MIT-TQ\n+Copyright: 2022 Oxhead Alpha\n+License: LicenseRef-MIT-OA\n"
},
{
"change_type": "MODIFY",
"old_path": "LICENSE",
"new_path": "LICENSE",
"diff": "-MIT License Copyright (c) 2020 TQ Tezos\n+MIT License\n+Copyright (c) 2021-2022 Oxhead Alpha\n+Copyright (c) 2019-2021 TQ Tezos\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "LICENSES/LicenseRef-MIT-OA.txt",
"diff": "+MIT License\n+Copyright (c) 2021-2022 Oxhead Alpha\n+Copyright (c) 2019-2021 TQ Tezos\n+\n+Permission is hereby granted, free of charge, to any person obtaining a copy\n+of this software and associated documentation files (the \"Software\"), to deal\n+in the Software without restriction, including without limitation the rights\n+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+copies of the Software, and to permit persons to whom the Software is furnished\n+to do so, subject to the following conditions:\n+\n+The above copyright notice and this permission notice (including the next\n+paragraph) shall be included in all copies or substantial portions of the\n+Software.\n+\n+THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS\n+OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\n+OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
},
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "<!--\n- - SPDX-FileCopyrightText: 2019-2021 TQ Tezos <https://tqtezos.com/>\n+ - SPDX-FileCopyrightText: 2022 Oxhead Alpha\n-\n- - SPDX-License-Identifier: LicenseRef-MIT-TQ\n+ - SPDX-License-Identifier: LicenseRef-MIT-OA\n-->\n# Tezos packaging\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/systemd.py",
"new_path": "docker/package/systemd.py",
"diff": "@@ -85,9 +85,9 @@ def print_service_file(service_file: ServiceFile, out):\nexec_stop_posts = \"\\n\".join(\nf\"ExecStopPost={x}\" for x in service_file.service.exec_stop_post\n)\n- file_contents = f\"\"\"# SPDX-FileCopyrightText: 2020 TQ Tezos <https://tqtezos.com/>\n+ file_contents = f\"\"\"# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n#\n-# SPDX-License-Identifier: LicenseRef-MIT-TQ\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n[Unit]\n{after}{requires}{part_of}Description={service_file.unit.description}\n[Service]\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update copyright holders and licensing info
Problem: licenses and copyright holders are outdated.
New changes should no longer be attributed to TQ Tezos
but rather to Oxhead Alpha (still using MIT).
Solution: add a new LICENSE file for TQ/OA and update the main
LICENSE file. Also update copyright holders where needed. |
603,658 | 18.03.2022 22:15:41 | -3,600 | 9c43d5776378a602dbb4e5b100df2eac58121a38 | [Chore] Add Ithaca to the list of mainnet protocols
Problem: Ithaca will soon be activated on mainnet. We need to support
an automatic switchover.
Solution: added 012-Psithaca to the list of mainnet protocols. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -14,7 +14,7 @@ from .systemd import Service, ServiceFile, SystemdUnit, Unit, Install\nnetworks = [\"mainnet\", \"hangzhounet\", \"ithacanet\"]\nnetworks_protos = {\n- \"mainnet\": [\"011-PtHangz2\"],\n+ \"mainnet\": [\"011-PtHangz2\", \"012-Psithaca\"],\n\"hangzhounet\": [\"011-PtHangz2\"],\n\"ithacanet\": [\"012-Psithaca\"],\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add Ithaca to the list of mainnet protocols
Problem: Ithaca will soon be activated on mainnet. We need to support
an automatic switchover.
Solution: added 012-Psithaca to the list of mainnet protocols. |
603,650 | 21.03.2022 17:16:13 | -3,600 | 7d8ed87a029e30f44c4d88567c5d04d4ee26d265 | [Chore] Add some more docs on packaging release numbers
Problem: the docs on the versioning policy used is unclear on
packaging <release>s. In particular it doesn't clarify that only
some packages in some distributions might be affected.
Solution: update the versioning doc and fix some typo. | [
{
"change_type": "MODIFY",
"old_path": "docs/versioning.md",
"new_path": "docs/versioning.md",
"diff": "<!--\n- - SPDX-FileCopyrightText: 2021 Oxhead Alpha\n+ - SPDX-FileCopyrightText: 2022 Oxhead Alpha\n- SPDX-License-Identifier: LicenseRef-MIT-OA\n-->\n`tezos-packaging` follows all Octez releases, both stable and candidates.\n-Packages from our releases provide addinional functionality (e.g. systemd services\n+Packages from our releases provide additional functionality (e.g. systemd services\nin Ubuntu and Fedora package or brew formulae with launchd services).\nThis additional functionality may change within the same upstream version.\n@@ -17,17 +17,24 @@ the following RPM-like versioning scheme: `<name>-<version>-<release>`:\n* `<version>` is used to reference the packaged upstream version.\n* `<release>` is used to reflect changes in additional packages functionality.\n+Note that each `<release>` will be consistent across distribution methods (\n+corresponding to the same git commit), but may be partial in scope, affecting\n+only some binaries in some distribution.\n+\n## GitHub releases\n-We provide GitHub releases for stable upstream releases and pre-releases for release candidates.\n+Depending on the upstream `<version>`, on GitHub we provide:\n+- releases for stable Octez releases\n+- pre-releases for Octez release candidates\n-In our GitHub repository we use tags in which `<name>-` part is ommited.\n+In our GitHub repository we use tags in which the `<name>-` part is omitted.\nE.g. `v11.0-1` is the first `tezos-packaging` release within the `v11.0` upstream stable release,\nor `v11.0-rc2-2` for the second `tezos-packaging` release within the `v11.0-rc2` upstream release candidate.\n-GitHub {pre-}releases contain static binaries and brew bottles compiled from the given\n-upstream source version.\n+GitHub {pre-}releases contain static binaries compiled from the given\n+upstream source `<version>`.\n+If any are applicable, they also contain `brew` bottles for macOS (see below).\n## Ubuntu packages\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add some more docs on packaging release numbers
Problem: the docs on the versioning policy used is unclear on
packaging <release>s. In particular it doesn't clarify that only
some packages in some distributions might be affected.
Solution: update the versioning doc and fix some typo. |
603,652 | 22.03.2022 09:39:39 | -10,800 | 2283e72d8883cd8b4cf00af8f4d32567644d476e | Remove Big Sur building from GitHub actions pipeline
Problem: Now we're building x86_64 bottles using our own infrastructure
which is based on buildkite.
Solution: Remove Big Sur building from GA pipeline configuration to
remove duplication. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-bottles.yml",
"new_path": ".github/workflows/build-bottles.yml",
"diff": "@@ -14,7 +14,7 @@ jobs:\nstrategy:\nfail-fast: false\nmatrix:\n- os: [ { id: macos-10.15, name: \"catalina\" }, { id: macos-11, name: \"big_sur\" } ]\n+ os: [ { id: macos-10.15, name: \"catalina\" } ]\n# we don't bottle meta-formulas that contain only services\nformula: [tezos-accuser-011-PtHangz2, tezos-accuser-012-Psithaca, tezos-admin-client, tezos-baker-011-PtHangz2, tezos-baker-012-Psithaca, tezos-client, tezos-codec, tezos-endorser-011-PtHangz2, tezos-node, tezos-sandbox, tezos-signer]\n@@ -92,11 +92,3 @@ jobs:\n- name: Add bottle hashes to formulae\nrun: ./scripts/sync-bottle-hashes.sh \"${{ env.tag }}\" \"Catalina\"\n-\n- - name: Download Big Sur bottles from the release\n- env:\n- GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n- run: gh release download \"${{ env.tag }}\" -p \"*.big_sur.bottle.tar.gz\" -D \"./Big Sur\"\n-\n- - name: Add bottle hashes to formulae\n- run: ./scripts/sync-bottle-hashes.sh \"${{ env.tag }}\" \"Big Sur\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | Remove Big Sur building from GitHub actions pipeline
Problem: Now we're building x86_64 bottles using our own infrastructure
which is based on buildkite.
Solution: Remove Big Sur building from GA pipeline configuration to
remove duplication. |
603,652 | 25.03.2022 10:00:30 | -10,800 | bd7ac6a233d3b39bd70f9f40880a9a53c8c33581 | [Chore] Hotfix 'check-bottle-built.sh'
Problem: This script returns 1 exit code in case grep fails due to
'set -e'.
Solution: Allow 'gh release view ... | grep ...' to fail by setting
'set +e' before it. | [
{
"change_type": "MODIFY",
"old_path": "scripts/check-bottle-built.sh",
"new_path": "scripts/check-bottle-built.sh",
"diff": "@@ -19,6 +19,8 @@ fi\ntag=$(sed -n \"s/^\\s\\+version \\\"\\(.*\\)\\\"/\\1/p\" \"./Formula/$1.rb\")\n+# Command below is allowed to fail\n+set +e\ngh release view \"$tag\" | grep \"$1.*\\.$2.bottle.tar.gz\"\nif [ $? -eq 0 ]; then\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix 'check-bottle-built.sh'
Problem: This script returns 1 exit code in case grep fails due to
'set -e'.
Solution: Allow 'gh release view ... | grep ...' to fail by setting
'set +e' before it. |
603,652 | 25.03.2022 19:33:56 | -10,800 | a15de31dd8746aaecb930b57de739050ec318371 | [Chore] Hotfix bottles hashes calculation
Problem: Buildkite interpolates step variables automatically. As a
result, default bash variable interpolation doesn't work.
Solution: Escape variables in the bottles hashes calculation and
uploading steps. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/generate-tags-pipeline.sh",
"new_path": ".buildkite/generate-tags-pipeline.sh",
"diff": "@@ -97,7 +97,7 @@ ymlappend \"\n- buildkite-agent artifact download \\\"*bottle.tar.gz\\\" \\\"Big Sur/\\\"\n- export FORMULA_TAG=\\\"\\$(sed -n 's/^\\s\\+version \\\"\\(.*\\)\\\"/\\1/p' ./Formula/tezos-client.rb)\\\"\n- nix-shell ./scripts/shell.nix\n- --run './scripts/sync-bottle-hashes.sh \\\"\\$FORMULA_TAG\\\" \\\"Big Sur\\\"'\n+ --run './scripts/sync-bottle-hashes.sh \\\"\\$\\$FORMULA_TAG\\\" \\\"Big Sur\\\"'\n- label: Attach bottles to the release\ndepends_on:\n- \\\"uninstall-tsp\\\"\n@@ -107,4 +107,4 @@ ymlappend \"\n- buildkite-agent artifact download \\\"*bottle.tar.gz\\\" .\n- export FORMULA_TAG=\\\"\\$(sed -n 's/^\\s\\+version \\\"\\(.*\\)\\\"/\\1/p' ./Formula/tezos-client.rb)\\\"\n- nix-shell ./scripts/shell.nix\n- --run 'gh release upload \\\"\\$FORMULA_TAG\\\" *.bottle.*'\"\n+ --run 'gh release upload \\\"\\$\\$FORMULA_TAG\\\" *.bottle.*'\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix bottles hashes calculation
Problem: Buildkite interpolates step variables automatically. As a
result, default bash variable interpolation doesn't work.
Solution: Escape variables in the bottles hashes calculation and
uploading steps. |
603,652 | 25.03.2022 19:42:40 | -10,800 | a8ee1eae316f128c937620ee17191b7f53938455 | [Chore] Add 'GITHUB_TOKEN' to 'Add bottle hashes to formulae' step
Problem: 'Add bottle hashes to formulae' step misses 'GITHUB_TOKEN' env
variable, and as a result, it cannot open GitHub PR.
Solution: Add 'GITHUB_TOKEN' env variable to this step. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-bottles.yml",
"new_path": ".github/workflows/build-bottles.yml",
"diff": "@@ -91,4 +91,6 @@ jobs:\nrun: gh release download \"${{ env.tag }}\" -p \"*.catalina.bottle.tar.gz\" -D \"./Catalina\"\n- name: Add bottle hashes to formulae\n+ env:\n+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\nrun: ./scripts/sync-bottle-hashes.sh \"${{ env.tag }}\" \"Catalina\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add 'GITHUB_TOKEN' to 'Add bottle hashes to formulae' step
Problem: 'Add bottle hashes to formulae' step misses 'GITHUB_TOKEN' env
variable, and as a result, it cannot open GitHub PR.
Solution: Add 'GITHUB_TOKEN' env variable to this step. |
603,652 | 25.03.2022 19:51:14 | -10,800 | 7925950afee08b32c9522aa00804a81e7809df5a | [Chore] Add v12.0-3 hashes to brew formulae for Big Sur | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-011-PtHangz2.rb",
"new_path": "Formula/tezos-accuser-011-PtHangz2.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAccuser011Pthangz2 < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser011Pthangz2.version}/\"\n+ sha256 cellar: :any, big_sur: \"89e911a20b202ef7ac5c2e68a5f8294130ba3473662d8328a8d0400d4d2751df\"\n+ sha256 cellar: :any, arm64_big_sur: \"2f1bda7596b64267d2b2c0d2ed0d88186cccd355f6d367625d927db38ec33a53\"\nsha256 cellar: :any, catalina: \"c173b4b5e30a53f0e58905a626aea06f5b014ed52970384dc7434b586ee73111\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-012-Psithaca.rb",
"new_path": "Formula/tezos-accuser-012-Psithaca.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAccuser012Psithaca < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser012Psithaca.version}/\"\n+ sha256 cellar: :any, big_sur: \"05f9fc4e2725fd9c4947dd9bd53b8eb23c6295a6e1c31e98b5c4706e61f6d7da\"\n+ sha256 cellar: :any, arm64_big_sur: \"0ec97b2c37cdd28bff5b1274aad2a4c02fcb46b0adf5f6a490326750f8613a95\"\nsha256 cellar: :any, catalina: \"721695c9dde4cdf73513f991b71a072efe204c116632cf4e3dcbef31deb2a5ce\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-admin-client.rb",
"new_path": "Formula/tezos-admin-client.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAdminClient < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAdminClient.version}/\"\n+ sha256 cellar: :any, big_sur: \"c79a4ad7ae8cd981c38bfcb4b5b4b808a202c497cf503c6d07b84a41e6b36866\"\n+ sha256 cellar: :any, arm64_big_sur: \"f761621b82b5c2510e9add0336de68b75e71b5eb46ba8c74ae1286879a97225d\"\nsha256 cellar: :any, catalina: \"c7e90977bd66a3c4f2c042dacdffc9f2a5129b8ffa5c2fe159e176f871d839da\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-011-PtHangz2.rb",
"new_path": "Formula/tezos-baker-011-PtHangz2.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosBaker011Pthangz2 < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker011Pthangz2.version}/\"\n+ sha256 cellar: :any, big_sur: \"49209ff19504f92514977fa87d963aaddcc017ffa969aa5a13271f4a5d18637e\"\n+ sha256 cellar: :any, arm64_big_sur: \"9d1ee6a5f204d9ce2da3991ad8675349ce869d7a23ed8fbc3072eea7590864cb\"\nsha256 cellar: :any, catalina: \"8aef5c13c11388035391fa94b5fbc0494248cd2cf3b3b7c5bade9e06318419ff\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-012-Psithaca.rb",
"new_path": "Formula/tezos-baker-012-Psithaca.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosBaker012Psithaca < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker012Psithaca.version}/\"\n+ sha256 cellar: :any, big_sur: \"852bf2e88297a15e2d9cceb84fefcd65cfbf4ebd70043d3b6c27f9a762bcf108\"\n+ sha256 cellar: :any, arm64_big_sur: \"ac34902a7d501b99ca3718c32f677ffa18e41cb203e86eee2dc5645e075ed5a6\"\nsha256 cellar: :any, catalina: \"d7c5aa52818b215047a80107c4f161312639b0a42ed0e9cda4960fa4c8d6333d\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-client.rb",
"new_path": "Formula/tezos-client.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosClient < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosClient.version}/\"\n+ sha256 cellar: :any, big_sur: \"bbda2f183fd531c3c952048abca287ec48cf26dccca15931b778b91ae13bfe7f\"\n+ sha256 cellar: :any, arm64_big_sur: \"cba5b40b7e7206852f1d3ede4e6dd9a91e04de8d3da75fac76b7d63134987d75\"\nsha256 cellar: :any, catalina: \"ee35f6325130a559c5ddeca654e8cb90eecc21aa6146ffba4c7ffcbe92438281\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-codec.rb",
"new_path": "Formula/tezos-codec.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosCodec < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosCodec.version}/\"\n+ sha256 cellar: :any, big_sur: \"dfdaeb2df8d12c1ca3a213d0d9219a77bbc36e86f2584b5afe659dac9f54b654\"\n+ sha256 cellar: :any, arm64_big_sur: \"1e72fa1c045be7730603c203790405a277bd14b1a651a63dfbd527014aa9a840\"\nsha256 cellar: :any, catalina: \"6bde95b316a911501504dc11d0f7b322883734226cc41c21df33421fa81eae3a\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-endorser-011-PtHangz2.rb",
"new_path": "Formula/tezos-endorser-011-PtHangz2.rb",
"diff": "@@ -27,6 +27,8 @@ class TezosEndorser011Pthangz2 < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosEndorser011Pthangz2.version}/\"\n+ sha256 cellar: :any, big_sur: \"639a3cd818b5562a5347adb2946dd639a810f37aa5548791b795f9f3f52d667d\"\n+ sha256 cellar: :any, arm64_big_sur: \"fbcd5ec71c77cd2cd1d06a079707a17c65c84d62d3824d29ae47e5302d99b8f6\"\nsha256 cellar: :any, catalina: \"a060f557c9c42b3fb556886411be4af5050214353848612a06d884ce12ca2447\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-node.rb",
"new_path": "Formula/tezos-node.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosNode < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosNode.version}/\"\n+ sha256 cellar: :any, big_sur: \"8f69271ba2c77aae5eec6533556283a8b180094a67f43acb6c399a6feeb2b5c8\"\n+ sha256 cellar: :any, arm64_big_sur: \"e95189cc34ca8ab783c638c1951b7a209c2a4c2122f96ee27b7aa88826fef1e4\"\nsha256 cellar: :any, catalina: \"c1d5fe2b9af9c420c5983e3330043adecf82f880dd0ac9348cc0b9957c8c65bb\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-sandbox.rb",
"new_path": "Formula/tezos-sandbox.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosSandbox < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosSandbox.version}/\"\n+ sha256 cellar: :any, big_sur: \"4ce06800728f2ea8489971c3f9dcfce6e528df7b1b0f85e4cbec3f661091f233\"\n+ sha256 cellar: :any, arm64_big_sur: \"6ed4886e8cf4d685bd5380fa1ef1b9b80cd30ea3367d95b91f92b5f32dad0f8b\"\nsha256 cellar: :any, catalina: \"1c991eee17f93853d52ffe9d8fc43561041e1c02e772eccb8a3847753327cf24\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-signer.rb",
"new_path": "Formula/tezos-signer.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosSigner < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosSigner.version}/\"\n+ sha256 cellar: :any, big_sur: \"3de2ea46991a3dfd070e0f00b2407329bc13e55ca9a67dc0851a3bb96421304b\"\n+ sha256 cellar: :any, arm64_big_sur: \"20a02372268cd045a85cba2cbbf862966579b8ec698e4729040913654ac4074d\"\nsha256 cellar: :any, catalina: \"12e8c657f22d4f602e7f1c2f97811cc18832bb55f4e0802a2410d0bb13019147\"\nend\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add v12.0-3 hashes to brew formulae for Big Sur |
603,652 | 30.03.2022 15:41:03 | -10,800 | 093f02b1575dc2fa97b31f2cb47573cb500ac653 | [Chore] Update 'build-via-docker' step
Problem: Server on which 'build-via-docker' step is run was updated and
now uses new interface for nix commands.
Solution: Update 'build-via-docker' step command by replacing 'nix run'
with 'nix shell'. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -50,7 +50,7 @@ steps:\n- eval \"$SET_VERSION\"\n- cd docker\n- ./docker-static-build.sh\n- - nix run -f.. pkgs.upx -c upx tezos-*\n+ - nix shell -f.. pkgs.upx -c upx tezos-*\nartifact_paths:\n- ./docker/tezos-*\nagents:\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update 'build-via-docker' step
Problem: Server on which 'build-via-docker' step is run was updated and
now uses new interface for nix commands.
Solution: Update 'build-via-docker' step command by replacing 'nix run'
with 'nix shell'. |
603,652 | 30.03.2022 21:21:28 | -10,800 | 366cd30a4ae6bebc38a4744019d9a4a4512b448c | [Chore] Fix 'MIRROR_REPO' variable interpolation
Problem: 'MIRROR_REPO' is a runtime step variable. As a result
'$MIRROR_REPO' interpolation returns empty string, see
Solution: Escape '$' character. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -185,7 +185,7 @@ steps:\nMIRROR_REPO: \"git@github.com:serokell/tezos-packaging-stable.git\"\ncommands: &update_mirror\n- git pull origin \"$BUILDKITE_BRANCH:$BUILDKITE_BRANCH\"\n- - git push --mirror \"$MIRROR_REPO\"\n+ - git push --mirror \"$$MIRROR_REPO\"\n- label: update RC mirror repository\nif: |\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix 'MIRROR_REPO' variable interpolation
Problem: 'MIRROR_REPO' is a runtime step variable. As a result
'$MIRROR_REPO' interpolation returns empty string, see
https://buildkite.com/docs/pipelines/environment-variables#runtime-variable-interpolation.
Solution: Escape '$' character. |
603,652 | 28.03.2022 15:51:00 | -10,800 | 4b46c6209c56287977cf703a9007064007389717 | [Chore] Fix systemd service generation instructions
Problem: We provide a way to generate systemd services for running Octez
binaries in the background separately from Ubuntu/Fedora packages. But
currently, these instructions are a bit outdated.
Solution: Update them to reflect the actual 'gen_systemd_service_file.py' behaviour. | [
{
"change_type": "MODIFY",
"old_path": "docs/systemd.md",
"new_path": "docs/systemd.md",
"diff": "@@ -39,19 +39,18 @@ from scratch.\nFor this you'll need a `.service` file to define each systemd service.\nThe easiest way to get one is to run [`gen_systemd_service_file.py`](../gen_systemd_service_file.py).\n-You should specify the service name as an argument. Note that there are two\n-predefined services for `tezos-node`: `tezos-node-{mainnet, hangzhounet}`.\n+You should specify the binary name as an argument.\nE.g.:\n```\n-./gen_systemd_service_file.py tezos-node-mainnet\n+./gen_systemd_service_file.py tezos-node\n# or\n./gen_systemd_service_file.py tezos-baker-011-PtHangz2\n```\n-After that you'll have a `.service` file in the current directory.\n+After that you'll have `.service` files in the current directory.\n-Apart from the `.service` file you'll need the service startup script and default\n-configuration file, they can be found in the [`scripts`](../docker/package/scripts) and\n+Apart from these `.service` files you'll need the services' startup scripts and default\n+configuration files, they can be found in the [`scripts`](../docker/package/scripts) and\n[`defaults`](../docker/package/defaults) folders respectively.\n## Systemd units on WSL\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix systemd service generation instructions
Problem: We provide a way to generate systemd services for running Octez
binaries in the background separately from Ubuntu/Fedora packages. But
currently, these instructions are a bit outdated.
Solution: Update them to reflect the actual 'gen_systemd_service_file.py' behaviour. |
603,652 | 28.03.2022 16:06:30 | -10,800 | 35282970701106dab5f51499add34c9dfe164bdc | Mention protocol switch-over in the baking doc
Problem: Protocol switch-over requires users to run two sets of daemons.
Our baking doc should mention how `tezos-baking` services handle it.
Solution: Add a section to the baking doc which mentions that
`tezos-baking` package handles this requirement. | [
{
"change_type": "MODIFY",
"old_path": "docs/baking.md",
"new_path": "docs/baking.md",
"diff": "@@ -79,6 +79,15 @@ Packages for `tezos-node`, `tezos-baker-<proto>` and `tezos-endorser-<proto>` pr\nsystemd units for running the corresponding binaries in the background, these units\nare orchestrated by the `tezos-baking-<network>` units.\n+## Packages and protocols updates\n+\n+In order to have a safe transition during a new protocol activation on mainnet,\n+it's required to run two sets of daemons: for the current and for the upcoming protocol.\n+\n+`tezos-baking` package aims to provide such a setup. This package is updated some time before\n+the new protocol is activated (usually 1-2 weeks) to run daemons for two protocols. Once the new\n+protocol is activated, the `tezos-baking` package is updated again to stop running daemons for the old protocol.\n+\n## Using the wizard\nIf at this point you want to set up the baking instance, or just a node, using the wizard, run:\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#421] Mention protocol switch-over in the baking doc
Problem: Protocol switch-over requires users to run two sets of daemons.
Our baking doc should mention how `tezos-baking` services handle it.
Solution: Add a section to the baking doc which mentions that
`tezos-baking` package handles this requirement. |
603,652 | 31.03.2022 12:40:22 | -10,800 | 112d1192e5f91a0f12a6be822305c7c1606aaeca | [Chore] Fix 'Attach bottles to the release' dependencies
Problem: Currently this step depends on non-architecture specific
step 'uninstall-tsp' which is no longer present.
Solution: Make it depend on arch-specific uninstall-tsp steps. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/generate-tags-pipeline.sh",
"new_path": ".buildkite/generate-tags-pipeline.sh",
"diff": "@@ -87,10 +87,11 @@ done\nymlappend \"\n- label: Add Big Sur bottle hashes to formulae\n- depends_on:\n- - \\\"uninstall-tsp-arm64\\\"\n- - \\\"uninstall-tsp-x86_64\\\"\n- if: build.tag =~ /^v.*/\n+ depends_on:\"\n+for arch in \"${architecture[@]}\"; do\n+ ymlappend \" - \\\"uninstall-tsp-$arch\\\"\"\n+done\n+ ymlappend \" if: build.tag =~ /^v.*/\nsoft_fail: true # No artifacts to download if all the bottles are already built\ncommands:\n- mkdir -p \\\"Big Sur\\\"\n@@ -99,9 +100,11 @@ ymlappend \"\n- nix-shell ./scripts/shell.nix\n--run './scripts/sync-bottle-hashes.sh \\\"\\$\\$FORMULA_TAG\\\" \\\"Big Sur\\\"'\n- label: Attach bottles to the release\n- depends_on:\n- - \\\"uninstall-tsp\\\"\n- if: build.tag =~ /^v.*/\n+ depends_on:\"\n+for arch in \"${architecture[@]}\"; do\n+ ymlappend \" - \\\"uninstall-tsp-$arch\\\"\"\n+done\n+ ymlappend \" if: build.tag =~ /^v.*/\nsoft_fail: true # No artifacts to download if all the bottles are already built\ncommands:\n- buildkite-agent artifact download \\\"*bottle.tar.gz\\\" .\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix 'Attach bottles to the release' dependencies
Problem: Currently this step depends on non-architecture specific
step 'uninstall-tsp' which is no longer present.
Solution: Make it depend on arch-specific uninstall-tsp steps. |
603,658 | 23.03.2022 13:43:30 | -3,600 | d1a958dbce589d15af7ae9f7af14e922bf0c6800 | Adjust docs for choosing network from CLI
Problem: the voting documentation doesn't mention you should use
the CL argument for choosing a custom network.
Solution: added the clarification and an example. | [
{
"change_type": "MODIFY",
"old_path": "docs/voting.md",
"new_path": "docs/voting.md",
"diff": "@@ -35,5 +35,11 @@ documented [here](./baking.md#using-a-custom-chain).\nAfter the custom baking instance is fully set up, you can vote or propose amendments on it by running:\n```bash\n-tezos-voting-wizard\n+tezos-voting-wizard --network <custom-network-name>\n+```\n+\n+E.g. if you have a custom baking instance `tezos-baking-custom@voting`, you can run:\n+\n+```bash\n+tezos-voting-wizard --network voting\n```\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#402] Adjust docs for choosing network from CLI
Problem: the voting documentation doesn't mention you should use
the CL argument for choosing a custom network.
Solution: added the clarification and an example. |
603,658 | 04.04.2022 20:56:29 | -7,200 | 0bebc559f266b91bb35c6766f0260498d2994f40 | Reset release number in automated releases
Problem: our Octez distribution releases are mostly automated, but
we still have to automatically reset the release number if we have
made manual releases in the meantime.
Solution: added making another commit that resets the release number
to 1 to the automated initial PR process. | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -37,13 +37,19 @@ if [[ \"$latest_upstream_tag\" != \"$our_tezos_tag\" ]]; then\nif ! git rev-parse --verify \"$branch_name\"; then\ngit switch -c \"$branch_name\"\necho \"Updating Tezos to $latest_upstream_tag\"\n+\ncd nix\nniv update tezos -a ref=\"refs/tags/$latest_upstream_tag\" -a rev=\"$latest_upstream_tag_hash\"\nniv update opam-repository -a rev=\"$opam_repository_tag\" -a ref=\"$opam_repository_branch\" -b \"$opam_repository_branch\"\ngit commit -a -m \"[Chore] Bump Tezos sources to $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\n+\ncd ..\n./scripts/update-brew-formulae.sh \"$latest_upstream_tag-1\"\ngit commit -a -m \"[Chore] Update brew formulae for $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\n+\n+ sed -i 's/\"release\": \"[0-9]\\+\"/\"release\": \"1\"/' ./meta.json\n+ git commit -a -m \"[Chore] Reset release number for $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\n+\ngit push --set-upstream origin \"$branch_name\"\ngh pr create -B master -t \"[Chore] $latest_upstream_tag release\" -F .github/release_pull_request_template.md\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#431] Reset release number in automated releases
Problem: our Octez distribution releases are mostly automated, but
we still have to automatically reset the release number if we have
made manual releases in the meantime.
Solution: added making another commit that resets the release number
to 1 to the automated initial PR process. |
603,652 | 07.04.2022 17:40:45 | -10,800 | 5bb2638c47d15c205a0adc55f380f82adf52616f | Hotfix 'update-tezos.sh'
Problem: An attempt to commit empty changes for release number update
causes 'update-tezos.sh' script to fail. This may happen when we didn't
make any additional releases since the last Octez release.
Solution: Allow this step to fail and print a message that release
number wasn't updated. | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -48,7 +48,9 @@ if [[ \"$latest_upstream_tag\" != \"$our_tezos_tag\" ]]; then\ngit commit -a -m \"[Chore] Update brew formulae for $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\nsed -i 's/\"release\": \"[0-9]\\+\"/\"release\": \"1\"/' ./meta.json\n- git commit -a -m \"[Chore] Reset release number for $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\n+ # Commit may fail when release number wasn't updated since the last release\n+ git commit -a -m \"[Chore] Reset release number for $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\" || \\\n+ echo \"release number wasn't updated\"\ngit push --set-upstream origin \"$branch_name\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#431] Hotfix 'update-tezos.sh'
Problem: An attempt to commit empty changes for release number update
causes 'update-tezos.sh' script to fail. This may happen when we didn't
make any additional releases since the last Octez release.
Solution: Allow this step to fail and print a message that release
number wasn't updated. |
603,650 | 07.04.2022 18:33:16 | -7,200 | 5deb8ab41b17ac2a3025feb6e3c34ec80922b629 | [Chore] Remove hangzhou from mainnet baking service
Problem: ithaca has been activated on mainnet, so there is no
longer need to run its daemons in the mainnet baking service.
Solution: Remove hangzhou from the mainnet baking service. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -14,7 +14,7 @@ from .systemd import Service, ServiceFile, SystemdUnit, Unit, Install\nnetworks = [\"mainnet\", \"hangzhounet\", \"ithacanet\"]\nnetworks_protos = {\n- \"mainnet\": [\"011-PtHangz2\", \"012-Psithaca\"],\n+ \"mainnet\": [\"012-Psithaca\"],\n\"hangzhounet\": [\"011-PtHangz2\"],\n\"ithacanet\": [\"012-Psithaca\"],\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove hangzhou from mainnet baking service
Problem: ithaca has been activated on mainnet, so there is no
longer need to run its daemons in the mainnet baking service.
Solution: Remove hangzhou from the mainnet baking service. |
603,658 | 14.04.2022 16:25:10 | -7,200 | 5068655862b590e3989abf95bf46d49cc5295623 | Support remote signers in setup wizard
Problem: one of the options for key management is using remote
signers. However, Tezos Setup Wizard currently doesn't support it.
Solution: added remote as one of the options for key import. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -42,6 +42,7 @@ snapshot_import_modes = {\nkey_import_modes = {\n\"ledger\": \"From a ledger\",\n\"secret-key\": \"Either the unencrypted or password-encrypted secret key for your address\",\n+ \"remote\": \"Remote key governed by a signer running on a different machine\",\n\"json\": \"Faucet JSON file from https://teztnets.xyz/\",\n}\n@@ -63,7 +64,6 @@ TMP_SNAPSHOT_LOCATION = \"/tmp/tezos_node.snapshot\"\n# Regexes\nledger_regex = b\"ledger:\\/\\/[\\w\\-]+\\/[\\w\\-]+\\/[\\w']+\\/[\\w']+\"\n-secret_key_regex = b\"(encrypted|unencrypted):(?:\\w{54}|\\w{88})\"\naddress_regex = b\"tz[123]\\w{33}\"\nderivation_path_regex = b\"(?:bip25519|ed25519|secp256k1|P-256)\\/[0-9]+h\\/[0-9]+h\"\n@@ -257,6 +257,15 @@ secret_key_query = Step(\nvalidator=Validator([required_field_validator, secret_key_validator]),\n)\n+remote_signer_uri_query = Step(\n+ id=\"remote_signer_uri\",\n+ prompt=\"Provide your remote key with the address of the signer.\",\n+ help=\"The format is the address of your remote signer host, followed by a public key,\\n\"\n+ \"i.e. something like http://127.0.0.1:6732/tz1V8fDHpHzN8RrZqiYCHaJM9EocsYZch5Cy\\n\"\n+ \"The supported schemes are https, http, tcp, and unix.\",\n+ validator=Validator([required_field_validator, signer_uri_validator]),\n+)\n+\njson_filepath_query = Step(\nid=\"json_filepath\",\nprompt=\"Provide the path to your downloaded faucet JSON file.\",\n@@ -511,7 +520,15 @@ class Setup(Setup):\nf\"show address {baker_alias} --show-secret\"\n)\nif address.returncode == 0:\n- value_regex = b\"(?:\" + ledger_regex + b\")|(?:\" + secret_key_regex + b\")\"\n+ value_regex = (\n+ b\"(?:\"\n+ + ledger_regex\n+ + b\")|(?:\"\n+ + secret_key_regex\n+ + b\")|(?:remote\\:\"\n+ + address_regex\n+ + b\")\"\n+ )\nvalue = re.search(value_regex, address.stdout).group(0)\naddress = re.search(address_regex, address.stdout).group(0)\nprint()\n@@ -525,6 +542,14 @@ class Setup(Setup):\nelse:\nreturn True\n+ def fill_remote_signer_infos(self):\n+ self.query_step(remote_signer_uri_query)\n+\n+ rsu = re.search(signer_uri_regex.decode(), self.config[\"remote_signer_uri\"])\n+\n+ self.config[\"remote_host\"] = rsu.group(1)\n+ self.config[\"remote_key\"] = rsu.group(2)\n+\n# Importing the baker key\ndef import_baker_key(self):\nbaker_alias = self.config[\"baker_alias\"]\n@@ -549,6 +574,14 @@ class Setup(Setup):\nf\"sudo -u tezos {suppress_warning_text} tezos-client {tezos_client_options} \"\nf\"import secret key {baker_alias} {self.config['secret_key']} --force\"\n)\n+ elif self.config[\"key_import_mode\"] == \"remote\":\n+ self.fill_remote_signer_infos()\n+\n+ tezos_client_options = self.get_tezos_client_options()\n+ proc_call(\n+ f\"sudo -u tezos {suppress_warning_text} tezos-client {tezos_client_options} \"\n+ f\"import secret key {baker_alias} remote:{self.config['remote_key']} --force\"\n+ )\nelif self.config[\"key_import_mode\"] == \"json\":\nself.query_step(json_filepath_query)\njson_tmp_path = shutil.copy(\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/wizard_structure.py",
"new_path": "docker/package/wizard_structure.py",
"diff": "@@ -18,6 +18,7 @@ secret_key_regex = b\"(encrypted|unencrypted):(?:\\w{54}|\\w{88})\"\nprotocol_hash_regex = (\nb\"P[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{50}\"\n)\n+signer_uri_regex = b\"((?:tcp|unix|https|http):\\/\\/.+)\\/(tz[123]\\w{33})\\/?\"\n# Input validators\n@@ -87,7 +88,7 @@ def secret_key_validator(input):\nmatch = re.match(secret_key_regex.decode(\"utf-8\"), input.strip())\nif not bool(match):\nraise ValueError(\n- \"The input doesn't match the format for the Tezos secret key: \"\n+ \"The input doesn't match the format for a Tezos secret key: \"\n\"{{encrypted, unencrypted}:<base58 encoded string with length 54 or 88>}\"\n\"\\nPlease check the input and try again.\"\n)\n@@ -97,12 +98,26 @@ def secret_key_validator(input):\n# To be validated, the input should adhere to the derivation path format:\n# [0-9]+h/[0-9]+h\ndef derivation_path_validator(input):\n- match = re.match(b\"[0-9]+h\\/[0-9]+h\".decode(\"utf-8\"), input.strip())\n+ derivation_path_regex_str = \"[0-9]+h\\/[0-9]+h\"\n+ match = re.match(derivation_path_regex_str, input.strip())\nif not bool(match):\nraise ValueError(\n- \"The input doesn't match the format for the derivation path: \"\n- \"'[0-9]+h/[0-9]+h'\"\n- \"\\nPlease check the input and try again.\"\n+ \"The input doesn't match the format for a derivation path: \"\n+ + derivation_path_regex_str\n+ + \"\\nPlease check the input and try again.\"\n+ )\n+ return input\n+\n+\n+# To be validated, the input should adhere to the signer URI format:\n+# (tcp|unix|https|http)://<host address>/tz[123]\\w{33}\n+def signer_uri_validator(input):\n+ match = re.match(signer_uri_regex.decode(\"utf-8\"), input.strip())\n+ if not bool(match):\n+ raise ValueError(\n+ \"The input doesn't match the format for a remote signer URI: \"\n+ + \"(tcp|unix|https|http)://<host address>/<public key address>\"\n+ + \"\\nPlease check the input and try again.\"\n)\nreturn input\n@@ -114,7 +129,7 @@ def protocol_hash_validator(input):\nmatch = re.match(proto_hash_regex_str, input.strip())\nif not bool(match):\nraise ValueError(\n- \"The input doesn't match the format for the protocol hash: \"\n+ \"The input doesn't match the format for a protocol hash: \"\n+ proto_hash_regex_str\n+ \"\\nPlease check the input and try again.\"\n)\n@@ -338,12 +353,13 @@ class Setup:\nprint(\"The services won't restart on boot.\")\ndef get_tezos_client_options(self):\n- return (\n- \"--base-dir \"\n- + self.config[\"client_data_dir\"]\n- + \" --endpoint \"\n- + self.config[\"node_rpc_addr\"]\n+ options = (\n+ f\"--base-dir {self.config['client_data_dir']} \"\n+ f\"--endpoint {self.config['node_rpc_addr']}\"\n)\n+ if \"remote_host\" in self.config:\n+ options += f\" -R '{self.config['remote_host']}'\"\n+ return options\ndef fill_baking_config(self):\nnet = self.config[\"network\"]\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#397] Support remote signers in setup wizard
Problem: one of the options for key management is using remote
signers. However, Tezos Setup Wizard currently doesn't support it.
Solution: added remote as one of the options for key import. |
603,659 | 25.04.2022 19:16:54 | -10,800 | 560500fe6022158028ab3369fe6c24f542342883 | Support testnets in the voting wizards
Problem: Currently the voting wizard supports mainnet and custom networks, but not testnets.
Solution: Add support for the testnets. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -19,12 +19,6 @@ from wizard_structure import *\n# Global options\n-networks = {\n- \"mainnet\": \"Main Tezos network\",\n- \"hangzhounet\": \"Test network using version 011 of Tezos protocol (Hangzhou)\",\n- \"ithacanet\": \"Test network using version 012 of Tezos protocol (Ithaca2)\",\n-}\n-\nmodes = {\n\"baking\": \"Set up and start all services for baking: \"\n\"tezos-node, tezos-baker, and tezos-endorser.\",\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_voting_wizard.py",
"new_path": "docker/package/tezos_voting_wizard.py",
"diff": "@@ -22,7 +22,6 @@ ballot_outcomes = {\n\"pass\": \"Submit a vote not influencing the result but contributing to quorum\",\n}\n-\n# Command line argument parsing\nparser.add_argument(\n@@ -30,7 +29,7 @@ parser.add_argument(\nrequired=False,\ndefault=\"mainnet\",\nhelp=\"Name of the network to vote on. Is 'mainnet' by default, \"\n- \"but can take the (part after @) name of any custom instance. \"\n+ \"but can be a testnet or the (part after @) name of any custom instance. \"\n\"For example, to use the tezos-baking-custom@voting service, input 'voting'. \"\n\"You need to already have set up the custom network using systemd services.\",\n)\n@@ -260,8 +259,8 @@ class Setup(Setup):\nself.import_key(key_mode_query)\ndef get_network(self):\n- if parsed_args.network == \"mainnet\":\n- self.config[\"network\"] = \"mainnet\"\n+ if parsed_args.network in networks.keys():\n+ self.config[\"network\"] = parsed_args.network\nelse:\n# TODO: maybe check/validate this\nself.config[\"network\"] = \"custom@\" + parsed_args.network\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/wizard_structure.py",
"new_path": "docker/package/wizard_structure.py",
"diff": "@@ -234,6 +234,12 @@ key_import_modes = {\n\"json\": \"Faucet JSON file from https://teztnets.xyz/\",\n}\n+networks = {\n+ \"mainnet\": \"Main Tezos network\",\n+ \"hangzhounet\": \"Test network using version 011 of Tezos protocol (Hangzhou)\",\n+ \"ithacanet\": \"Test network using version 012 of Tezos protocol (Ithaca2)\",\n+}\n+\n# Wizard CLI skeleton\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/voting.md",
"new_path": "docs/voting.md",
"diff": "@@ -43,3 +43,11 @@ E.g. if you have a custom baking instance `tezos-baking-custom@voting`, you can\n```bash\ntezos-voting-wizard --network voting\n```\n+\n+## Using testnets\n+\n+`tezos-voting-wizard` also supports voting on currently running testnets, for example:\n+\n+```bash\n+tezos-voting-wizard --network ithacanet\n+```\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#442] Support testnets in the voting wizards
Problem: Currently the voting wizard supports mainnet and custom networks, but not testnets.
Solution: Add support for the testnets. |
603,658 | 27.04.2022 19:49:03 | -7,200 | e2acc2389ce07c7454e5425761ecfc439397cd43 | [Chore] Update the tests/voting doc
Problem: the voting wizard has undergone some changes since the
document describing how to test voting with a local-chain instance
was written, so there are a couple obsolete details.
Solution: updated the doc. | [
{
"change_type": "MODIFY",
"old_path": "docs/tests/voting.md",
"new_path": "docs/tests/voting.md",
"diff": "@@ -17,7 +17,7 @@ amendment periods.\n1) Generate a pair of keys associated with `baker` alias:\n-```\n+```bash\nsudo -u tezos tezos-client gen keys baker\n```\n@@ -29,10 +29,12 @@ This script will provide you a path to the node config that will be used by the\n4) Create a config for the custom baking service that will be used by the voting wizard:\n-```\n+```bash\nsudo cp /etc/default/tezos-baking-custom@ /etc/default/tezos-baking-custom@voting\n```\n+\nEdit with the config provided by the voting script on the second step:\n+\n```\nDATA_DIR=\"/var/lib/tezos/.tezos-client\"\nNODE_RPC_ENDPOINT=\"http://localhost:8732\"\n@@ -46,19 +48,21 @@ be triggered once custom baking service will be stopped.\n5) Start custom baking service:\n-```\n+```bash\nsudo systemctl start tezos-baking-custom@voting\n```\nNote that `tezos-node` service may take some time to generate a fresh identity and start.\nTo check the status of the node service run:\n-```\n+\n+```bash\nsystemctl status tezos-node-custom@voting\n```\n6) Register `baker` key as delegate once `tezos-node` is up and running:\n-```\n+\n+```bash\nsudo -u tezos tezos-client register key baker as delegate\n```\n@@ -66,12 +70,19 @@ sudo -u tezos tezos-client register key baker as delegate\nThe script will stop at the beginning of each voting period that requires voting and ask you to vote.\n-Launch `tezos-voting-wizard`, select `custom` network with `voting` name and submit your vote.\n+Launch the wizard by running:\n+\n+```bash\n+tezos-voting-wizard --network voting\n+```\n+\nUnder normal conditions, you won't have to adjust any information about your baking service.\n+Confirm the information and submit your vote.\nOnce you'll vote, you should prompt the `voting.py` script to continue going through the voting cycle.\n8) Stop custom baking service once voting cycle is over:\n-```\n+\n+```bash\nsudo systemctl stop tezos-baking-custom@voting\n```\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update the tests/voting doc
Problem: the voting wizard has undergone some changes since the
document describing how to test voting with a local-chain instance
was written, so there are a couple obsolete details.
Solution: updated the doc. |
603,652 | 26.04.2022 15:48:36 | -10,800 | e0cae875ba7e73ded6acf10bdf03f39c6f1dc5c8 | [Chore] Fix opam-repository branch detection
Problem: Currently 'git name-rev' is used to determine the upstream
opam-repository branch. However, in some cases it may return rev
that is not a valid branch name.
Solution: Use 'git for-each-ref' instead to deduce opam-repository
branch name. | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -24,7 +24,7 @@ cd ..\nrm -rf upstream-repo\ngit clone --bare https://gitlab.com/tezos/opam-repository.git upstream-opam-repository\n-opam_repository_branch=\"$(git --git-dir=upstream-opam-repository name-rev --name-only \"$opam_repository_tag\" | cut -d'/' -f3)\"\n+opam_repository_branch=\"$(git --git-dir=upstream-opam-repository for-each-ref --contains \"$opam_repository_tag\" --count=1 --sort='-refname' --format=\"%(refname:lstrip=3)\" refs/remotes/origin)\"\"\nrm -rf upstream-opam-repository\nbranch_name=\"auto/$latest_upstream_tag-release\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix opam-repository branch detection
Problem: Currently 'git name-rev' is used to determine the upstream
opam-repository branch. However, in some cases it may return rev
that is not a valid branch name.
Solution: Use 'git for-each-ref' instead to deduce opam-repository
branch name. |
603,652 | 27.04.2022 15:26:07 | -10,800 | 1b78f3a25977985e017a6668eeb22f3a6f69b36f | [Chore] Bump opam-nix
To propagate stublibs fix. | [
{
"change_type": "MODIFY",
"old_path": "nix/nix/sources.json",
"new_path": "nix/nix/sources.json",
"diff": "\"homepage\": null,\n\"owner\": \"tweag\",\n\"repo\": \"opam-nix\",\n- \"rev\": \"f20ed19391752fe8cf505945dce776ce0ffa48a2\",\n- \"sha256\": \"0j27nwqc88grz3zfwg3f62xj5cn57dmm3qrrzr9i3j2rkw0npkhz\",\n+ \"rev\": \"44b97c71a379bb9517135600c7d5e83d941e65d9\",\n+ \"sha256\": \"07cqkfgm2kzwb79y3gwrwqgmj4sszw2lrybqyv9vwwqkiwvbj7xc\",\n\"type\": \"tarball\",\n- \"url\": \"https://github.com/tweag/opam-nix/archive/f20ed19391752fe8cf505945dce776ce0ffa48a2.tar.gz\",\n+ \"url\": \"https://github.com/tweag/opam-nix/archive/44b97c71a379bb9517135600c7d5e83d941e65d9.tar.gz\",\n\"url_template\": \"https://github.com/<owner>/<repo>/archive/<rev>.tar.gz\"\n},\n\"opam-repository\": {\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Bump opam-nix
To propagate stublibs fix. |
603,652 | 28.04.2022 15:54:33 | -10,800 | ec20c6a6006df2d2e00e01a486ccb8d97c151ab8 | [Chore] Remove optional opam dependencies handling
Problem: Our native packaging doesn't depend on Octez opam packages
since However, there is a leftover 'optional_opam_deps' field
in 'TezosBinaryPackage' class.
Solution: Remove this leftover. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -188,7 +188,6 @@ class TezosBinaryPackage(AbstractPackage):\ndune_filepath: str,\nsystemd_units: List[SystemdUnit] = [],\ntarget_proto: str = None,\n- optional_opam_deps: List[str] = [],\npostinst_steps: str = \"\",\npostrm_steps: str = \"\",\nadditional_native_deps: List[str] = [],\n@@ -197,7 +196,6 @@ class TezosBinaryPackage(AbstractPackage):\nself.desc = desc\nself.systemd_units = systemd_units\nself.target_proto = target_proto\n- self.optional_opam_deps = optional_opam_deps\nself.postinst_steps = postinst_steps\nself.postrm_steps = postrm_steps\nself.additional_native_deps = additional_native_deps\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -127,7 +127,6 @@ packages = [\n\"tezos-client\",\n\"CLI client for interacting with tezos blockchain\",\nmeta=packages_meta,\n- optional_opam_deps=[\"tls\", \"ledgerwallet-tezos\"],\nadditional_native_deps=[\"tezos-sapling-params\", \"udev\"],\npostinst_steps=ledger_udev_postinst,\ndune_filepath=\"src/bin_client/main_client.exe\",\n@@ -136,14 +135,12 @@ packages = [\n\"tezos-admin-client\",\n\"Administration tool for the node\",\nmeta=packages_meta,\n- optional_opam_deps=[\"tls\"],\ndune_filepath=\"src/bin_client/main_admin.exe\",\n),\nTezosBinaryPackage(\n\"tezos-signer\",\n\"A client to remotely sign operations or blocks\",\nmeta=packages_meta,\n- optional_opam_deps=[\"tls\", \"ledgerwallet-tezos\"],\nadditional_native_deps=[\"udev\"],\nsystemd_units=signer_units,\npostinst_steps=ledger_udev_postinst,\n@@ -253,15 +250,6 @@ packages.append(\n\"Entry point for initializing, configuring and running a Tezos node\",\nmeta=packages_meta,\nsystemd_units=node_units,\n- optional_opam_deps=[\n- \"tezos-embedded-protocol-001-PtCJ7pwo\",\n- \"tezos-embedded-protocol-002-PsYLVpVv\",\n- \"tezos-embedded-protocol-003-PsddFKi3\",\n- \"tezos-embedded-protocol-004-Pt24m4xi\",\n- \"tezos-embedded-protocol-005-PsBABY5H\",\n- \"tezos-embedded-protocol-005-PsBabyM1\",\n- \"tezos-embedded-protocol-006-PsCARTHA\",\n- ],\npostinst_steps=node_postinst_steps,\npostrm_steps=node_postrm_steps,\nadditional_native_deps=[\"tezos-sapling-params\"],\n@@ -387,7 +375,6 @@ for proto in active_protocols:\n),\n],\ntarget_proto=proto,\n- optional_opam_deps=[\"tls\", \"ledgerwallet-tezos\"],\npostinst_steps=daemon_postinst_common + ledger_udev_postinst,\nadditional_native_deps=[\n\"tezos-sapling-params\",\n@@ -418,7 +405,6 @@ for proto in active_protocols:\n),\n],\ntarget_proto=proto,\n- optional_opam_deps=[\"tls\", \"ledgerwallet-tezos\"],\nadditional_native_deps=[\"udev\"],\npostinst_steps=daemon_postinst_common + ledger_udev_postinst,\ndune_filepath=f\"src/proto_{proto_snake_case}/bin_accuser/main_accuser_{proto_snake_case}.exe\",\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove optional opam dependencies handling
Problem: Our native packaging doesn't depend on Octez opam packages
since #290. However, there is a leftover 'optional_opam_deps' field
in 'TezosBinaryPackage' class.
Solution: Remove this leftover. |
603,652 | 02.05.2022 09:16:47 | -10,800 | 946acb560fe50fbff7ddacb27a1b3fb2ba8098a3 | [Chore] Fixup tezos-baker-013-PtJakart.rb
Problem: Startup script for 'tezos-baker-013-PtJakart.rb' is written to
non-existing path. This causes build to fail.
Solution: Fix startup script path. | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-013-PtJakart.rb",
"new_path": "Formula/tezos-baker-013-PtJakart.rb",
"diff": "@@ -87,7 +87,7 @@ class TezosBaker013Ptjakart < Formula\nlaunch_baker \"$BAKER_ACCOUNT\"\nfi\nEOS\n- File.write(\"tezos-baker-013-PtJakart\", startup_contents)\n+ File.write(\"tezos-baker-013-PtJakart-start\", startup_contents)\nbin.install \"tezos-baker-013-PtJakart-start\"\nmake_deps\ninstall_template \"src/proto_013_PtJakart/bin_baker/main_baker_013_PtJakart.exe\",\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fixup tezos-baker-013-PtJakart.rb
Problem: Startup script for 'tezos-baker-013-PtJakart.rb' is written to
non-existing path. This causes build to fail.
Solution: Fix startup script path. |
603,652 | 02.05.2022 12:12:09 | -10,800 | 166391ebb7616fa6d2e74238e2fe83db80492a57 | Add 'netbase' to 'tezos-node' package deps
Problem: 'tezos-node' fails with 'Failure "resolution failed: unknown scheme"'
inside fresh Ubuntu docker container when it attempts to resolve some URL.
Solution: Add 'netbase' dependency to Ubuntu 'tezos-node' package. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -202,6 +202,13 @@ class TezosBinaryPackage(AbstractPackage):\nself.meta = meta\nself.dune_filepath = dune_filepath\n+ def __get_os_specific_native_deps(self, os_name):\n+ return [\n+ x[os_name] if (isinstance(x, dict)) else x\n+ for x in self.additional_native_deps\n+ if isinstance(x, str) or (isinstance(x, dict) and os_name in x.keys())\n+ ]\n+\ndef fetch_sources(self, out_dir):\nos.makedirs(out_dir)\nos.chdir(out_dir)\n@@ -233,7 +240,9 @@ class TezosBinaryPackage(AbstractPackage):\ndef gen_control_file(self, deps, ubuntu_version, out):\nstr_build_deps = \", \".join(deps)\n- str_additional_native_deps = \", \".join(self.additional_native_deps)\n+ str_additional_native_deps = \", \".join(\n+ self.__get_os_specific_native_deps(\"ubuntu\")\n+ )\nfile_contents = f\"\"\"\nSource: {self.name.lower()}\nSection: utils\n@@ -254,7 +263,9 @@ Description: {self.desc}\ndef gen_spec_file(self, build_deps, run_deps, out):\nbuild_requires = \" \".join(build_deps)\nrequires = \" \".join(run_deps)\n- str_additional_native_deps = \", \".join(self.additional_native_deps)\n+ str_additional_native_deps = \", \".join(\n+ self.__get_os_specific_native_deps(\"fedora\")\n+ )\n(\nsystemd_deps,\nsystemd_install,\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -252,7 +252,7 @@ packages.append(\nsystemd_units=node_units,\npostinst_steps=node_postinst_steps,\npostrm_steps=node_postrm_steps,\n- additional_native_deps=[\"tezos-sapling-params\"],\n+ additional_native_deps=[\"tezos-sapling-params\", {\"ubuntu\": \"netbase\"}],\ndune_filepath=\"src/bin_node/main.exe\",\n)\n)\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#451] Add 'netbase' to 'tezos-node' package deps
Problem: 'tezos-node' fails with 'Failure "resolution failed: unknown scheme"'
inside fresh Ubuntu docker container when it attempts to resolve some URL.
Solution: Add 'netbase' dependency to Ubuntu 'tezos-node' package. |
603,652 | 02.05.2022 13:45:32 | -10,800 | a162be291735c56a92d3792e5b107e080e6bf451 | [Chore] Remove trailing `"` from update-tezos.sh | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -24,7 +24,7 @@ cd ..\nrm -rf upstream-repo\ngit clone --bare https://gitlab.com/tezos/opam-repository.git upstream-opam-repository\n-opam_repository_branch=\"$(git --git-dir=upstream-opam-repository for-each-ref --contains \"$opam_repository_tag\" --count=1 --sort='-refname' --format=\"%(refname:lstrip=3)\" refs/remotes/origin)\"\"\n+opam_repository_branch=\"$(git --git-dir=upstream-opam-repository for-each-ref --contains \"$opam_repository_tag\" --count=1 --sort='-refname' --format=\"%(refname:lstrip=3)\" refs/remotes/origin)\"\nrm -rf upstream-opam-repository\nbranch_name=\"auto/$latest_upstream_tag-release\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove trailing `"` from update-tezos.sh |
603,659 | 27.04.2022 19:49:35 | -10,800 | 7f0adeb28a272b66fd7532b9157655129c1641f5 | Support Ubuntu 22.04
Problem: Ubuntu 22.04 was released recently. We should provide packages for it.
Solution: Provide support for it. | [
{
"change_type": "MODIFY",
"old_path": "docker/README.md",
"new_path": "docker/README.md",
"diff": "@@ -104,7 +104,7 @@ the submitter info and signed.\nIn order to update `*.changes` files with the proper signer info run the following:\n```\n-sed -i 's/^Changed-By: .*$/Changed-By: $signer_info/' ../out/*.changes\n+sed -i \"s/^Changed-By: .*$/Changed-By: $signer_info/\" ../out/*.changes\n```\nFor example, `signer_info` can be the following: `Roman Melnikov <roman.melnikov@serokell.io>`\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -248,7 +248,7 @@ Source: {self.name.lower()}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev, {str_build_deps}\n+Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"jammy\" else \"\"} autotools-dev, {str_build_deps}\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n@@ -400,7 +400,7 @@ Source: {self.name}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev, wget\n+Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"jammy\" else \"\"} autotools-dev, wget\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n@@ -579,7 +579,7 @@ Source: {self.name}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), dh-systemd (>= 1.5), autotools-dev\n+Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"jammy\" else \"\"} autotools-dev\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/package_generator.py",
"new_path": "docker/package/package_generator.py",
"diff": "@@ -79,6 +79,7 @@ common_deps = run_deps + build_deps\nubuntu_versions = [\n\"bionic\", # 18.04\n\"focal\", # 20.04\n+ \"jammy\", # 22.04\n]\npwd = os.getcwd()\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/support-policy.md",
"new_path": "docs/support-policy.md",
"diff": "@@ -18,6 +18,7 @@ supported by Canonical.\nCurrently, these are versions:\n* 18.04 LTS (Bionic Beaver)\n* 20.04 LTS (Focal Fossa)\n+* 22.04 LTS (Jammy Jellyfish)\nThere are packages for `arm64` and `amd64` architectures.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#444] Support Ubuntu 22.04
Problem: Ubuntu 22.04 was released recently. We should provide packages for it.
Solution: Provide support for it. |
603,659 | 28.04.2022 19:14:54 | -10,800 | 8a76f7dbcf545b3464a1007a1f8d710fc46160db | Services fail to start
Problem: If node needs more time to start responding,
than baker/endorser services can wait for it, systemd
restart all the tezos services indefinetily.
Solution: Made tezos-node service be started only after it can respond. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/scripts/tezos-baker-start",
"new_path": "docker/package/scripts/tezos-baker-start",
"diff": "@@ -56,6 +56,12 @@ launch_baker() {\nfi\n}\n+# TODO we should use --keep-alive instead of this loop once\n+# https://gitlab.com/tezos/tezos/-/issues/2873 is fixed\n+# Waiting till node start to respond\n+\n+while ! \"$tezos_client\" --endpoint \"$NODE_RPC_ENDPOINT\" rpc list &> /dev/null; do sleep 1; done\n+\nif [[ -z \"$BAKER_ADDRESS_ALIAS\" ]]; then\nlaunch_baker \"$@\"\nelse\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#403] Services fail to start
Problem: If node needs more time to start responding,
than baker/endorser services can wait for it, systemd
restart all the tezos services indefinetily.
Solution: Made tezos-node service be started only after it can respond. |
603,652 | 02.05.2022 17:03:03 | -10,800 | a1c2ae811d447b1ab76f3f6e853a913e152e8421 | [Chore] Add liquidity bake voting option to baker module
Problem: Since Jakarta protocol, liquidity baking voting is mandatory
for bakers. Currently, baker module doesn't provide an option
to setup voting option.
Solution: Add 'liquidityBakingToggleVote' option that accepts voting
in Jakarta format and transforms it to Ithaca format if needed. | [
{
"change_type": "MODIFY",
"old_path": "nix/modules/tezos-baker.nix",
"new_path": "nix/modules/tezos-baker.nix",
"diff": "@@ -37,6 +37,15 @@ let\n'';\n};\n+ liquidityBakingToggleVote = mkOption {\n+ type = types.enum [ \"on\" \"of\" \"pass\" ];\n+ default = \"pass\";\n+ description = ''\n+ Vote to continue (option 'on') or end (option 'off') the liquidity\n+ baking subsidy. Or choose to pass (option 'pass')\n+ '';\n+ };\n+\n};\n});\n@@ -49,10 +58,15 @@ in {\n};\n};\nconfig =\n- let baker-start-script = node-cfg: ''\n+ let baker-start-script = node-cfg:\n+ let\n+ voting-option = if node-cfg.baseProtocol == \"012-Psithaca\"\n+ then if node-cfg.liquidityBakingToggleVote == \"off\" then \"--liquidity-baking-escape-vote\" else \"\"\n+ else \"--liquidity-baking-toggle-vote ${node-cfg.liquidityBakingToggleVote}\";\n+ in ''\n${tezos-baker-pkgs.${node-cfg.baseProtocol}} -d \"$STATE_DIRECTORY/client/data\" \\\n-E \"http://localhost:${toString node-cfg.rpcPort}\" \\\n- run with local node \"$STATE_DIRECTORY/node/data\" ${node-cfg.bakerAccountAlias}\n+ run with local node \"$STATE_DIRECTORY/node/data\" ${voting-option} ${node-cfg.bakerAccountAlias}\n'';\nbaker-prestart-script = node-cfg: if node-cfg.bakerSecretKey != null then ''\n${tezos-client} -d \"$STATE_DIRECTORY/client/data\" import secret key \"${node-cfg.bakerAccountAlias}\" ${node-cfg.bakerSecretKey} --force\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add liquidity bake voting option to baker module
Problem: Since Jakarta protocol, liquidity baking voting is mandatory
for bakers. Currently, baker module doesn't provide an option
to setup voting option.
Solution: Add 'liquidityBakingToggleVote' option that accepts voting
in Jakarta format and transforms it to Ithaca format if needed. |
603,652 | 04.05.2022 12:40:06 | -10,800 | d71345a0f38778d061bbefd3a9612666d0475eed | [Chore] Add password-filename daemons' modules option
Problem: Currently modules don't support password-encrypted keys.
Solution: Add a password-filename option that allows providing password
for the password-endcrypted keys. | [
{
"change_type": "MODIFY",
"old_path": "nix/modules/common.nix",
"new_path": "nix/modules/common.nix",
"diff": "@@ -37,6 +37,13 @@ rec {\n'';\n};\n+ passwordFilename = mkOption {\n+ type = types.nullOr types.path;\n+ default = null;\n+ description = ''\n+ Path to the file with passwords that can be used to decrypt encrypted keys.\n+ '';\n+ };\n};\ngenDaemonConfig = { instancesCfg, service-name, service-pkgs, service-start-script, service-prestart-script ? (_: \"\")}:\n@@ -44,6 +51,7 @@ rec {\nusers = mkMerge (flip mapAttrsToList instancesCfg (node-name: node-cfg: genUsers node-name ));\nsystemd = mkMerge (flip mapAttrsToList instancesCfg (node-name: node-cfg:\nlet tezos-service = service-pkgs.\"${node-cfg.baseProtocol}\";\n+ passwordFilenameArg = if node-cfg.passwordFilename != null then \"-f ${node-cfg.passwordFilename}\" else \"\";\nin {\nservices.\"tezos-${node-name}-tezos-${service-name}\" = genSystemdService node-name node-cfg service-name // rec {\nbindsTo = [ \"network.target\" \"tezos-${node-name}-tezos-node.service\" ];\n@@ -61,10 +69,10 @@ rec {\n# Generate or update service config file\nif [[ ! -f \"$service_data_dir/config\" ]]; then\n- ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" \\\n+ ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\nconfig init --output \"$service_data_dir/config\" >/dev/null 2>&1\nelse\n- ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" \\\n+ ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\nconfig update >/dev/null 2>&1\nfi\n'' + service-prestart-script node-cfg;\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add password-filename daemons' modules option
Problem: Currently modules don't support password-encrypted keys.
Solution: Add a password-filename option that allows providing password
for the password-endcrypted keys. |
603,658 | 05.05.2022 19:37:27 | -7,200 | 26392534e6f25fda1568e6492fe9c313557b3ebe | [Chore] Fix 'update-tezos.sh'
Problem: when finding out 'opam_repository_branch', refnames used to
be shown as 'refs/remotes/origin/*' and not it's 'refs/heads/*'.
This lead to an incorrect nix/nix/source.json update.
Solution: changed 'git for-each-ref' to use a more general path,
assumed branch names are not going to have slashes in them and
started splitting the rightmost part. | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -24,7 +24,7 @@ cd ..\nrm -rf upstream-repo\ngit clone --bare https://gitlab.com/tezos/opam-repository.git upstream-opam-repository\n-opam_repository_branch=\"$(git --git-dir=upstream-opam-repository for-each-ref --contains \"$opam_repository_tag\" --count=1 --sort='-refname' --format=\"%(refname:lstrip=3)\" refs/remotes/origin)\"\n+opam_repository_branch=\"$(git --git-dir=upstream-opam-repository for-each-ref --contains \"$opam_repository_tag\" --count=1 --sort='-refname' --format=\"%(refname:short)\" refs/)\"\nrm -rf upstream-opam-repository\nbranch_name=\"auto/$latest_upstream_tag-release\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix 'update-tezos.sh'
Problem: when finding out 'opam_repository_branch', refnames used to
be shown as 'refs/remotes/origin/*' and not it's 'refs/heads/*'.
This lead to an incorrect nix/nix/source.json update.
Solution: changed 'git for-each-ref' to use a more general path,
assumed branch names are not going to have slashes in them and
started splitting the rightmost part. |
603,658 | 06.05.2022 18:34:43 | -7,200 | 4474cde71cd283201b2d0acc867316abb82e0d7d | [Chore] Add v13.0-1 hashes to brew formulae for Big Sur | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-012-Psithaca.rb",
"new_path": "Formula/tezos-accuser-012-Psithaca.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAccuser012Psithaca < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser012Psithaca.version}/\"\n+ sha256 cellar: :any, big_sur: \"d16c630cee04d49f541a43f976b1a4dd28909da8c244b5a92dade19ee44d09c6\"\n+ sha256 cellar: :any, arm64_big_sur: \"ae1fc570920ce4857355bee95d2f476cd3e11fbb647bd1b4312b74ccd5448a53\"\nsha256 cellar: :any, catalina: \"58c40f75b7f318975d17b1fa65797b9549ed5d407c8bdde2209d5a77f3a75123\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-013-PtJakart.rb",
"new_path": "Formula/tezos-accuser-013-PtJakart.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAccuser013Ptjakart < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser013Ptjakart.version}/\"\n+ sha256 cellar: :any, big_sur: \"e6418258cfe5942abf18f1b139d28271e824a6aa49e3e889de98381512bee7df\"\n+ sha256 cellar: :any, arm64_big_sur: \"08a3ac1dfa299aa34eedbf0deff66558e12fc850c51a1abf0e414d94f2423cd4\"\nsha256 cellar: :any, catalina: \"84c320c327b25f3d047df4971eaf78cd64bb7685cede0aab09a37e3ea9c4a7a4\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-admin-client.rb",
"new_path": "Formula/tezos-admin-client.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosAdminClient < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAdminClient.version}/\"\n+ sha256 cellar: :any, big_sur: \"66440791b22d8b78bfde2d12b6f94406812422aa1da7a7eadaaffba857d6d731\"\n+ sha256 cellar: :any, arm64_big_sur: \"1728ca20ae075237b091c41b31167b64a5d88e769e2bf5c14d3b6f569e79cb89\"\nsha256 cellar: :any, catalina: \"739c675926396d9a11fcf62e33ba07fc80774f6dc0a74e3ce08d99cc1f9dd9d7\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-012-Psithaca.rb",
"new_path": "Formula/tezos-baker-012-Psithaca.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosBaker012Psithaca < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker012Psithaca.version}/\"\n+ sha256 cellar: :any, big_sur: \"86d3a0576187994ff33869cd6406972d219b762cd07dd160928d42451d5ac918\"\n+ sha256 cellar: :any, arm64_big_sur: \"2629578fe67caed75f93cb025f63a251de5c1fc3eae7240b030c97f52ed4ff13\"\nsha256 cellar: :any, catalina: \"690bdec90eb45090d4e1c0a13f3c289dca5a5445fd124fd7703b61976b05938c\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-013-PtJakart.rb",
"new_path": "Formula/tezos-baker-013-PtJakart.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosBaker013Ptjakart < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker013Ptjakart.version}/\"\n+ sha256 cellar: :any, big_sur: \"0e47c78a6cbec0a2ff755927998a0f5a77a1e56217d778c46e2a821df6e74322\"\n+ sha256 cellar: :any, arm64_big_sur: \"db0f0d00f95a5d363db2dcb8e66ee7fee076ff5e86b8fe136d0cc6953a761da2\"\nsha256 cellar: :any, catalina: \"fbacb754a587d63a05db96be762ea1134871207e9039f684ef9c5c3e18d6ac28\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-client.rb",
"new_path": "Formula/tezos-client.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosClient < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosClient.version}/\"\n+ sha256 cellar: :any, big_sur: \"40a2581ef0170009a9804fdfd2f1313ad98c4af484cb62ab28e3b7ad8a801315\"\n+ sha256 cellar: :any, arm64_big_sur: \"8aa9e2f8855ac4a30584ab262053310618fc5bdd8872da57f682485ee1622a8f\"\nsha256 cellar: :any, catalina: \"4239b5655f5e828279e3a336645b635609553203dc4f4d0b4a1fb5cd3642699b\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-codec.rb",
"new_path": "Formula/tezos-codec.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosCodec < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosCodec.version}/\"\n+ sha256 cellar: :any, big_sur: \"c16489f8c6f3589fcec4a22cc851060f5bd333fdf09308ae3d6735403d94fa8d\"\n+ sha256 cellar: :any, arm64_big_sur: \"d3a707b11596af4ffe8ed168b12d00c4b3a6591c203521dcaf19370e5b278ff6\"\nsha256 cellar: :any, catalina: \"3eba55dbc887bf66c6003e8d835e987d0def75ead10f147b3af7a65ae8af965f\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-node.rb",
"new_path": "Formula/tezos-node.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosNode < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosNode.version}/\"\n+ sha256 cellar: :any, big_sur: \"3def45b2641c54c6806780f1c3f12fc782ce57dfe6c6035149439b1f32f00c36\"\n+ sha256 cellar: :any, arm64_big_sur: \"167077b54aba0b2ae383a4ab99a929a9d68a48c5080ac26f80e5e249cc94e9aa\"\nsha256 cellar: :any, catalina: \"abadb1cf4dce649e5ee1e5d364287a2ce91d8602eb40ec09a1426f6dc4084289\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-sandbox.rb",
"new_path": "Formula/tezos-sandbox.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosSandbox < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosSandbox.version}/\"\n+ sha256 cellar: :any, big_sur: \"1b60bc69094a2a2caeba7bd44ae48acf41830cda53c57ff3879c89907448943c\"\n+ sha256 cellar: :any, arm64_big_sur: \"62b7ba85aea0bbe693d05910b22c662aa9afedfd82e69037284be3e413daa892\"\nsha256 cellar: :any, catalina: \"558e7df1c0e8072a136518321dcd2f05fef33ee464903ff1f03fff9f7f3c5651\"\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-signer.rb",
"new_path": "Formula/tezos-signer.rb",
"diff": "@@ -26,6 +26,8 @@ class TezosSigner < Formula\nbottle do\nroot_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosSigner.version}/\"\n+ sha256 cellar: :any, big_sur: \"af9bf4218096f3c44c60b98ed20ab676a659895e6e525cd31ec479435b751e66\"\n+ sha256 cellar: :any, arm64_big_sur: \"8d8957ab2cd2333dee713c2b815760a05450bc98d4c6e3f6ada4f0c32f0ced73\"\nsha256 cellar: :any, catalina: \"f1b8306063139e689f0fbf5f1ef5cbc78764ff6f10b42ecc1fcb0d9664201d8e\"\nend\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add v13.0-1 hashes to brew formulae for Big Sur |
603,652 | 10.05.2022 13:05:02 | -10,800 | c07613b4143761e4fe45c79782b3a7fd19b3d9c1 | Remove 'zcash-params' workaround from macos doc
Problem: 'tezos-node' is now capable of searching 'zcash-params' within
HOMEBREW_PREFIX. However, docs still mention that additional workaround
is needed on macs with Apple CPUs.
Solution: Remove this workaround from macos-related doc. | [
{
"change_type": "MODIFY",
"old_path": "docs/distros/macos.md",
"new_path": "docs/distros/macos.md",
"diff": "@@ -25,27 +25,6 @@ brew install tezos-client\nFor faster formulae installation we provide prebuilt bottles for some macOS versions in the releases.\n-## Sapling params on Macs with Apple CPUs\n-\n-The `tezos-sapling-params` formula provides the `zcash-params` required by some Octez binaries.\n-However, you may see the following error when trying to use Octez binary on Mac with Apple CPU:\n-```\n-Failed to initialize Zcash parameters: cannot find Zcash params in any of:\n-...\n-You may download them using https://raw.githubusercontent.com/zcash/zcash/master/zcutil/fetch-params.sh\n-```\n-\n-This problem is caused by the fact that on Macs with Apple CPUs brew installs `zcash-params` to\n-a directory that isn't checked by Octez binaries.\n-\n-[MR](https://gitlab.com/tezos/tezos/-/merge_requests/4609) that targets to fix this was merged but\n-wasn't included into a release yet. So in the meantime, an additional workaround is required.\n-\n-In order to make `zcash-params` available for Octez binaries you can run the following command:\n-```\n-ln -s /opt/homebrew/Cellar/tezos-sapling-params/v8.2-3/share/zcash-params/ ~/.zcash-params\n-```\n-\n## Launchd background services on macOS.\nIMPORTANT: All provided `launchd` services are run as a user agents, thus they're stopped after the logout.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#385] Remove 'zcash-params' workaround from macos doc
Problem: 'tezos-node' is now capable of searching 'zcash-params' within
HOMEBREW_PREFIX. However, docs still mention that additional workaround
is needed on macs with Apple CPUs.
Solution: Remove this workaround from macos-related doc. |
603,659 | 06.05.2022 18:44:29 | -10,800 | 3ee84c51f9f1823b5f8ad88c7b78f576b40be21f | Provide a list of public nodes
Problem: It's possible that user will use public node for voting.
We should provide a list of existing public nodes to choose.
Solution: Provide list of reachable public nodes
for corresponding network. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_voting_wizard.py",
"new_path": "docker/package/tezos_voting_wizard.py",
"diff": "@@ -22,6 +22,14 @@ ballot_outcomes = {\n\"pass\": \"Submit a vote not influencing the result but contributing to quorum\",\n}\n+public_nodes = {\n+ \"https://rpc.tzbeta.net\": \"by Tezos Foundation\",\n+ \"https://mainnet.api.tez.ie\": \"by ECAD Labs\",\n+ \"https://mainnet.smartpy.io\": \"by SmartPy\",\n+ \"https://teznode.letzbake.com\": \"by LetzBake!\",\n+ \"https://mainnet-tezos.giganode.io\": \"by GigaNode\",\n+}\n+\n# Command line argument parsing\nparser.add_argument(\n@@ -118,17 +126,32 @@ ballot_outcome_query = Step(\n)\n-def get_node_rpc_addr_query(default=None):\n+def get_node_rpc_addr_query(network, default=None):\n+ url_path = \"chains/main/blocks/head/header\"\n+ node_is_alive = lambda host: url_is_reachable(mk_full_url(host, url_path))\n+ custom_url_validator = reachable_url_validator(url_path)\n+\n+ relevant_nodes = {\n+ url: provider\n+ for url, provider in public_nodes.items()\n+ if network == \"mainnet\" and node_is_alive(url)\n+ }\nreturn Step(\nid=\"node_rpc_addr\",\n- prompt=\"Provide the node's RPC address.\",\n+ prompt=\"Provide the node's RPC address.\"\n+ if not relevant_nodes\n+ else \"Choose one of the public nodes or provide the node's RPC address.\",\nhelp=\"The node's RPC address will be used by tezos-client to vote. If you have baking set up\\n\"\n\"through systemd services, the address is usually 'http://localhost:8732' by default.\",\n- default=default,\n+ default=\"1\" if relevant_nodes and default is None else default,\n+ options=relevant_nodes,\nvalidator=Validator(\n[\nrequired_field_validator,\n- reachable_url_validator(\"chains/main/blocks/head/header\"),\n+ or_validator(\n+ enum_range_validator(relevant_nodes),\n+ custom_url_validator,\n+ ),\n]\n),\n)\n@@ -212,7 +235,9 @@ class Setup(Setup):\nself.config[\"node_rpc_addr\"] = self.search_client_config(\"endpoint\", None)\nif self.config[\"node_rpc_addr\"] is None:\n- self.query_and_update_config(get_node_rpc_addr_query())\n+ self.query_and_update_config(\n+ get_node_rpc_addr_query(self.config[\"network\"])\n+ )\nkey_import_modes.pop(\"json\", None)\nself.get_baker_key()\n@@ -222,7 +247,9 @@ class Setup(Setup):\nwhile not collected:\nself.query_and_update_config(\n- get_node_rpc_addr_query(self.config[\"node_rpc_addr\"])\n+ get_node_rpc_addr_query(\n+ self.config[\"network\"], self.config[\"node_rpc_addr\"]\n+ )\n)\nreplace_baker_key = self.check_baker_account()\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/wizard_structure.py",
"new_path": "docker/package/wizard_structure.py",
"diff": "@@ -34,8 +34,7 @@ def enum_range_validator(options):\nintrange = list(map(str, range(1, len(options) + 1)))\nif input not in intrange and input not in options:\nraise ValueError(\n- \"Please choose one of the provided values or use their respective numbers: \"\n- + \", \".join(options)\n+ \"Please choose one of the provided values or use their respective numbers.\"\n)\ntry:\nopt = int(input) - 1\n@@ -64,17 +63,11 @@ def filepath_validator(input):\ndef reachable_url_validator(suffix=None):\ndef _validator(input):\n- if input:\n- full_url = \"/\".join([input.rstrip(\"/\"), suffix.lstrip(\"/\")])\n- headers = {\"User-Agent\": \"Mozilla/5.0\"}\n- req = urllib.request.Request(full_url, headers=headers)\n- try:\n- urllib.request.urlopen(req)\n- except (urllib.error.URLError, ValueError):\n- raise ValueError(\n- f\"{full_url} is unreachable. Please input a valid URL.\"\n- )\n+ full_url = mk_full_url(input, suffix)\n+ if url_is_reachable(full_url):\nreturn input\n+ else:\n+ raise ValueError(f\"{full_url} is unreachable. Please input a valid URL.\")\nreturn _validator\n@@ -227,6 +220,19 @@ def yes_or_no(prompt, default=None):\nprint(color(\"Please provide a 'yes' or 'no' answer.\", color_red))\n+def mk_full_url(host_name, path):\n+ return \"/\".join([host_name.rstrip(\"/\"), path.lstrip(\"/\")])\n+\n+\n+def url_is_reachable(url):\n+ req = urllib.request.Request(url, headers=http_request_headers)\n+ try:\n+ urllib.request.urlopen(req)\n+ return True\n+ except (urllib.error.URLError, ValueError):\n+ return False\n+\n+\n# Global options\nkey_import_modes = {\n@@ -242,6 +248,8 @@ networks = {\n\"jakartanet\": \"Test network using version 013 of Tezos protocol (Jakarta2)\",\n}\n+http_request_headers = {\"User-Agent\": \"Mozilla/5.0\"}\n+\n# Wizard CLI skeleton\n@@ -416,10 +424,14 @@ class Step:\ni += 1\nelif self.options and isinstance(self.options, dict):\nindex_len = len(str(len(self.options)))\n- str_format = f\"{{:{index_len}}}. {{:<26}} {{}}\"\n+ max_option_len = max(map(len, self.options.keys()))\n+ padding = max(26, max_option_len + 2)\n+ indent_size = index_len + 4 + padding\n+ str_format = f\"{{:{index_len}}}. {{:<{padding}}} {{}}\"\nfor o in self.options:\ndescription = textwrap.indent(\n- textwrap.fill(self.options[o], 60), \" \" * 31\n+ textwrap.fill(self.options[o], 60),\n+ \" \" * indent_size,\n).lstrip()\nif def_i is not None and i == def_i:\nprint(str_format.format(i, o + \" (default)\", description))\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#447] Provide a list of public nodes
Problem: It's possible that user will use public node for voting.
We should provide a list of existing public nodes to choose.
Solution: Provide list of reachable public nodes
for corresponding network. |
603,659 | 11.05.2022 18:57:24 | -10,800 | 59a961b1c272910d2d1ea3b5ac9ea48dda686a7e | Add shellcheck linter to CI
Problem: We have some linters running on our Buildkite pipeline.
However, we don't check shell scripts in any specialised way.
It would be nice to add shellcheck to run on every .sh file.
Solution: Add CI step for bash scripts linting and fix existing
style problems. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/check-trailing-whitespace.sh",
"new_path": ".buildkite/check-trailing-whitespace.sh",
"diff": "# SPDX-License-Identifier: LicenseRef-MIT-TQ\nfiles=$(git ls-files -- . ':!:*.patch' | xargs grep --files-with-matches --binary-files=without-match '[[:blank:]]$')\n-if [[ ! -z $files ]];then\n+if [[ -n $files ]];then\necho ' Files with trailing whitespace found:'\nfor f in \"${files[@]}\"; do\necho \" * $f\"\n"
},
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -23,6 +23,8 @@ steps:\nsoft_fail: true\n- label: lint python code\ncommand: nix run -f . pkgs.python39Packages.black -c black --check --diff --color .\n+ - label: lint bash scripts\n+ command: nix run -f . pkgs.shellcheck -c shellcheck --exclude=SC1008,SC2148,SC1091 -x $(find . -name '*.sh')\n- label: pipeline-filtering\ncommand: nix-shell .buildkite/shell.nix --run 'nix run -f . pkgs.bats -c ./tests/buildkite/filter-pipeline.bats'\nonly_changes:\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/scripts/build-binary.sh",
"new_path": "docker/package/scripts/build-binary.sh",
"diff": "@@ -16,7 +16,7 @@ opam init local ../opam-repository --bare --disable-sandboxing\nopam switch create . --repositories=local\neval \"$(opam env)\"\nopams=\"$(find ./vendors ./src ./tezt -name \\*.opam -print)\"\n-opam install $opams --deps-only --criteria=\"-notuptodate,-changed,-removed\"\n+opam install \"$opams\" --deps-only --criteria=\"-notuptodate,-changed,-removed\"\neval \"$(opam env)\"\ndune build \"$dune_filepath\"\ncp \"./_build/default/$dune_filepath\" \"../$binary_name\"\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/build-one-bottle.sh",
"new_path": "scripts/build-one-bottle.sh",
"diff": "@@ -16,4 +16,4 @@ brew install --formula --build-bottle \"./Formula/$1.rb\"\nbrew bottle --force-core-tap --no-rebuild \"./Formula/$1.rb\"\nbrew uninstall --formula \"./Formula/$1.rb\"\n# https://github.com/Homebrew/brew/pull/4612#commitcomment-29995084\n-mv \"$1\"*.bottle.* \"$(echo $1*.bottle.* | sed s/--/-/)\"\n+mv \"$1\"*.bottle.* \"$(echo \"$1\"*.bottle.* | sed s/--/-/)\"\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/check-bottle-built.sh",
"new_path": "scripts/check-bottle-built.sh",
"diff": "@@ -19,11 +19,10 @@ fi\ntag=$(sed -n \"s/^\\s\\+version \\\"\\(.*\\)\\\"/\\1/p\" \"./Formula/$1.rb\")\n-# Command below is allowed to fail\nset +e\n-gh release view \"$tag\" | grep \"$1.*\\.$2.bottle.tar.gz\"\n-if [ $? -eq 0 ]; then\n+# Command below is allowed to fail\n+if gh release view \"$tag\" | grep \"$1.*\\.$2.bottle.tar.gz\"; then\necho \"Bottle is already attached to the $tag release.\"\nexit 3\nelse\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -18,7 +18,8 @@ git clone https://gitlab.com/tezos/tezos.git upstream-repo\ncd upstream-repo\nlatest_upstream_tag_hash=\"$(git rev-list --tags --max-count=1)\"\nlatest_upstream_tag=\"$(git describe --tags \"$latest_upstream_tag_hash\")\"\n-git checkout $latest_upstream_tag\n+opam_repository_tag='' # will be set by version.sh\n+git checkout \"$latest_upstream_tag\"\nsource scripts/version.sh\ncd ..\nrm -rf upstream-repo\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#462] Add shellcheck linter to CI
Problem: We have some linters running on our Buildkite pipeline.
However, we don't check shell scripts in any specialised way.
It would be nice to add shellcheck to run on every .sh file.
Solution: Add CI step for bash scripts linting and fix existing
style problems. |
603,659 | 17.05.2022 20:38:55 | -10,800 | 4fa8594591390621c41028b121070b9bd275cd29 | fixup! Add shellcheck linter to CI | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/check-trailing-whitespace.sh",
"new_path": ".buildkite/check-trailing-whitespace.sh",
"diff": "# SPDX-License-Identifier: LicenseRef-MIT-TQ\nfiles=$(git ls-files -- . ':!:*.patch' | xargs grep --files-with-matches --binary-files=without-match '[[:blank:]]$')\n-if [[ -n $files ]];then\n+if [[ -n \"$files\" ]];then\necho ' Files with trailing whitespace found:'\nfor f in \"${files[@]}\"; do\necho \" * $f\"\n"
},
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -24,7 +24,7 @@ steps:\n- label: lint python code\ncommand: nix run -f . pkgs.python39Packages.black -c black --check --diff --color .\n- label: lint bash scripts\n- command: nix run -f . pkgs.shellcheck -c shellcheck --exclude=SC1008,SC2148,SC1091 -x $(find . -name '*.sh')\n+ command: nix run -f . pkgs.shellcheck -c shellcheck --shell=bash --exclude=SC1091 -x $(find . -name '*.sh')\n- label: pipeline-filtering\ncommand: nix-shell .buildkite/shell.nix --run 'nix run -f . pkgs.bats -c ./tests/buildkite/filter-pipeline.bats'\nonly_changes:\n"
}
] | Python | MIT License | serokell/tezos-packaging | fixup! [#462] Add shellcheck linter to CI |
603,652 | 18.05.2022 10:47:12 | -10,800 | 67e8ada628b8e02600042ec7949adbc08434a3bc | [Chore] Hotfix 'build-binary.sh' script
Problem: After recently applied shellcheck suggestions,
'build-binary.sh' doesn't provide a list of opam files to install
correctly.
Solution: Store find result in the array instead of a single string
variable to provide proper quoted expansion. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/scripts/build-binary.sh",
"new_path": "docker/package/scripts/build-binary.sh",
"diff": "@@ -15,8 +15,11 @@ cd tezos\nopam init local ../opam-repository --bare --disable-sandboxing\nopam switch create . --repositories=local\neval \"$(opam env)\"\n-opams=\"$(find ./vendors ./src ./tezt -name \\*.opam -print)\"\n-opam install \"$opams\" --deps-only --criteria=\"-notuptodate,-changed,-removed\"\n+opams=()\n+while IFS= read -r -d $'\\0'; do\n+ opams+=(\"$REPLY\")\n+done < <(find ./vendors ./src ./tezt -name \\*.opam -print0)\n+opam install \"${opams[@]}\" --deps-only --criteria=\"-notuptodate,-changed,-removed\"\neval \"$(opam env)\"\ndune build \"$dune_filepath\"\ncp \"./_build/default/$dune_filepath\" \"../$binary_name\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix 'build-binary.sh' script
Problem: After recently applied shellcheck suggestions,
'build-binary.sh' doesn't provide a list of opam files to install
correctly.
Solution: Store find result in the array instead of a single string
variable to provide proper quoted expansion. |
603,659 | 19.05.2022 13:38:32 | -10,800 | 44ea40a81b5abe5cd13622b38f38146f1033cc1b | Document PPA installation steps on Debian
Problem: We should be able to use serokell launchpad ppa
on some debian releases, but straightforward way won't work
because of different versioning policies.
Solution: Provide commands to install on debian and update docs. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -48,6 +48,7 @@ voting on custom networks.\n`tezos-packaging` supports several native distribution methods for convenience:\n- [**Ubuntu**](./docs/distros/ubuntu.md)\n+- [**Debian**](./docs/distros/ubuntu.md#debian)\n- [**Raspberry Pi OS**](./docs/distros/ubuntu.md#raspberry)\n- [**Fedora**](./docs/distros/fedora.md)\n- [**macOS**](./docs/distros/macos.md)\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/distros/ubuntu.md",
"new_path": "docs/distros/ubuntu.md",
"diff": "@@ -30,6 +30,26 @@ As an addition, `tezos-baking` package provides `tezos-baking-<network>` service\nsystemd units for `tezos-node` and `tezos-baker-<proto>`.\nConfiguration files for these services are located in `/etc/default/tezos-baking-<network>`.\n+<a name=\"debian\"></a>\n+## Ubuntu packages on Debian\n+\n+You can add the PPA using:\n+```\n+# Install software properties commons\n+sudo apt-get install software-properties-common gnupg\n+# Add PPA with Tezos binaries\n+sudo add-apt-repository 'deb http://ppa.launchpad.net/serokell/tezos/ubuntu bionic main'\n+sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 37B8819B7D0D183812DCA9A8CE5A4D8933AE7CBB\n+sudo apt-get update\n+```\n+If packages for `bionic` are not suited for your Debian version, see the\n+[related askubuntu thread](https://askubuntu.com/a/445496) to choose a valid one.\n+\n+Then install with `apt-get`, e.g. for `tezos-client`:\n+```\n+sudo apt-get install tezos-client\n+```\n+\n<a name=\"raspberry\"></a>\n## Ubuntu packages on Raspberry Pi OS\n@@ -38,7 +58,7 @@ you can use the Launchpad PPA to install `tezos-*` executables on it as well.\nYou can add the PPA using:\n```\n-# Intall software properties commons\n+# Install software properties commons\nsudo apt-get install software-properties-common\n# Add PPA with Tezos binaries\nsudo add-apt-repository 'deb http://ppa.launchpad.net/serokell/tezos/ubuntu focal main'\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/support-policy.md",
"new_path": "docs/support-policy.md",
"diff": "@@ -22,6 +22,17 @@ Currently, these are versions:\nThere are packages for `arm64` and `amd64` architectures.\n+## Debian packages\n+\n+We aim to provide packages for all [debian releases](https://www.debian.org/releases/),\n+which match the supported Ubuntu releases.\n+\n+Currently, these are versions:\n+* Debian 11 (bullseye)\n+* Debian 10 (buster)\n+\n+There are packages for `arm64` and `amd64` architectures.\n+\n## Fedora packages\nWe aim to provide packages for all [currently supported Fedora releases](https://docs.fedoraproject.org/en-US/releases/).\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#438] Document PPA installation steps on Debian
Problem: We should be able to use serokell launchpad ppa
on some debian releases, but straightforward way won't work
because of different versioning policies.
Solution: Provide commands to install on debian and update docs. |
603,659 | 17.05.2022 18:02:37 | -10,800 | ce036103e8805c9e13a059fbc069724748cdf35a | Properly package two wizards
Problem: Right now, when installing the tezos-baking package, we just
copy this common file to /usr/bin/ together with the wizards'
executable scripts.
Solution: Change the buildsystem to pybuild. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/Dockerfile-fedora",
"new_path": "docker/package/Dockerfile-fedora",
"diff": "FROM fedora:32\nRUN dnf update -y\nRUN dnf install -y libev-devel gmp-devel hidapi-devel libffi-devel zlib-devel libpq-devel m4 perl git pkg-config \\\n- rpmdevtools python3 wget opam rsync which cargo autoconf\n+ rpmdevtools python3-devel python3-setuptools wget opam rsync which cargo autoconf\nENV USER dockerbuilder\nRUN useradd dockerbuilder && mkdir /tezos-packaging\nENV HOME /tezos-packaging\n@@ -17,3 +17,4 @@ COPY docker/package/defaults /tezos-packaging/docker/package/defaults\nCOPY docker/package/scripts /tezos-packaging/docker/package/scripts\nCOPY LICENSE /tezos-packaging/LICENSE\nENTRYPOINT [\"python3\", \"-m\", \"package.package_generator\"]\n+\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/Dockerfile-ubuntu",
"new_path": "docker/package/Dockerfile-ubuntu",
"diff": "FROM ubuntu:20.04\nENV DEBIAN_FRONTEND=\"noninteractive\"\nRUN apt-get update && apt-get install -y libev-dev libgmp-dev libhidapi-dev libffi-dev zlib1g-dev libpq-dev m4 perl pkg-config \\\n- debhelper dh-make dh-systemd devscripts autotools-dev python3 python3-distutils wget rsync\n+ debhelper dh-make dh-systemd dh-python devscripts autotools-dev python3-all python3-setuptools wget rsync\nRUN apt-get install -y software-properties-common\nRUN add-apt-repository ppa:ubuntu-mozilla-security/rust-next -y && apt-get update && apt-get -y install cargo\nRUN add-apt-repository ppa:avsm/ppa -y && apt-get update && apt-get -y install opam\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/fedora.py",
"new_path": "docker/package/fedora.py",
"diff": "@@ -20,7 +20,7 @@ def build_fedora_package(\nhome = os.environ[\"HOME\"]\npkg.fetch_sources(dir)\n- pkg.gen_makefile(f\"{dir}/Makefile\")\n+ pkg.gen_buildfile(\"/\".join([dir, pkg.buildfile]))\npkg.gen_license(f\"{dir}/LICENSE\")\nfor systemd_unit in pkg.systemd_units:\nif systemd_unit.service_file.service.environment_file is not None:\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -19,6 +19,9 @@ from .systemd import (\nclass AbstractPackage:\n+\n+ buildfile = \"Makefile\"\n+\n@abstractmethod\ndef fetch_sources(self, out_dir):\npass\n@@ -32,7 +35,7 @@ class AbstractPackage:\npass\n@abstractmethod\n- def gen_makefile(self, out):\n+ def gen_buildfile(self, out):\npass\ndef gen_changelog(self, ubuntu_version, maintainer, date, out):\n@@ -149,6 +152,17 @@ mkdir -p %{{buildroot}}/%{{_unitdir}}\nreturn systemd_deps, systemd_install, systemd_files, systemd_macros\n+def mk_dh_flags(package):\n+ return \" \".join(\n+ [\n+ \"--with systemd\" if len(package.systemd_units) > 0 else \"\",\n+ \"--with python3 --buildsystem=pybuild\"\n+ if package.buildfile == \"setup.py\"\n+ else \"\",\n+ ]\n+ )\n+\n+\ndef gen_systemd_rules_contents(package):\noverride_dh_install_init = \"override_dh_installinit:\\n\"\npackage_name = package.name.lower()\n@@ -170,9 +184,10 @@ export DEB_CFLAGS_APPEND=-fPIC\n# Disable usage of instructions from the ADX extension to avoid incompatibility\n# with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\nexport BLST_PORTABLE=yes\n+{f\"export PYBUILD_NAME={package_name}\" if package.buildfile == \"setup.py\" else \"\"}\n%:\n- dh $@ {\"--with systemd\" if len(package.systemd_units) > 0 else \"\"}\n+ dh $@ {mk_dh_flags(package)}\noverride_dh_systemd_start:\ndh_systemd_start --no-start\n{override_dh_install_init if len(package.systemd_units) > 1 else \"\"}\"\"\"\n@@ -307,7 +322,7 @@ install -m 0755 %{{name}} %{{buildroot}}/%{{_bindir}}\nwith open(out, \"w\") as f:\nf.write(file_contents)\n- def gen_makefile(self, out):\n+ def gen_buildfile(self, out):\nmakefile_contents = f\"\"\"\n.PHONY: install\n@@ -444,7 +459,7 @@ install -m 0755 sapling-output.params %{{buildroot}}/%{{_datadir}}/zcash-params\nwith open(out, \"w\") as f:\nf.write(file_contents)\n- def gen_makefile(self, out):\n+ def gen_buildfile(self, out):\nfile_contents = \"\"\"\n.PHONY: install\n@@ -481,6 +496,8 @@ class TezosBakingServicesPackage(AbstractPackage):\n# This should be reset to \"\" whenever the native version is bumped.\nletter_version = \"\"\n+ buildfile = \"setup.py\"\n+\ndef __gen_baking_systemd_unit(\nself, requires, description, environment_file, config_file, suffix\n):\n@@ -565,9 +582,11 @@ class TezosBakingServicesPackage(AbstractPackage):\ndef fetch_sources(self, out_dir):\nos.makedirs(out_dir)\n- shutil.copy(f\"{os.path.dirname(__file__)}/wizard_structure.py\", out_dir)\n- shutil.copy(f\"{os.path.dirname(__file__)}/tezos_setup_wizard.py\", out_dir)\n- shutil.copy(f\"{os.path.dirname(__file__)}/tezos_voting_wizard.py\", out_dir)\n+ package_dir = out_dir + \"/tezos_baking\"\n+ os.makedirs(package_dir)\n+ shutil.copy(f\"{os.path.dirname(__file__)}/wizard_structure.py\", package_dir)\n+ shutil.copy(f\"{os.path.dirname(__file__)}/tezos_setup_wizard.py\", package_dir)\n+ shutil.copy(f\"{os.path.dirname(__file__)}/tezos_voting_wizard.py\", package_dir)\ndef gen_control_file(self, deps, ubuntu_version, out):\nrun_deps_list = [\"acl\", \"tezos-client\", \"tezos-node\"]\n@@ -579,13 +598,14 @@ Source: {self.name}\nSection: utils\nPriority: optional\nMaintainer: {self.meta.maintainer}\n-Build-Depends: debhelper (>=9), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"jammy\" else \"\"} autotools-dev\n+Build-Depends: debhelper (>=11), {\"dh-systemd (>= 1.5), \" if ubuntu_version != \"jammy\" else \"\"} autotools-dev, dh-python, python3-all, python3-setuptools\nStandards-Version: 3.9.6\nHomepage: https://gitlab.com/tezos/tezos/\n+X-Python3-Version: >= 3.6\nPackage: {self.name.lower()}\nArchitecture: amd64 arm64\n-Depends: ${{shlibs:Depends}}, ${{misc:Depends}}, {run_deps}\n+Depends: ${{shlibs:Depends}}, ${{misc:Depends}}, {run_deps}, ${{python3:Depends}}\nDescription: {self.desc}\n\"\"\"\nwith open(out, \"w\") as f:\n@@ -614,18 +634,23 @@ License: MIT\nBuildArch: x86_64 aarch64\nSource0: {self.name}-{version}.tar.gz\nSource1: https://gitlab.com/tezos/tezos/tree/v{self.meta.version}/\n-BuildRequires: {systemd_deps}\n+BuildRequires: {systemd_deps}, python3-devel, python3-setuptools\nRequires: {run_deps}\n%description\n{self.desc}\nMaintainer: {self.meta.maintainer}\n%prep\n-%setup -q\n+%autosetup -n {self.name}-{version}\n%build\n+%py3_build\n%install\n-mkdir -p %{{buildroot}}/%{{_bindir}}\n+%py3_install\n{systemd_install}\n%files\n+%{{_bindir}}/tezos-setup-wizard\n+%{{_bindir}}/tezos-voting-wizard\n+%{{python3_sitelib}}/tezos_baking-*.egg-info/\n+%{{python3_sitelib}}/tezos_baking/\n%license LICENSE\n{systemd_files}\n{systemd_macros}\n@@ -633,27 +658,21 @@ mkdir -p %{{buildroot}}/%{{_bindir}}\nwith open(out, \"w\") as f:\nf.write(file_contents)\n- def gen_makefile(self, out):\n- file_contents = \"\"\"\n-.PHONY: install\n-\n-BINDIR=/usr/bin\n-\n-tezos-baking:\n-\n-tezos-setup-wizard:\n- mv $(CURDIR)/tezos_setup_wizard.py $(CURDIR)/tezos-setup-wizard\n- chmod +x $(CURDIR)/tezos-setup-wizard\n-\n-tezos-voting-wizard:\n- mv $(CURDIR)/tezos_voting_wizard.py $(CURDIR)/tezos-voting-wizard\n- chmod +x $(CURDIR)/tezos-voting-wizard\n-\n-install: tezos-baking tezos-setup-wizard tezos-voting-wizard\n- mkdir -p $(DESTDIR)$(BINDIR)\n- cp $(CURDIR)/wizard_structure.py $(DESTDIR)$(BINDIR)/wizard_structure.py\n- cp $(CURDIR)/tezos-setup-wizard $(DESTDIR)$(BINDIR)/tezos-setup-wizard\n- cp $(CURDIR)/tezos-voting-wizard $(DESTDIR)$(BINDIR)/tezos-voting-wizard\n+ def gen_buildfile(self, out):\n+ file_contents = f\"\"\"\n+from setuptools import setup\n+\n+setup(\n+ name='tezos-baking',\n+ packages=['tezos_baking'],\n+ version={self.meta.version},\n+ entry_points=dict(\n+ console_scripts=[\n+ 'tezos-setup-wizard=tezos_baking.tezos_setup_wizard:main',\n+ 'tezos-voting-wizard=tezos_baking.tezos_voting_wizard:main',\n+ ]\n+ )\n+)\n\"\"\"\nwith open(out, \"w\") as f:\nf.write(file_contents)\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -15,7 +15,7 @@ import urllib.request\nimport json\nfrom typing import List\n-from wizard_structure import *\n+from .wizard_structure import *\n# Global options\n@@ -465,7 +465,7 @@ class Setup(Setup):\nprint(f\"sudo systemctl disable tezos-baking-{self.config['network']}.service\")\n-if __name__ == \"__main__\":\n+def main():\nreadline.parse_and_bind(\"tab: complete\")\nreadline.set_completer_delims(\" \")\n@@ -503,3 +503,7 @@ if __name__ == \"__main__\":\nf.write(str(e) + \"\\n\")\nprint(\"The error has been logged to\", os.path.abspath(logfile))\nsys.exit(1)\n+\n+\n+if __name__ == \"__main__\":\n+ main()\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_voting_wizard.py",
"new_path": "docker/package/tezos_voting_wizard.py",
"diff": "@@ -12,7 +12,7 @@ import os, sys\nimport readline\nimport re\n-from wizard_structure import *\n+from .wizard_structure import *\n# Global options\n@@ -451,7 +451,7 @@ class Setup(Setup):\nprint(\"Thank you for voting!\")\n-if __name__ == \"__main__\":\n+def main():\nreadline.parse_and_bind(\"tab: complete\")\nreadline.set_completer_delims(\" \")\n@@ -471,3 +471,7 @@ if __name__ == \"__main__\":\nf.write(str(e) + \"\\n\")\nprint(\"The error has been logged to\", os.path.abspath(logfile))\nsys.exit(1)\n+\n+\n+if __name__ == \"__main__\":\n+ main()\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/ubuntu.py",
"new_path": "docker/package/ubuntu.py",
"diff": "@@ -25,7 +25,7 @@ def build_ubuntu_package(\ndate = subprocess.check_output([\"date\", \"-R\"]).decode().strip()\nif source_archive_path is None:\npkg.fetch_sources(dir)\n- pkg.gen_makefile(f\"{dir}/Makefile\")\n+ pkg.gen_buildfile(\"/\".join([dir, pkg.buildfile]))\nsubprocess.run([\"tar\", \"-czf\", f\"{dir}.tar.gz\", dir], check=True)\nelse:\nshutil.copy(f\"{cwd}/../{source_archive_path}\", f\"{dir}.tar.gz\")\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#388] Properly package two wizards
Problem: Right now, when installing the tezos-baking package, we just
copy this common file to /usr/bin/ together with the wizards'
executable scripts.
Solution: Change the buildsystem to pybuild. |
603,659 | 24.05.2022 14:23:41 | -10,800 | eb42a522b70280a8ac12ff93d1c1fc1492a0a0c1 | Handle ledger setup interruption
Problem: When Ctrl+C is fired during the step that interacts with
the ledger during baker setup wizard fails with an error.
Solution: Handle the exception. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -382,12 +382,18 @@ class Setup(Setup):\nkey_mode_query = get_key_mode_query(key_import_modes)\n+ ledger_set_up = False\n+ while not ledger_set_up:\nself.import_key(key_mode_query, \"Baking\")\n+ try:\nproc_call(\nf\"sudo -u tezos {suppress_warning_text} tezos-client {tezos_client_options} \"\nf\"setup ledger to bake for {baker_alias} --main-hwm {self.get_current_head_level()}\"\n)\n+ ledger_set_up = True\n+ except PermissionError:\n+ print(\"Going back to the import mode selection.\")\ndef register_baker(self):\nprint()\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#472] Handle ledger setup interruption
Problem: When Ctrl+C is fired during the step that interacts with
the ledger during baker setup wizard fails with an error.
Solution: Handle the exception. |
603,652 | 03.06.2022 15:04:26 | -10,800 | 752bc56a5b441313a0767feccb8847dab4dd0051 | [Chore] Repin opam-repository branch
Problem: opam-repository currently pinned to branch that no longer
exists.
Solution: Repin it to master. | [
{
"change_type": "MODIFY",
"old_path": "nix/nix/sources.json",
"new_path": "nix/nix/sources.json",
"diff": "\"url_template\": \"https://github.com/<owner>/<repo>/archive/<rev>.tar.gz\"\n},\n\"opam-repository\": {\n- \"branch\": \"static-layers-1\",\n- \"ref\": \"static-layers-1\",\n+ \"branch\": \"master\",\n+ \"ref\": \"master\",\n\"repo\": \"https://gitlab.com/tezos/opam-repository\",\n\"rev\": \"845375388d477153b36344f69a23a1b34b2bf82e\",\n\"type\": \"git\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Repin opam-repository branch
Problem: opam-repository currently pinned to branch that no longer
exists.
Solution: Repin it to master. |
603,652 | 03.06.2022 15:11:09 | -10,800 | 3077d424134f572b4f6e920543bfd21b3423f0cb | [Chore] Update 'build-via-docker' step
Problem: Server on which 'build-via-docker' step is run was updated
again and now it again uses old nix interface
Solution: Update 'build-via-docker' step command by replacing 'nix shell'
with 'nix run'. | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-raw.yml",
"new_path": ".buildkite/pipeline-raw.yml",
"diff": "@@ -53,7 +53,7 @@ steps:\n- eval \"$SET_VERSION\"\n- cd docker\n- ./docker-static-build.sh\n- - nix shell -f.. pkgs.upx -c upx tezos-*\n+ - nix run -f.. pkgs.upx -c upx tezos-*\nartifact_paths:\n- ./docker/tezos-*\nagents:\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update 'build-via-docker' step
Problem: Server on which 'build-via-docker' step is run was updated
again and now it again uses old nix interface
Solution: Update 'build-via-docker' step command by replacing 'nix shell'
with 'nix run'. |
603,658 | 03.06.2022 16:54:41 | -7,200 | 2696aff4f5bf5ec2adbe333af53f88ddff230f25 | Add a post-install message to tezos-baking
Problem: it would be nice to notify the users about the liquidity
baking toggle vote option, as it's an important breaking change.
Solution: added a post-install step to tezos-baking debian package
that should print a notification upon installation of update. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -577,7 +577,11 @@ class TezosBakingServicesPackage(AbstractPackage):\ncustom_unit.poststop_script = \"tezos-baking-custom-poststop\"\ncustom_unit.instances = []\nself.systemd_units.append(custom_unit)\n- self.postinst_steps = \"\"\n+ # TODO: we will likely need to remove this once toggle vote isn't new anymore\n+ self.postinst_steps = \"\"\"echo \"Please note that the liquidity baking toggle vote option\"\n+echo \"is now mandatory when baking. You can read more about it here:\"\n+echo \"https://tezos.gitlab.io/jakarta/liquidity_baking.html#toggle-vote\"\n+\"\"\"\nself.postrm_steps = \"\"\ndef fetch_sources(self, out_dir):\n@@ -684,3 +688,16 @@ setup(\ndef gen_license(self, out):\nshutil.copy(f\"{os.path.dirname(__file__)}/../../LICENSE\", out)\n+\n+ def gen_postinst(self, out):\n+ postinst_contents = f\"\"\"#!/bin/sh\n+\n+set -e\n+\n+#DEBHELPER#\n+\n+{self.postinst_steps}\n+\"\"\"\n+ postinst_contents = postinst_contents.replace(self.name, self.name.lower())\n+ with open(out, \"w\") as f:\n+ f.write(postinst_contents)\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#464] Add a post-install message to tezos-baking
Problem: it would be nice to notify the users about the liquidity
baking toggle vote option, as it's an important breaking change.
Solution: added a post-install step to tezos-baking debian package
that should print a notification upon installation of update. |
603,658 | 21.06.2022 02:05:51 | -7,200 | f68701a2a5d1d363f9ab648e0f40e43db9af9970 | Update baking docs
Problem: there's a new mandatory liquidity baking toggle vote option,
but we don't mention it in the docs.
Solution: added a subsection explaining the default and how to change it. | [
{
"change_type": "MODIFY",
"old_path": "docs/baking.md",
"new_path": "docs/baking.md",
"diff": "@@ -155,6 +155,26 @@ sudo -u tezos tezos-client bootstrapped\nBy default `tezos-baking-<network>.service` will use the `baker` alias for the\nkey that will be used for baking and endorsing.\n+### Setting the Liquidity Baking toggle vote option\n+\n+Since `013-PtJakart`, the `--liquidity-baking-toggle-vote` command line option for\n+`tezos-baker` is now mandatory. In our systemd services, it is set to `pass` by\n+default. You can change it as desired in the service config file at\n+`/etc/defaults/tezos-baking-<network>`.\n+\n+If the baking service is running already, changing this options requires a restart.\n+You can do so manually by running:\n+```bash\n+sudo systemctl restart tezos-baking-<network>.service\n+```\n+\n+If using this option on Ithaca, the format in our configuration files stays the same\n+but is transformed to the Ithaca-specific format: `off` is transformed to the\n+`--liquidity-baking-escape-vote` command line options, whereas `pass` and `on` result\n+in no command line argument and will only affect baking upon switching to Jakarta.\n+\n+You can also use the [Setup Wizard](#using-the-wizard) which will handle everything for you.\n+\n<a name=\"import\"></a>\n### Importing the baker key\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/tests/voting.md",
"new_path": "docs/tests/voting.md",
"diff": "@@ -41,6 +41,7 @@ NODE_RPC_ENDPOINT=\"http://localhost:8732\"\nBAKER_ADDRESS_ALIAS=\"baker\"\nCUSTOM_NODE_CONFIG=\"<paste your path to the node config here>\"\nRESET_ON_STOP=\"\"\n+LIQUIDITY_BAKING_TOGGLE_VOTE=\"pass\"\n```\nAdditionally, you can set `RESET_ON_STOP=\"true\"` to enable automatic node directory removal which will\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#464] Update baking docs
Problem: there's a new mandatory liquidity baking toggle vote option,
but we don't mention it in the docs.
Solution: added a subsection explaining the default and how to change it. |
603,650 | 22.06.2022 12:28:05 | -7,200 | 553d39e242351a529a3937d41fe6b58f3a856057 | Bump release number for new tezos-baking package
Problem: we've updated the tezos-baking package and would like to
release the changes in a new version, for which we need to bump the
release number.
Solution: bumped the release number and updated the letter version
of tezos-baking. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -494,7 +494,7 @@ class TezosBakingServicesPackage(AbstractPackage):\n# native releases, so we append an extra letter to the version of\n# the package.\n# This should be reset to \"\" whenever the native version is bumped.\n- letter_version = \"a\"\n+ letter_version = \"b\"\nbuildfile = \"setup.py\"\n"
},
{
"change_type": "MODIFY",
"old_path": "meta.json",
"new_path": "meta.json",
"diff": "{\n- \"release\": \"2\",\n+ \"release\": \"3\",\n\"maintainer\": \"Serokell <hi@serokell.io>\"\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#484] Bump release number for new tezos-baking package
Problem: we've updated the tezos-baking package and would like to
release the changes in a new version, for which we need to bump the
release number.
Solution: bumped the release number and updated the letter version
of tezos-baking. |
603,652 | 30.06.2022 11:02:29 | -10,800 | 8be8a0476b50464e7b4456511250af332337c540 | Avoid unnecessary formulae bottles hashes' updates
Problem: GA tend to create a PR with bottles hashes updates
even though formulae already have these hashes.
Solution: Check if the formula already has the hash of the given bottle
before updating it. | [
{
"change_type": "MODIFY",
"old_path": "scripts/bottle-hashes.sh",
"new_path": "scripts/bottle-hashes.sh",
"diff": "@@ -17,10 +17,13 @@ then\nbottle_hash=$(sha256sum \"$bottle\" | cut -d \" \" -f 1)\nformula_name=\"${BASH_REMATCH[1]}\"\nos=\"${BASH_REMATCH[2]}\"\n-\n- if [[ -f \"./Formula/$formula_name.rb\" ]]; then\n+ formula_file=\"./Formula/$formula_name.rb\"\n+ if [[ -f $formula_file ]]; then\nline=\"\\ sha256 cellar: :any, $os: \\\"$bottle_hash\\\"\"\n- sed -i \"/root_url.*/a $line\" \"./Formula/$formula_name.rb\"\n+ # Update only when this formula doesn't have a hash for the bottle\n+ if ! grep \"$line\" \"$formula_file\" &> /dev/null; then\n+ sed -i \"/root_url.*/a $line\" \"$formula_file\"\n+ fi\nfi\nfi\ndone\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#486] Avoid unnecessary formulae bottles hashes' updates
Problem: GA tend to create a PR with bottles hashes updates
even though formulae already have these hashes.
Solution: Check if the formula already has the hash of the given bottle
before updating it. |
603,661 | 05.07.2022 12:04:20 | -10,800 | a72413f967157ec4d38721c5df5f88dd959a5bd0 | Add missing default value for binaries_dir | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -163,7 +163,7 @@ def mk_dh_flags(package):\n)\n-def gen_systemd_rules_contents(package, binaries_dir):\n+def gen_systemd_rules_contents(package, binaries_dir=None):\noverride_dh_install_init = \"override_dh_installinit:\\n\"\npackage_name = package.name.lower()\nfor systemd_unit in package.systemd_units:\n"
}
] | Python | MIT License | serokell/tezos-packaging | Add missing default value for binaries_dir |
603,652 | 06.07.2022 16:06:51 | -10,800 | 2a0b2a4b6e4bf5f9b7ed29132ee3dd6d2e018c70 | 'setup ledger to bake for' only for ledger key
Problem: Currently setup wizard attempts to call 'setup ledger to bake
for' for every key type. As a result, an attempt to setup remote or
secret-key baker fails with an error.
Solution: Call this function only when the selected key type is ledger. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -33,13 +33,6 @@ snapshot_import_modes = {\n\"skip\": \"Skip snapshot import and synchronize with the network from scratch\",\n}\n-key_import_modes = {\n- \"ledger\": \"From a ledger\",\n- \"secret-key\": \"Either the unencrypted or password-encrypted secret key for your address\",\n- \"remote\": \"Remote key governed by a signer running on a different machine\",\n- \"json\": \"Faucet JSON file from https://teztnets.xyz/\",\n-}\n-\nsystemd_enable = {\n\"yes\": \"Enable the services, running them both now and on every boot\",\n\"no\": \"Start the services this time only\",\n@@ -398,18 +391,21 @@ class Setup(Setup):\nkey_mode_query = get_key_mode_query(key_import_modes)\n- ledger_set_up = False\n- while not ledger_set_up:\n+ baker_set_up = False\n+ while not baker_set_up:\nself.import_key(key_mode_query, \"Baking\")\n+ if self.config[\"key_import_mode\"] == \"ledger\":\ntry:\nproc_call(\nf\"sudo -u tezos {suppress_warning_text} tezos-client {tezos_client_options} \"\nf\"setup ledger to bake for {baker_alias} --main-hwm {self.get_current_head_level()}\"\n)\n- ledger_set_up = True\n+ baker_set_up = True\nexcept PermissionError:\nprint(\"Going back to the import mode selection.\")\n+ else:\n+ baker_set_up = True\ndef register_baker(self):\nprint()\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#491] 'setup ledger to bake for' only for ledger key
Problem: Currently setup wizard attempts to call 'setup ledger to bake
for' for every key type. As a result, an attempt to setup remote or
secret-key baker fails with an error.
Solution: Call this function only when the selected key type is ledger. |
603,652 | 07.07.2022 10:56:09 | -10,800 | 99dd80b49982d905c1eaffc000659c7ea5010353 | [Chore] Bump release number and 'tezos-baking' letter version
Problem: We'd like to release packages with the recent changes that
include Ithaca support removal and fix to the setup wizard.
Solution: Bump release number and 'tezos-baking' package letter version,
so that it's possible to release new packages. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -514,7 +514,7 @@ class TezosBakingServicesPackage(AbstractPackage):\n# native releases, so we append an extra letter to the version of\n# the package.\n# This should be reset to \"\" whenever the native version is bumped.\n- letter_version = \"b\"\n+ letter_version = \"c\"\nbuildfile = \"setup.py\"\n"
},
{
"change_type": "MODIFY",
"old_path": "meta.json",
"new_path": "meta.json",
"diff": "{\n- \"release\": \"3\",\n+ \"release\": \"4\",\n\"maintainer\": \"Serokell <hi@serokell.io>\"\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Bump release number and 'tezos-baking' letter version
Problem: We'd like to release packages with the recent changes that
include Ithaca support removal and fix to the setup wizard.
Solution: Bump release number and 'tezos-baking' package letter version,
so that it's possible to release new packages. |
603,652 | 08.07.2022 12:43:24 | -10,800 | a5830c132e39f1561a0cd30e2f1a6a317d4fed8d | Ensure formula have the same version as current tag to update bottle
Problem: In some cases bottles' hashes are updated even when current
release hasn't updated any formulae.
Solution: Assert that the formula version as the same as current tag
before updating bottle hash. | [
{
"change_type": "MODIFY",
"old_path": "scripts/bottle-hashes.sh",
"new_path": "scripts/bottle-hashes.sh",
"diff": "# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-# This script takes a directory where the bottles are stored as its argument.\n+# This script takes a directory where the bottles are stored and release tag as its arguments.\n# Run it from the base directory (tezos-packaging).\nset -e\n@@ -19,10 +19,13 @@ then\nos=\"${BASH_REMATCH[2]}\"\nformula_file=\"./Formula/$formula_name.rb\"\nif [[ -f $formula_file ]]; then\n+ formula_tag=\"$(sed -n \"s/^\\s\\+version \\\"\\(.*\\)\\\"/\\1/p\" \"$formula_file\")\"\nline=\"\\ sha256 cellar: :any, $os: \\\"$bottle_hash\\\"\"\n- # Update only when this formula doesn't have a hash for the bottle\n- if ! grep \"$line\" \"$formula_file\" &> /dev/null; then\n+ # Update only when formula has the same version as provided current tag\n+ if [[ \"$formula_tag\" == \"$2\" ]]; then\nsed -i \"/root_url.*/a $line\" \"$formula_file\"\n+ else\n+ echo \"Current tag is $2, while formula has $formula_tag version\"\nfi\nfi\nfi\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/sync-bottle-hashes.sh",
"new_path": "scripts/sync-bottle-hashes.sh",
"diff": "@@ -29,7 +29,7 @@ fi\nwhile : ; do\ngit fetch --all\ngit reset --hard origin/\"$branch_name\"\n- ./scripts/bottle-hashes.sh \"./$2\"\n+ ./scripts/bottle-hashes.sh \"./$2\" \"$1\"\ngit commit -a -m \"[Chore] Add $1 hashes to brew formulae for $2\"\n! git push || break\ndone\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/bottle-hashes/test-hash-insert.sh",
"new_path": "tests/bottle-hashes/test-hash-insert.sh",
"diff": "@@ -41,7 +41,7 @@ dd if=/dev/urandom of=$bottle_dir/$catalina_bottle count=2000 status=none\ndd if=/dev/urandom of=$bottle_dir/$big_sur_bottle count=2000 status=none\n# Run the hash inserting script\n-../../scripts/bottle-hashes.sh $bottle_dir\n+../../scripts/bottle-hashes.sh \"$bottle_dir\" \"v0.0-1\"\n# Assert the info was inserted correctly\ncatalina_hash=\"$(sha256sum $bottle_dir/$catalina_bottle | cut -d \" \" -f 1)\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#486] Ensure formula have the same version as current tag to update bottle
Problem: In some cases bottles' hashes are updated even when current
release hasn't updated any formulae.
Solution: Assert that the formula version as the same as current tag
before updating bottle hash. |
603,652 | 08.07.2022 14:05:20 | -10,800 | dc9274883502f652a3e3cd14cf5571b74e81b1da | Use current git tag in 'sync-bottle-hashes.sh'
Problem: GA invocation of this script uses tag from formulae
to determine current release.
Solution: Use 'github.ref' instead to have the same behaviour as BK
pipeline. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-bottles.yml",
"new_path": ".github/workflows/build-bottles.yml",
"diff": "@@ -89,9 +89,9 @@ jobs:\n- name: Download Catalina bottles from the release\nenv:\nGITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n- run: gh release download \"${{ env.tag }}\" -p \"*.catalina.bottle.tar.gz\" -D \"./Catalina\"\n+ run: gh release download \"${{ github.ref_name }}\" -p \"*.catalina.bottle.tar.gz\" -D \"./Catalina\"\n- name: Add bottle hashes to formulae\nenv:\nGITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n- run: ./scripts/sync-bottle-hashes.sh \"${{ env.tag }}\" \"Catalina\"\n+ run: ./scripts/sync-bottle-hashes.sh \"${{ github.ref_name }}\" \"Catalina\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#486] Use current git tag in 'sync-bottle-hashes.sh'
Problem: GA invocation of this script uses tag from formulae
to determine current release.
Solution: Use 'github.ref' instead to have the same behaviour as BK
pipeline. |
603,660 | 16.07.2022 21:12:59 | -10,800 | 40b8e3777a224b2948b0e2bb17b89f1e21c7e014 | [Chore] update-tezos.sh hotfix | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "@@ -38,8 +38,8 @@ if [[ \"$latest_upstream_tag\" != \"$our_tezos_tag\" ]]; then\ngit switch -c \"$branch_name\"\necho \"Updating Tezos to $latest_upstream_tag\"\n- ./update-input.py tezos \"$latest_upstream_tag_hash\"\n- ./update-input.py opam-repository \"$opam_repository_tag\"\n+ ./scripts/update-input.py tezos \"$latest_upstream_tag_hash\"\n+ ./scripts/update-input.py opam-repository \"$opam_repository_tag\"\ngit commit -a -m \"[Chore] Bump Tezos sources to $latest_upstream_tag\" --gpg-sign=\"tezos-packaging@serokell.io\"\n./scripts/update-brew-formulae.sh \"$latest_upstream_tag-1\"\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] update-tezos.sh hotfix |
603,660 | 17.07.2022 13:33:06 | -10,800 | e19080a1fcea9aaf516f4dafb3259abb87d76aa0 | [Chore] autorelease.sh hotfix
Problem: release derivation wasn't built due to incorrect
flake output declaration.
Solution: Get rid of misleading flake-utils functions. | [
{
"change_type": "MODIFY",
"old_path": "default.nix",
"new_path": "default.nix",
"diff": "# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-(import\n+let\n+ inherit (import\n(\nlet lock = builtins.fromJSON (builtins.readFile ./flake.lock); in\nfetchTarball {\nurl = \"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz\";\nsha256 = lock.nodes.flake-compat.locked.narHash;\n}\n- )\n- { src = ./.; }\n-).defaultNix\n+ ) { src = ./.; })\n+ defaultNix;\n+in defaultNix // defaultNix.devShells.${__currentSystem}\n+ // { binaries-test = defaultNix.binaries-test.${__currentSystem};\n+ release = defaultNix.release.${__currentSystem};\n+ }\n"
},
{
"change_type": "MODIFY",
"old_path": "flake.nix",
"new_path": "flake.nix",
"diff": "tezos.flake = false;\n};\n- outputs = inputs@{ self, nixpkgs, flake-utils, serokell-nix, nix, ... }: {\n-\n+ outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-utils, serokell-nix, nix, ... }:\n+ {\nnixosModules = {\ntezos-node = import ./nix/modules/tezos-node.nix;\ntezos-accuser = import ./nix/modules/tezos-accuser.nix;\nocaml-overlay = callPackage ./nix/build/ocaml-overlay.nix {};\n+ overlay = final: prev: {\n+ inherit (inputs) serokell-nix;\n+ nix = nix.packages.${system}.default;\n+ zcash-params = callPackage ./nix/build/zcash.nix {};\n+ };\n+\npkgs = import nixpkgs {\ninherit system;\noverlays = [\n+ overlay\nserokell-nix.overlay\nocaml-overlay\n- (_: _: { inherit serokell-nix;\n- nix = nix.packages.${system}.default;\n- })\n];\n};\n- unstable = import inputs.nixpkgs-unstable {\n+ unstable = import nixpkgs-unstable {\ninherit system;\noverlays = [(_: _: { nix = nix.packages.${system}.default; })];\n};\n+ pkgs-darwin = nixpkgs-unstable.legacyPackages.\"aarch64-darwin\";\n+\ncallPackage = pkg: input:\nimport pkg (inputs // { inherit sources protocols meta pkgs; } // input);\ntezos-release = callPackage ./release.nix {};\n- in rec {\n+ in {\n- legacyPackages = pkgs;\n+ legacyPackages = unstable;\n- inherit tezos-release;\n-\n- apps.tezos-client = {\n- type = \"app\";\n- program = \"${packages.tezos-client}/bin/tezos-client\";\n- };\n+ release = tezos-release;\n- packages = binaries // { default = packages.binaries; };\n+ packages = binaries // { default = self.packages.${system}.binaries; };\ndevShells = {\nbuildkite = callPackage ./.buildkite/shell.nix {};\nautorelease = callPackage ./scripts/shell.nix {};\n- autorelease-macos = callPackage ./scripts/macos-shell.nix {};\n+ autorelease-macos = callPackage ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };\ndev = callPackage ./shell.nix { pkgs = unstable; };\n};\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/build/zcash.nix",
"new_path": "nix/build/zcash.nix",
"diff": "# zcash-params required for building some of the tezos binaries\n# and for running tests\n-{ pkgs }:\n+{ pkgs, ... }:\nwith pkgs;\nlet\nsapling-spend-params = fetchurl {\n"
},
{
"change_type": "MODIFY",
"old_path": "release.nix",
"new_path": "release.nix",
"diff": "#\n# SPDX-License-Identifier: LicenseRef-MIT-TQ\n-{ pkgs, sources, meta, protocols, ... }:\n+{ pkgs, sources, meta, protocols, ... }: { docker-binaries, docker-arm-binaries }:\nlet\nsource = sources.tezos;\ncommonMeta = {\n@@ -13,9 +13,9 @@ let\nlicenseFile = \"${source}/LICENSE\";\n} // meta;\nrelease = pkgs.callPackage ./tezos-release.nix {\n- binaries = ./binaries/docker;\n- arm-binaries = ./arm-binaries/docker;\n+ binaries = docker-binaries;\n+ arm-binaries = docker-arm-binaries;\ninherit commonMeta protocols; inherit (pkgs.lib) replaceStrings;\n};\n-in { tezos-release = release; }\n+in release\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/autorelease.sh",
"new_path": "scripts/autorelease.sh",
"diff": "#!/usr/bin/env nix-shell\n-#!nix-shell .. -A devShells.x86_64-linux.autorelease -i bash\n+#!nix-shell .. -A autorelease -i bash\n# shellcheck shell=bash\n# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n@@ -21,7 +21,7 @@ trap finish EXIT\nassets_dir=$TEMPDIR/assets\n# Build tezos-release\n-nix-build . -A tezos-release -o \"$TEMPDIR\"/\"$project\" \\\n+nix-build . -A release -o \"$TEMPDIR\"/\"$project\" \\\n--arg docker-binaries ./binaries/docker --arg docker-arm-binaries ./arm-binaries/docker\nmkdir -p \"$assets_dir\"\n# Move archive with binaries and tezos license to assets\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/build-all-bottles.sh",
"new_path": "scripts/build-all-bottles.sh",
"diff": "#! /usr/bin/env nix-shell\n-#! nix-shell .. -A devShells.x86_64-linux.autorelease-macos -i bash\n+#! nix-shell .. -A autorelease-macos -i bash\n# shellcheck shell=bash\n# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/publish-native-packages.sh",
"new_path": "scripts/publish-native-packages.sh",
"diff": "#! /usr/bin/env nix-shell\n-#! nix-shell .. -A devShells.x86_64-linux.autorelease -i bash\n+#! nix-shell .. -A autorelease -i bash\n# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/update-tezos.sh",
"new_path": "scripts/update-tezos.sh",
"diff": "#! /usr/bin/env nix-shell\n-#! nix-shell .. -A devShells.x86_64-linux.autorelease -i bash\n+#! nix-shell .. -A autorelease -i bash\n# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n"
},
{
"change_type": "MODIFY",
"old_path": "shell.nix",
"new_path": "shell.nix",
"diff": "# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-{ pkgs, ... }:\n+{ pkgs, meta, ... }:\nwith pkgs; mkShell {\nbuildInputs = [\nnix\n@@ -12,6 +12,10 @@ with pkgs; mkShell {\npython3Packages.black\nshellcheck\nvagrant\n+ libvirt\n+ qemu\n+ jq\n+ buildkite-agent\n];\n- TEZOS_VERSION=\"v13.1\";\n+ TEZOS_VERSION= with pkgs.lib; lists.last (strings.splitString \"/\" (meta.tezos_ref));\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/tezos-binaries.nix",
"new_path": "tests/tezos-binaries.nix",
"diff": "@@ -9,7 +9,7 @@ in import \"${nixpkgs}/nixos/tests/make-test-python.nix\" ({ ... }:\nvirtualisation.memorySize = 1024;\nvirtualisation.diskSize = 1024;\nenvironment.sessionVariables.XDG_DATA_DIRS =\n- [ \"${pkgs.zcash}\" ];\n+ [ \"${pkgs.zcash-params}\" ];\nsecurity.pki.certificateFiles = [ ./ca.cert ];\n};\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] autorelease.sh hotfix
Problem: release derivation wasn't built due to incorrect
flake output declaration.
Solution: Get rid of misleading flake-utils functions. |
603,661 | 20.07.2022 23:30:59 | -10,800 | 4f8d648da838f63a3334eb302c278d526ec433eb | Add ability to override the license version
Problem: We cannot use a version that is not a tag because we're
fetching the LICENSE for that specific tag.
Solution: Add the option to override the license version and use the
default if not given. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/meta.py",
"new_path": "docker/package/meta.py",
"diff": "@@ -6,21 +6,27 @@ import os, json\nclass PackagesMeta:\n- def __init__(self, version, release, ubuntu_epoch, fedora_epoch, maintainer):\n+ def __init__(\n+ self, version, release, ubuntu_epoch, fedora_epoch, maintainer, license_version\n+ ):\nself.version = version\nself.release = release\nself.ubuntu_epoch = ubuntu_epoch\nself.fedora_epoch = fedora_epoch\nself.maintainer = maintainer\n+ self.license_version = license_version\n+version = os.environ[\"TEZOS_VERSION\"][1:]\n+\nmeta_json_contents = json.load(\nopen(f\"{os.path.dirname(__file__)}/../../meta.json\", \"r\")\n)\npackages_meta = PackagesMeta(\n- version=os.environ[\"TEZOS_VERSION\"][1:],\n+ version=version,\nrelease=str(meta_json_contents[\"release\"]),\nubuntu_epoch=2,\nfedora_epoch=1,\nmaintainer=meta_json_contents[\"maintainer\"],\n+ license_version=os.getenv(\"TEZOS_LICENSE_VERSION\", f\"v{version}\"),\n)\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -395,7 +395,7 @@ set -e\n\"-q\",\n\"-O\",\nout,\n- f\"https://gitlab.com/tezos/tezos/-/raw/v{self.meta.version}/LICENSE\",\n+ f\"https://gitlab.com/tezos/tezos/-/raw/{self.meta.license_version}/LICENSE\",\n],\ncheck=True,\n)\n"
}
] | Python | MIT License | serokell/tezos-packaging | Add ability to override the license version
Problem: We cannot use a version that is not a tag because we're
fetching the LICENSE for that specific tag.
Solution: Add the option to override the license version and use the
default if not given. |
603,650 | 15.07.2022 20:50:41 | -7,200 | 71deb951e9357eec11b7d941a6d6b6349b78222c | [Chore] Remove bin_sandbox git patch
Problem: we have a static_libs.patch that we apply to the cloned
tezos repo, but the patched file (src/bin_sandbox/dune) no longer
exists upstream.
Solution: remove the patch file and the patching command from
the build script. | [
{
"change_type": "MODIFY",
"old_path": "docker/build/Dockerfile",
"new_path": "docker/build/Dockerfile",
"diff": "@@ -8,7 +8,6 @@ RUN apk --no-cache --virtual add rsync git m4 build-base patch unzip \\\nautoconf automake libtool linux-headers cargo libffi-dev zlib-static\nCOPY ./build/build-libusb-and-hidapi.sh /build-libusb-and-hidapi.sh\nRUN /build-libusb-and-hidapi.sh\n-COPY ./build/static_libs.patch /static.patch\nARG TEZOS_VERSION\nCOPY ./build/build-tezos.sh /build-tezos.sh\nRUN /build-tezos.sh ${TEZOS_VERSION}\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/build/Dockerfile.aarch64",
"new_path": "docker/build/Dockerfile.aarch64",
"diff": "@@ -14,7 +14,6 @@ RUN apk --no-cache --virtual add rsync git m4 build-base patch unzip \\\nautoconf automake libtool linux-headers cargo libffi-dev zlib-static\nCOPY ./build/build-libusb-and-hidapi.sh /build-libusb-and-hidapi.sh\nRUN /build-libusb-and-hidapi.sh\n-COPY ./build/static_libs.patch /static.patch\nARG TEZOS_VERSION\nCOPY ./build/build-tezos.sh /build-tezos.sh\nRUN /build-tezos.sh ${TEZOS_VERSION}\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/build/build-tezos.sh",
"new_path": "docker/build/build-tezos.sh",
"diff": "@@ -11,7 +11,6 @@ tezos_version=\"$1\"\ngit clone --single-branch --branch \"$tezos_version\" https://gitlab.com/tezos/tezos.git --depth 1\ncd tezos\n-git apply ../static.patch\nexport OPAMYES=\"true\"\n# Disable usage of instructions from the ADX extension to avoid incompatibility\n# with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n"
},
{
"change_type": "DELETE",
"old_path": "docker/build/static_libs.patch",
"new_path": null,
"diff": "-# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n-# SPDX-License-Identifier: LicenseRef-MIT-OA\n-diff --git a/src/bin_sandbox/dune b/src/bin_sandbox/dune\n-index 90d65b78a..b6fd1eb08 100644\n---- a/src/bin_sandbox/dune\n-+++ b/src/bin_sandbox/dune\n-@@ -4,4 +4,5 @@\n- tezos-base\n- tezos-base.unix\n- fmt\n-- flextesa))\n-+ flextesa)\n-+ (flags :standard -ccopt -static))\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove bin_sandbox git patch
Problem: we have a static_libs.patch that we apply to the cloned
tezos repo, but the patched file (src/bin_sandbox/dune) no longer
exists upstream.
Solution: remove the patch file and the patching command from
the build script. |
603,650 | 15.07.2022 21:48:31 | -7,200 | 132017fb91da1a0966e3511a8edef9404f458ffc | [Chore] Remove tezos-sandbox from the build process
Problem: the tezos-sandbox code and binary has been dropped
from upstream Octez, but we still attempt to build it.
Solution: remove all references and builds of tezos-sandbox. | [
{
"change_type": "DELETE",
"old_path": "Formula/tezos-sandbox.rb",
"new_path": null,
"diff": "-# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n-# SPDX-License-Identifier: LicenseRef-MIT-OA\n-\n-class TezosSandbox < Formula\n- @all_bins = []\n-\n- class << self\n- attr_accessor :all_bins\n- end\n- homepage \"https://gitlab.com/tezos/tezos\"\n-\n- url \"https://gitlab.com/tezos/tezos.git\", :tag => \"v14.0-rc1\", :shallow => false\n-\n- version \"v14.0-rc1-1\"\n-\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n- build_dependencies.each do |dependency|\n- depends_on dependency => :build\n- end\n-\n- dependencies = %w[gmp hidapi libev libffi coreutils util-linux]\n- dependencies.each do |dependency|\n- depends_on dependency\n- end\n- desc \"A tool for setting up and running testing scenarios with the local blockchain\"\n-\n- bottle do\n- root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosSandbox.version}/\"\n- end\n-\n- def make_deps\n- ENV.deparallelize\n- ENV[\"CARGO_HOME\"]=\"./.cargo\"\n- # Disable usage of instructions from the ADX extension to avoid incompatibility\n- # with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n- ENV[\"BLST_PORTABLE\"]=\"yes\"\n- # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer\n- arch = RUBY_PLATFORM.include?(\"arm64\") ? \"arm64\" : \"x86_64\"\n- system \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n- system \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n- ENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n- system \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\n- system [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\n- end\n-\n- def install_template(dune_path, exec_path, name)\n- bin.mkpath\n- self.class.all_bins << name\n- system [\"eval $(opam env)\", \"dune build #{dune_path}\", \"cp #{exec_path} #{name}\"].join(\" && \")\n- bin.install name\n- end\n-\n- def install\n- make_deps\n- install_template \"src/bin_sandbox/main.exe\",\n- \"_build/default/src/bin_sandbox/main.exe\",\n- \"tezos-sandbox\"\n- end\n-\n- # homebrew does not allow for post-setup modification of user files,\n- # so we have to provide a caveat to be displayed for the user to adjust $PATH manually\n- def caveats\n- <<~EOS\n- tezos-sandbox depends on 'coreutils' and 'util-linux', which have been installed. Please run the following command to bring them in scope:\n- export PATH=#{HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin:#{HOMEBREW_PREFIX}/opt/util-linux/bin:$PATH\n- EOS\n- end\n-end\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/build/build-tezos.sh",
"new_path": "docker/build/build-tezos.sh",
"diff": "@@ -22,5 +22,5 @@ source \"$HOME/.cargo/env\"\nopam init --bare --disable-sandboxing\nmake build-deps\n-eval \"$(opam env)\" && PROFILE=\"static\" make build && make build-sandbox\n+eval \"$(opam env)\" && PROFILE=\"static\" make build\nchmod +w tezos-*\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/docker-static-build.sh",
"new_path": "docker/docker-static-build.sh",
"diff": "set -euo pipefail\n-binaries=(\"tezos-admin-client\" \"tezos-client\" \"tezos-node\" \"tezos-signer\" \"tezos-codec\" \"tezos-sandbox\")\n+binaries=(\"tezos-admin-client\" \"tezos-client\" \"tezos-node\" \"tezos-signer\" \"tezos-codec\")\nfor proto in $(jq -r \".active | .[]\" ../protocols.json); do\nbinaries+=(\"tezos-accuser-$proto\" \"tezos-baker-$proto\" )\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/build/release-binaries.nix",
"new_path": "nix/build/release-binaries.nix",
"diff": "@@ -32,11 +32,6 @@ in [\ndescription = \"A client to decode and encode JSON\";\nsupports = protocolsFormatted;\n}\n- {\n- name = \"tezos-sandbox\";\n- description = \"A tool for setting up and running testing scenarios with the local blockchain\";\n- supports = protocolsFormatted;\n- }\n] ++ builtins.concatMap (protocol: [\n{\nname = \"tezos-baker-${protocol}\";\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove tezos-sandbox from the build process
Problem: the tezos-sandbox code and binary has been dropped
from upstream Octez, but we still attempt to build it.
Solution: remove all references and builds of tezos-sandbox. |
603,652 | 18.07.2022 10:57:01 | -10,800 | ade43ca87d08770a97b6f0ea6be5b988cee5a901 | [Chore] Add 'coreutils' to Alpine builder images
Problem: Octez building scripts rely on sha256sum from coreutils.
Solution: Add coreutils to the list of installed packages. | [
{
"change_type": "MODIFY",
"old_path": "docker/build/Dockerfile",
"new_path": "docker/build/Dockerfile",
"diff": "@@ -5,7 +5,7 @@ FROM alpine:3.12\nRUN apk update\nRUN apk --no-cache --virtual add rsync git m4 build-base patch unzip \\\nbubblewrap wget pkgconfig gmp-dev libev-dev hidapi-dev eudev-dev perl opam libusb-dev bash \\\n- autoconf automake libtool linux-headers cargo libffi-dev zlib-static\n+ autoconf automake libtool linux-headers cargo libffi-dev zlib-static coreutils\nCOPY ./build/build-libusb-and-hidapi.sh /build-libusb-and-hidapi.sh\nRUN /build-libusb-and-hidapi.sh\nARG TEZOS_VERSION\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/build/Dockerfile.aarch64",
"new_path": "docker/build/Dockerfile.aarch64",
"diff": "@@ -11,7 +11,7 @@ COPY --from=binary-fetch qemu-aarch64-static /usr/bin/qemu-aarch64-static\nRUN apk update\nRUN apk --no-cache --virtual add rsync git m4 build-base patch unzip \\\nbubblewrap wget pkgconfig gmp-dev libev-dev hidapi-dev eudev-dev perl opam libusb-dev bash \\\n- autoconf automake libtool linux-headers cargo libffi-dev zlib-static\n+ autoconf automake libtool linux-headers cargo libffi-dev zlib-static coreutils\nCOPY ./build/build-libusb-and-hidapi.sh /build-libusb-and-hidapi.sh\nRUN /build-libusb-and-hidapi.sh\nARG TEZOS_VERSION\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add 'coreutils' to Alpine builder images
Problem: Octez building scripts rely on sha256sum from coreutils.
Solution: Add coreutils to the list of installed packages. |
603,660 | 21.07.2022 15:28:06 | -10,800 | 170517a8b61efedb3efe507809615d59420b5ddc | [Chore] Bump Tezos sources to v14.0-rc1 | [
{
"change_type": "MODIFY",
"old_path": "flake.lock",
"new_path": "flake.lock",
"diff": "\"flake-compat\": \"flake-compat_2\",\n\"flake-utils\": \"flake-utils_2\",\n\"nixpkgs\": \"nixpkgs_3\",\n- \"opam-repository\": \"opam-repository\",\n+ \"opam-repository\": [\n+ \"opam-repository\"\n+ ],\n\"opam2json\": \"opam2json\"\n},\n\"locked\": {\n\"opam-repository\": {\n\"flake\": false,\n\"locked\": {\n- \"lastModified\": 1643196577,\n- \"narHash\": \"sha256-w8lV9xEGqwpr/LtGBpDFSha+7XA1Zv+Cw7977bqqZNk=\",\n- \"owner\": \"ocaml\",\n- \"repo\": \"opam-repository\",\n- \"rev\": \"4b471f489a7199ec4dfb67363243c64caac9306c\",\n- \"type\": \"github\"\n- },\n- \"original\": {\n- \"owner\": \"ocaml\",\n- \"repo\": \"opam-repository\",\n- \"type\": \"github\"\n- }\n- },\n- \"opam-repository_2\": {\n- \"flake\": false,\n- \"locked\": {\n- \"lastModified\": 1651666905,\n- \"narHash\": \"sha256-iHpY6tD0E3yqds07Lzhx77QkCFm61nuJceoeuUO77O0=\",\n+ \"lastModified\": 1657872079,\n+ \"narHash\": \"sha256-HKQOL+vBLwy8Wdy7/yeK2EcKwJnr7r8rh2pT6TPfMdw=\",\n\"owner\": \"tezos\",\n\"repo\": \"opam-repository\",\n- \"rev\": \"845375388d477153b36344f69a23a1b34b2bf82e\",\n+ \"rev\": \"b2bd9e9176c256069b00a697c75eda9c43d388b5\",\n\"type\": \"gitlab\"\n},\n\"original\": {\n\"nixpkgs\": \"nixpkgs_2\",\n\"nixpkgs-unstable\": \"nixpkgs-unstable\",\n\"opam-nix\": \"opam-nix\",\n- \"opam-repository\": \"opam-repository_2\",\n+ \"opam-repository\": \"opam-repository\",\n\"serokell-nix\": \"serokell-nix\",\n\"tezos\": \"tezos\"\n}\n\"tezos\": {\n\"flake\": false,\n\"locked\": {\n- \"lastModified\": 1651744524,\n- \"narHash\": \"sha256-AEY/m3c+6Yo/gqzO+4vzExQ20ICleIUsSFO1qWTO/OI=\",\n+ \"lastModified\": 1657888570,\n+ \"narHash\": \"sha256-K4OlGRwyU0gpnM9uzJT2UuIhW/sBuDOIVZYe43rCNK0=\",\n\"owner\": \"tezos\",\n\"repo\": \"tezos\",\n- \"rev\": \"cb9f439e58c761e76ade589d1cdbd2abb737dc68\",\n+ \"rev\": \"e0871e19f4ff9acd52dc8458bc46a90b7fd20a1d\",\n\"type\": \"gitlab\"\n},\n\"original\": {\n"
},
{
"change_type": "MODIFY",
"old_path": "flake.nix",
"new_path": "flake.nix",
"diff": "nix.url = \"github:nixos/nix\";\nopam-nix.url = \"github:tweag/opam-nix\";\n+ opam-nix.inputs.opam-repository.follows = \"opam-repository\";\nflake-compat.flake = false;\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Bump Tezos sources to v14.0-rc1 |
603,660 | 21.07.2022 15:29:53 | -10,800 | 4ae4a04858f81c5d3ca6b934ff66ed0e1d519c2e | [Chore] Bump opam-nix
To fix 'ocamlfind' build. | [
{
"change_type": "MODIFY",
"old_path": "flake.lock",
"new_path": "flake.lock",
"diff": "\"opam2json\": \"opam2json\"\n},\n\"locked\": {\n- \"lastModified\": 1651063114,\n- \"narHash\": \"sha256-rB+5No8Tc77T9nj5TAX/WhNZH+aZv+HTWfxPUZ+bmB0=\",\n+ \"lastModified\": 1657909029,\n+ \"narHash\": \"sha256-dsNIoNA4C2hu/5TllM89+7RUqchVjp8CUUSmG69Z2w0=\",\n\"owner\": \"tweag\",\n\"repo\": \"opam-nix\",\n- \"rev\": \"44b97c71a379bb9517135600c7d5e83d941e65d9\",\n+ \"rev\": \"ac7ba6e749c01379c748eda43ae715e1a8fa671f\",\n\"type\": \"github\"\n},\n\"original\": {\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Bump opam-nix
To fix 'ocamlfind' build. |
603,660 | 21.07.2022 16:31:35 | -10,800 | fad51b1ba82913267bea1e68b2dc5e2f122dea19 | [Chore] Fix update-input.py
Problem: flake.lock entry for input
not always equals to input title.
Solution: use flake.lock's resolve dict
for finding right input. | [
{
"change_type": "MODIFY",
"old_path": "scripts/update-input.py",
"new_path": "scripts/update-input.py",
"diff": "# SPDX-License-Identifier: LicenseRef-MIT-OA\nimport argparse\n-import re\nimport json\nfrom subprocess import call\nwith open(\"flake.lock\") as f:\n- lock = json.load(f)[\"nodes\"]\n+ lock = json.load(f)\nparser = argparse.ArgumentParser()\nparser.add_argument(\"input\", type=str)\n@@ -17,7 +16,17 @@ parser.add_argument(\"rev\", type=str)\nargs = parser.parse_args()\nname = args.input\n-meta = lock[name][\"locked\"]\n+\n+root = lock[\"root\"]\n+\n+nodes = lock[\"nodes\"]\n+\n+inputs = nodes[root][\"inputs\"]\n+\n+lock_name = inputs[name]\n+\n+meta = nodes[lock_name][\"locked\"]\n+\nurl = f'{meta[\"type\"]}:{meta[\"owner\"]}/{meta[\"repo\"]}/{args.rev}'\ncall([\"nix\", \"flake\", \"lock\", \"--override-input\", name, url])\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix update-input.py
Problem: flake.lock entry for input
not always equals to input title.
Solution: use flake.lock's resolve dict
for finding right input. |
603,660 | 21.07.2022 16:55:25 | -10,800 | e3c73d7a979ad23f7eb3c08631fb4b978b56b42c | [Chore] Support new protocol and testnets in native packaging | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -17,10 +17,14 @@ from .systemd import Service, ServiceFile, SystemdUnit, Unit, Install\nnetworks = {\n\"mainnet\": \"mainnet\",\n\"jakartanet\": \"jakartanet\",\n+ \"ghostnet\": \"ghostnet\",\n+ \"kathmandunet\": \"https://teztnets.xyz/kathmandunet\",\n}\nnetworks_protos = {\n\"mainnet\": [\"013-PtJakart\"],\n\"jakartanet\": [\"013-PtJakart\"],\n+ \"ghostnet\": [\"013-PtJakart\"],\n+ \"kathmandunet\": [\"014-PtKathma\"]\n}\nsigner_units = [\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Support new protocol and testnets in native packaging |
603,660 | 21.07.2022 17:19:27 | -10,800 | 54f0de93703536a2411333589afce62a55540483 | [Chore] Update doc | [
{
"change_type": "MODIFY",
"old_path": "docker/package/tezos_setup_wizard.py",
"new_path": "docker/package/tezos_setup_wizard.py",
"diff": "@@ -98,8 +98,9 @@ network_query = Step(\nid=\"network\",\nprompt=\"Which Tezos network would you like to use?\\nCurrently supported:\",\nhelp=\"The selected network will be used to set up all required services.\\n\"\n- \"The currently supported protocol is 013-PtJakart (used on jakartanet and mainnet).\\n\"\n- \"Keep in mind that you must select the test network (jakartanet)\\n\"\n+ \"The currently supported protocol is 013-PtJakart (used on jakartanet, ghostnet and mainnet)\\n\"\n+ \"and 014-PtKathma (used on kathmandunet)\"\n+ \"Keep in mind that you must select the test network (e.g. jakartanet)\\n\"\n\"if you plan on baking with a faucet JSON file.\\n\",\noptions=networks,\nvalidator=Validator(enum_range_validator(networks)),\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/wizard_structure.py",
"new_path": "docker/package/wizard_structure.py",
"diff": "@@ -245,6 +245,8 @@ key_import_modes = {\nnetworks = {\n\"mainnet\": \"Main Tezos network\",\n\"jakartanet\": \"Test network using version 013 of Tezos protocol (Jakarta2)\",\n+ \"ghostnet\": \"Long running test network using version 013 of Tezos protocol (Jakarta2)\",\n+ \"kathmandunet\": \"Test network using version 014 of Tezos protocol (Kathmandu)\",\n}\nhttp_request_headers = {\"User-Agent\": \"Mozilla/5.0\"}\n"
},
{
"change_type": "MODIFY",
"old_path": "docs/baking.md",
"new_path": "docs/baking.md",
"diff": "@@ -30,7 +30,8 @@ that you can use by following the [installation instructions](https://www.raspbe\nIn order to run a baking instance, you'll need the following Tezos binaries:\n`tezos-client`, `tezos-node`, `tezos-baker-<proto>`.\n-The currently supported protocol is `013-PtJakart` (used on `jakartanet` and `mainnet`)\n+The currently supported protocol is `013-PtJakart` (used on `jakartanet`, `ghostnet` and `mainnet`)\n+and `014-PtKathma` (used on `kathmandunet`).\nAlso, note that the corresponding packages have protocol\nsuffix in lowercase, e.g. the list of available baker packages can be found\n[here](https://launchpad.net/~serokell/+archive/ubuntu/tezos/+packages?field.name_filter=tezos-baker&field.status_filter=published).\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update doc |
603,660 | 21.07.2022 17:22:30 | -10,800 | 5127692ce49f131a2228e7cb3408894ce7941061 | [Chore] Update nix packages | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -24,7 +24,7 @@ networks_protos = {\n\"mainnet\": [\"013-PtJakart\"],\n\"jakartanet\": [\"013-PtJakart\"],\n\"ghostnet\": [\"013-PtJakart\"],\n- \"kathmandunet\": [\"014-PtKathma\"]\n+ \"kathmandunet\": [\"014-PtKathma\"],\n}\nsigner_units = [\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/modules/common.nix",
"new_path": "nix/modules/common.nix",
"diff": "@@ -21,7 +21,7 @@ rec {\ndaemonOptions = sharedOptions // {\nbaseProtocol = mkOption {\n- type = types.enum [ \"013-PtJakart\" ];\n+ type = types.enum [ \"013-PtJakart\" \"014-PtKathma\" ];\ndescription = ''\nBase protocol version.\n'';\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/modules/tezos-accuser.nix",
"new_path": "nix/modules/tezos-accuser.nix",
"diff": "@@ -9,6 +9,8 @@ let\ntezos-accuser-pkgs = {\n\"013-PtJakart\" =\n\"${pkgs.tezosPackages.tezos-accuser-013-PtJakart}/bin/tezos-accuser-013-PtJakart\";\n+ \"014-PtKathma\" =\n+ \"${pkgs.tezosPackages.tezos-accuser-014-PtKathma}/bin/tezos-accuser-014-PtKathma\";\n};\ncfg = config.services.tezos-accuser;\ncommon = import ./common.nix { inherit lib; inherit pkgs; };\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/modules/tezos-baker.nix",
"new_path": "nix/modules/tezos-baker.nix",
"diff": "@@ -9,6 +9,8 @@ let\ntezos-baker-pkgs = {\n\"013-PtJakart\" =\n\"${pkgs.tezosPackages.tezos-baker-013-PtJakart}/bin/tezos-baker-013-PtJakart\";\n+ \"014-PtKathma\" =\n+ \"${pkgs.tezosPackages.tezos-baker-014-PtKathma}/bin/tezos-baker-014-PtKathma\";\n};\ntezos-client = \"${pkgs.tezosPackages.tezos-client}/bin/tezos-client\";\ncfg = config.services.tezos-baker;\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/tezos-binaries.nix",
"new_path": "tests/tezos-binaries.nix",
"diff": "@@ -6,7 +6,7 @@ let\nin import \"${nixpkgs}/nixos/tests/make-test-python.nix\" ({ ... }:\n{\nnodes.machine = { ... }: {\n- virtualisation.memorySize = 1024;\n+ virtualisation.memorySize = 2048;\nvirtualisation.diskSize = 1024;\nenvironment.sessionVariables.XDG_DATA_DIRS =\n[ \"${pkgs.zcash-params}\" ];\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update nix packages |
603,660 | 22.07.2022 16:04:17 | -10,800 | af426c01fafe544c0e6d0712978fe4f3c616782e | [Chore] Hotfix macos devShell | [
{
"change_type": "MODIFY",
"old_path": "flake.nix",
"new_path": "flake.nix",
"diff": "};\noutputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-utils, serokell-nix, nix, ... }:\n+ let\n+ pkgs-darwin = nixpkgs-unstable.legacyPackages.\"aarch64-darwin\";\n+ in pkgs-darwin.lib.recursiveUpdate\n{\nnixosModules = {\ntezos-node = import ./nix/modules/tezos-node.nix;\ntezos-signer = import ./nix/modules/tezos-signer.nix;\n};\n- } // flake-utils.lib.eachSystem [\n+ devShells.\"aarch64-darwin\".autorelease-macos =\n+ import ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };\n+\n+ } (flake-utils.lib.eachSystem [\n\"x86_64-linux\"\n] (system:\nlet\noverlays = [(_: _: { nix = nix.packages.${system}.default; })];\n};\n- pkgs-darwin = nixpkgs-unstable.legacyPackages.\"aarch64-darwin\";\n-\ncallPackage = pkg: input:\nimport pkg (inputs // { inherit sources protocols meta pkgs; } // input);\nbinaries = callPackage ./nix {};\n- tezos-release = callPackage ./release.nix {};\n+ release = callPackage ./release.nix {};\nin {\nlegacyPackages = unstable;\n- release = tezos-release;\n+ inherit release;\npackages = binaries // { default = self.packages.${system}.binaries; };\ndevShells = {\nbuildkite = callPackage ./.buildkite/shell.nix {};\nautorelease = callPackage ./scripts/shell.nix {};\n- autorelease-macos = callPackage ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };\ndev = callPackage ./shell.nix { pkgs = unstable; };\n};\n};\nbinaries-test = callPackage ./tests/tezos-binaries.nix {};\n- });\n+ }));\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/build-all-bottles.sh",
"new_path": "scripts/build-all-bottles.sh",
"diff": "-#! /usr/bin/env nix-shell\n-#! nix-shell .. -A autorelease-macos -i bash\n+#! /usr/bin/env bash\n# shellcheck shell=bash\n# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix macos devShell |
603,660 | 22.07.2022 16:10:41 | -10,800 | 98eb64cd5dbd0bd49be05269ea76e4c089f45ff9 | [Chore] Hotfix pipeline-for-tags | [
{
"change_type": "MODIFY",
"old_path": ".buildkite/pipeline-for-tags.yml",
"new_path": ".buildkite/pipeline-for-tags.yml",
"diff": "env:\nUSE_NEWER_NIX: 1\n+ SET_VERSION: \"export TEZOS_VERSION=\\\"$(cat meta.json | jq -r '.tezos_ref' | cut -d'/' -f3)\\\"\"\n+\nsteps:\n- label: Check for new Tezos release\n@@ -16,7 +18,7 @@ steps:\nagents:\nqueue: \"docker\"\ncommands:\n- - export TEZOS_VERSION=\"$(cat nix/nix/sources.json | jq -r '.tezos.ref' | cut -d'/' -f3)\"\n+ - eval \"$SET_VERSION\"\n- ./docker/docker-tezos-packages.sh --os ubuntu --type source\n- ./docker/docker-tezos-packages.sh --os fedora --type source\nartifact_paths:\n@@ -27,7 +29,7 @@ steps:\ndepends_on:\n- \"build-source-packages\"\ncommands:\n- - export TEZOS_VERSION=\"$(cat nix/nix/sources.json | jq -r '.tezos.ref' | cut -d'/' -f3)\"\n+ - eval \"$SET_VERSION\"\n- buildkite-agent artifact download \"out/*\" . --step build-source-packages\n- ./scripts/publish-native-packages.sh out\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix pipeline-for-tags |
603,660 | 22.07.2022 16:14:32 | -10,800 | bc3a21978b8b1d3a80162dddd0ec5e3e006a66f9 | [Chore] Hotfix formulae deps | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-013-PtJakart.rb",
"new_path": "Formula/tezos-accuser-013-PtJakart.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosAccuser013Ptjakart < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-014-PtKathma.rb",
"new_path": "Formula/tezos-accuser-014-PtKathma.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosAccuser014PtKathma < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-admin-client.rb",
"new_path": "Formula/tezos-admin-client.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosAdminClient < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-013-PtJakart.rb",
"new_path": "Formula/tezos-baker-013-PtJakart.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosBaker013Ptjakart < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-014-PtKathma.rb",
"new_path": "Formula/tezos-baker-014-PtKathma.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosBaker014PtKathma < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-client.rb",
"new_path": "Formula/tezos-client.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosClient < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-codec.rb",
"new_path": "Formula/tezos-codec.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosCodec < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-node.rb",
"new_path": "Formula/tezos-node.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosNode < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-signer.rb",
"new_path": "Formula/tezos-signer.rb",
"diff": "@@ -13,7 +13,7 @@ class TezosSigner < Formula\nversion \"v14.0-rc1-1\"\n- build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\nbuild_dependencies.each do |dependency|\ndepends_on dependency => :build\nend\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix formulae deps |
603,660 | 22.07.2022 16:16:33 | -10,800 | 91ea10ffa2a51475e77e2210b4437c5385600f16 | [Chore] Hotfix formulae titles | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-014-PtKathma.rb",
"new_path": "Formula/tezos-accuser-014-PtKathma.rb",
"diff": "# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-class TezosAccuser014PtKathma < Formula\n+class TezosAccuser014Ptkathma < Formula\n@all_bins = []\nclass << self\n@@ -25,7 +25,7 @@ class TezosAccuser014PtKathma < Formula\ndesc \"Daemon for accusing\"\nbottle do\n- root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser014PtKathma.version}/\"\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser014Ptkathma.version}/\"\nend\ndef make_deps\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-014-PtKathma.rb",
"new_path": "Formula/tezos-baker-014-PtKathma.rb",
"diff": "# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-class TezosBaker014PtKathma < Formula\n+class TezosBaker014Ptkathma < Formula\n@all_bins = []\nclass << self\n@@ -25,7 +25,7 @@ class TezosBaker014PtKathma < Formula\ndesc \"Daemon for baking\"\nbottle do\n- root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker014PtKathma.version}/\"\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker014Ptkathma.version}/\"\nend\ndef make_deps\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Hotfix formulae titles |
603,652 | 25.07.2022 10:32:10 | -10,800 | decf420e4f22ec2d54f156e7ca5552b46767fd15 | [Chore] Include 014 daemons to formulae build list
Problem: 014 Daemons weren't included into the list of formulae that are
build via BK.
Solution: Extend the list with 014 daemons. | [
{
"change_type": "MODIFY",
"old_path": "scripts/build-all-bottles.sh",
"new_path": "scripts/build-all-bottles.sh",
"diff": "@@ -12,7 +12,7 @@ fi\nset -euo pipefail\n# we don't bottle meta-formulas that contain only services\n-formulae=(\"tezos-accuser-013-PtJakart\" \"tezos-admin-client\" \"tezos-baker-013-PtJakart\" \"tezos-client\" \"tezos-codec\" \"tezos-node\" \"tezos-sandbox\" \"tezos-signer\")\n+formulae=(\"tezos-accuser-013-PtJakart\" \"tezos-accuser-014-PtKathma\" \"tezos-admin-client\" \"tezos-baker-013-PtJakart\" \"tezos-baker-014-PtKathma\" \"tezos-client\" \"tezos-codec\" \"tezos-node\" \"tezos-sandbox\" \"tezos-signer\")\n# tezos-sapling-params is used as a dependency for some of the formulas\n# so we handle it separately.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Include 014 daemons to formulae build list
Problem: 014 Daemons weren't included into the list of formulae that are
build via BK.
Solution: Extend the list with 014 daemons. |
603,652 | 27.07.2022 14:34:47 | -10,800 | 013fac72b6238941b44488d14cdea01ca7085035 | [Chore] Bump macos version in 'check-formulas'
Problem: macos-10.15 is deprecated now and 'check-formulas' action is
failing.
Solution: Use macos-latest which doesn't pin a specific macos version
and thus should survive future updates. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/check-formulas.yml",
"new_path": ".github/workflows/check-formulas.yml",
"diff": "@@ -7,7 +7,7 @@ on:\n- '.github/workflows/check-formulas.yml'\njobs:\ncheck-formulas:\n- runs-on: macos-10.15\n+ runs-on: macos-latest\nsteps:\n- name: Checkout\nuses: actions/checkout@v2\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Bump macos version in 'check-formulas'
Problem: macos-10.15 is deprecated now and 'check-formulas' action is
failing.
Solution: Use macos-latest which doesn't pin a specific macos version
and thus should survive future updates. |
603,650 | 01.08.2022 16:37:10 | -7,200 | 0317f506ab1c589bb39d6423671b8207cf350af2 | [Chore] Use named network option for kathmandunet
Problem: Octez v14.0 supports kathmandunet as a named network,
but in our definitions we still use a network config.
Solution: update the node Formula and package definition to use
the named option for the kathmandu network. | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-node-kathmandunet.rb",
"new_path": "Formula/tezos-node-kathmandunet.rb",
"diff": "@@ -26,14 +26,14 @@ class TezosNodeKathmandunet < Formula\n\"$node\" config init \\\n--data-dir \"$DATA_DIR\" \\\n--rpc-addr \"$NODE_RPC_ADDR\" \\\n- --network=https://teztnets.xyz/kathmandunet \\\n+ --network=kathmandunet \\\n\"$@\"\nelse\necho \"Updating the node configuration...\"\n\"$node\" config update \\\n--data-dir \"$DATA_DIR\" \\\n--rpc-addr \"$NODE_RPC_ADDR\" \\\n- --network=https://teztnets.xyz/kathmandunet \\\n+ --network=kathmandunet \\\n\"$@\"\nfi\n@@ -82,6 +82,6 @@ class TezosNodeKathmandunet < Formula\nend\ndef post_install\nmkdir_p \"#{var}/lib/tezos/node-kathmandunet\"\n- system \"tezos-node\", \"config\", \"init\", \"--data-dir\" \"#{var}/lib/tezos/node-kathmandunet\", \"--network\", \"https://teztnets.xyz/kathmandunet\"\n+ system \"tezos-node\", \"config\", \"init\", \"--data-dir\" \"#{var}/lib/tezos/node-kathmandunet\", \"--network\", \"kathmandunet\"\nend\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -19,7 +19,7 @@ networks = {\n\"mainnet\": \"mainnet\",\n\"jakartanet\": \"jakartanet\",\n\"ghostnet\": \"ghostnet\",\n- \"kathmandunet\": \"https://teztnets.xyz/kathmandunet\",\n+ \"kathmandunet\": \"kathmandunet\",\n}\nnetworks_protos = {\n\"mainnet\": [\"013-PtJakart\"],\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Use named network option for kathmandunet
Problem: Octez v14.0 supports kathmandunet as a named network,
but in our definitions we still use a network config.
Solution: update the node Formula and package definition to use
the named option for the kathmandu network. |
603,660 | 19.08.2022 19:29:08 | -10,800 | b9b06dd501945731ed296e6777ef886758e5ea95 | [Chore] Fix fedora packaging
Problem: Fedora package systemd unit systemd env file
name was lowercased during packaging, which caused
failure to start corresponding service.
Solution: Don't lowercase env file name in fedora packaging. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/fedora.py",
"new_path": "docker/package/fedora.py",
"diff": "@@ -24,10 +24,6 @@ def build_fedora_package(\npkg.gen_buildfile(\"/\".join([dir, pkg.buildfile]), binaries_dir)\npkg.gen_license(f\"{dir}/LICENSE\")\nfor systemd_unit in pkg.systemd_units:\n- if systemd_unit.service_file.service.environment_file is not None:\n- systemd_unit.service_file.service.environment_file = (\n- systemd_unit.service_file.service.environment_file.lower()\n- )\nif systemd_unit.suffix is None:\nunit_name = pkg.name\nelse:\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Fix fedora packaging
Problem: Fedora package systemd unit systemd env file
name was lowercased during packaging, which caused
failure to start corresponding service.
Solution: Don't lowercase env file name in fedora packaging. |
603,652 | 24.08.2022 14:53:05 | -10,800 | 1d4da89901573178c1408db814f56d452c57e030 | Remove liquidity baking voting reminder from postinst script
Problem: Liquidity baking voting toggle is mandatory since v13.0 and
it shouldn't be new anymore for users. However, we'll still notify about
the necessity to change the vote from default on each 'tezos-baking'
package installation/update.
Solution: Remove this reminder from 'tezos-baking' package
postinstallation script. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -601,17 +601,7 @@ class TezosBakingServicesPackage(AbstractPackage):\ncustom_unit.poststop_script = \"tezos-baking-custom-poststop\"\ncustom_unit.instances = []\nself.systemd_units.append(custom_unit)\n- # TODO: we will likely need to remove this once toggle vote isn't new anymore\n- self.postinst_steps = \"\"\"echo \"\"\n-echo \"********************************************************************************\"\n-echo \"** Please note that the liquidity baking toggle vote option\"\n-echo \"** is now mandatory when baking. It has been automatically set to \\\"pass\\\".\"\n-echo \"** Re-run tezos-setup-wizard if you'd like to change your vote.\"\n-echo \"** You can read more about it here:\"\n-echo \"** https://tezos.gitlab.io/jakarta/liquidity_baking.html#toggle-vote\"\n-echo \"********************************************************************************\"\n-echo \"\"\n-\"\"\"\n+ self.postinst_steps = \"\"\nself.postrm_steps = \"\"\ndef fetch_sources(self, out_dir, binaries_dir=None):\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#482] Remove liquidity baking voting reminder from postinst script
Problem: Liquidity baking voting toggle is mandatory since v13.0 and
it shouldn't be new anymore for users. However, we'll still notify about
the necessity to change the vote from default on each 'tezos-baking'
package installation/update.
Solution: Remove this reminder from 'tezos-baking' package
postinstallation script. |
603,652 | 23.08.2022 14:41:05 | -10,800 | c90e11e7ad83eaedb7ddfa1ee817b6c6e611ef3a | [Chore] Remove outdated 'build-binary.sh' patch
Problem: This patch is no longer needed since the script was fixed with
v14.0-1 release.
Solution: Remove the patch itself and all usages of this patch. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/Dockerfile-ubuntu",
"new_path": "docker/package/Dockerfile-ubuntu",
"diff": "@@ -18,6 +18,7 @@ ENV OPAMROOT \"/tezos-packaging/docker/opamroot\"\nCOPY docker/package/*.py /tezos-packaging/docker/package/\nCOPY docker/package/defaults /tezos-packaging/docker/package/defaults\nCOPY docker/package/scripts /tezos-packaging/docker/package/scripts\n-COPY docker/package/patches /tezos-packaging/docker/package/patches\n+# Uncomment once pathces are needed once again\n+# COPY docker/package/patches /tezos-packaging/docker/package/patches\nCOPY LICENSE /tezos-packaging/LICENSE\nENTRYPOINT [\"python3\", \"-m\", \"package.package_generator\"]\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -133,16 +133,12 @@ packages = [\nadditional_native_deps=[\"tezos-sapling-params\", \"udev\"],\npostinst_steps=ledger_udev_postinst,\ndune_filepath=\"src/bin_client/main_client.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n),\nTezosBinaryPackage(\n\"tezos-admin-client\",\n\"Administration tool for the node\",\nmeta=packages_meta,\ndune_filepath=\"src/bin_client/main_admin.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n),\nTezosBinaryPackage(\n\"tezos-signer\",\n@@ -152,16 +148,12 @@ packages = [\nsystemd_units=signer_units,\npostinst_steps=ledger_udev_postinst,\ndune_filepath=\"src/bin_signer/main_signer.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n),\nTezosBinaryPackage(\n\"tezos-codec\",\n\"A client to decode and encode JSON\",\nmeta=packages_meta,\ndune_filepath=\"src/bin_codec/codec.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n),\n]\n@@ -265,8 +257,6 @@ packages.append(\npostrm_steps=node_postrm_steps,\nadditional_native_deps=[\"tezos-sapling-params\", {\"ubuntu\": \"netbase\"}],\ndune_filepath=\"src/bin_node/main.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n)\n)\n@@ -396,8 +386,6 @@ for proto in active_protocols:\n\"udev\",\n],\ndune_filepath=f\"src/proto_{proto_snake_case}/bin_baker/main_baker_{proto_snake_case}.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n)\n)\npackages.append(\n@@ -423,8 +411,6 @@ for proto in active_protocols:\nadditional_native_deps=[\"udev\"],\npostinst_steps=daemon_postinst_common + ledger_udev_postinst,\ndune_filepath=f\"src/proto_{proto_snake_case}/bin_accuser/main_accuser_{proto_snake_case}.exe\",\n- # TODO: remove on the next upstream release\n- patches=[\"build-binary.sh.patch\"],\n)\n)\n"
},
{
"change_type": "DELETE",
"old_path": "docker/package/patches/build-binary.sh.patch",
"new_path": null,
"diff": "-diff --color -Nru tezos-client-14.0-rc1.orig/build-binary.sh tezos-client-14.0-rc1/build-binary.sh\n---- tezos-client-14.0-rc1.orig/build-binary.sh 2022-07-22 17:37:24.000000000 +0300\n-+++ tezos-client-14.0-rc1/build-binary.sh 2022-07-27 12:01:58.842885979 +0300\n-@@ -13,12 +13,12 @@\n-\n- cd tezos\n- opam init local ../opam-repository --bare --disable-sandboxing\n--opam switch create . --repositories=local\n-+opam switch create . --repositories=local --no-install\n- eval \"$(opam env)\"\n- opams=()\n- while IFS= read -r -d $'\\0'; do\n- opams+=(\"$REPLY\")\n--done < <(find ./vendors ./src ./tezt -name \\*.opam -print0)\n-+done < <(find ./vendors ./src ./tezt ./opam -name \\*.opam -print0)\n- opam install \"${opams[@]}\" --deps-only --criteria=\"-notuptodate,-changed,-removed\"\n- eval \"$(opam env)\"\n- dune build \"$dune_filepath\"\n"
},
{
"change_type": "DELETE",
"old_path": "docker/package/patches/build-binary.sh.patch.license",
"new_path": null,
"diff": "-SPDX-FileCopyrightText: 2022 Oxhead Alpha\n-SPDX-License-Identifier: LicenseRef-MIT-OA\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove outdated 'build-binary.sh' patch
Problem: This patch is no longer needed since the script was fixed with
v14.0-1 release.
Solution: Remove the patch itself and all usages of this patch. |
603,660 | 15.08.2022 14:31:02 | -10,800 | ebba291fcb5768e25e94e6b0ceed1a0790d924ba | Add rollup packages for fedora and ubuntu
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add source and binary packages for fedora and ubuntu packed
with respective systemd services. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "docker/package/defaults/tezos-rollup-node.conf",
"diff": "+# vim: ft=sh\n+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+# shellcheck disable=SC2034\n+DATA_DIR=\"/var/lib/tezos/.tezos-client\"\n+NODE_RPC_ENDPOINT=\"http://localhost:8732\"\n+ROLLUP_NODE_RPC_ENDPOINT=\"127.0.0.1:8472\"\n+ROLLUP_MODE=\"observer\"\n+ROLLUP_ALIAS=\"rollup\"\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -276,7 +276,7 @@ daemon_decs = {\ndaemon_postinst_common = (\npostinst_steps_common\n+ \"\\nmkdir -p /var/lib/tezos/.tezos-client\\nchown -R tezos:tezos /var/lib/tezos/.tezos-client\\n\"\n-)\n+) + ledger_udev_postinst\nfor proto in active_protocols:\n@@ -378,7 +378,7 @@ for proto in active_protocols:\n),\n],\ntarget_proto=proto,\n- postinst_steps=daemon_postinst_common + ledger_udev_postinst,\n+ postinst_steps=daemon_postinst_common,\nadditional_native_deps=[\n\"tezos-sapling-params\",\n\"tezos-client\",\n@@ -409,7 +409,7 @@ for proto in active_protocols:\n],\ntarget_proto=proto,\nadditional_native_deps=[\"udev\"],\n- postinst_steps=daemon_postinst_common + ledger_udev_postinst,\n+ postinst_steps=daemon_postinst_common,\ndune_filepath=f\"src/proto_{proto_snake_case}/bin_accuser/main_accuser_{proto_snake_case}.exe\",\n)\n)\n@@ -425,3 +425,65 @@ packages.append(\nmeta=packages_meta,\n)\n)\n+\n+\n+def mk_rollup_packages():\n+ def mk_units(type, proto):\n+ startup_script = f\"/usr/bin/tezos-tx-rollup-node-{proto}-start\"\n+ service_file = ServiceFile(\n+ Unit(after=[\"network.target\"], description=f\"Tezos {type} rollup node\"),\n+ Service(\n+ environment_file=f\"/etc/default/tezos-{type}-rollup-node-{proto}\",\n+ environment=[f\"PROTOCOL={proto}\"],\n+ exec_start_pre=[\n+ \"+/usr/bin/setfacl -m u:tezos:rwx /run/systemd/ask-password\"\n+ ],\n+ exec_start=startup_script,\n+ exec_stop_post=[\n+ \"+/usr/bin/setfacl -x u:tezos /run/systemd/ask-password\"\n+ ],\n+ state_directory=\"tezos\",\n+ user=\"tezos\",\n+ type_=\"forking\",\n+ keyring_mode=\"shared\",\n+ ),\n+ Install(wanted_by=[\"multi-user.target\"]),\n+ )\n+ return [\n+ SystemdUnit(\n+ service_file=service_file,\n+ startup_script=startup_script.split(\"/\")[-1],\n+ startup_script_source=\"tezos-rollup-node-start\",\n+ config_file=\"tezos-rollup-node.conf\",\n+ ),\n+ ]\n+\n+ def mk_rollup_package(name, type, proto):\n+ proto_snake_case = proto.replace(\"-\", \"_\")\n+ return TezosBinaryPackage(\n+ f\"tezos-{type}-rollup-{name}-{proto}\",\n+ f\"Tezos {type} rollup {name} using {proto}\",\n+ meta=packages_meta,\n+ systemd_units=mk_units(type, proto) if name == \"node\" else [],\n+ target_proto=proto,\n+ additional_native_deps=[\n+ \"tezos-client\",\n+ \"tezos-node\",\n+ \"tezos-sapling-params\",\n+ ],\n+ postinst_steps=daemon_postinst_common,\n+ dune_filepath=f\"src/proto_{proto_snake_case}/bin_{type}_rollup_{name}/main_{type}_rollup_{name}_{proto_snake_case}.exe\",\n+ )\n+\n+ # for future sc\n+ types = [\"tx\"]\n+ packages = [\"node\", \"client\"]\n+ return [\n+ mk_rollup_package(name, type, proto)\n+ for name in packages\n+ for type in types\n+ for proto in active_protocols\n+ ]\n+\n+\n+packages.extend(mk_rollup_packages())\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "docker/package/scripts/tezos-rollup-node-start",
"diff": "+#!/usr/bin/env bash\n+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+set -euo pipefail\n+\n+# $PROTOCOL should be defined in the system unit environment\n+node=\"/usr/bin/tezos-tx-rollup-node-$PROTOCOL\"\n+tezos_client=\"/usr/bin/tezos-client\"\n+\n+\"$node\" init \"$ROLLUP_MODE\" config \\\n+ for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\" \\\n+ --rpc-addr \"$ROLLUP_NODE_RPC_ENDPOINT\" \\\n+ --force\n+\n+\"$node\" --endpoint \"$NODE_RPC_ENDPOINT\" \\\n+ run \"$ROLLUP_MODE\" for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\" &\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#453] Add rollup packages for fedora and ubuntu
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add source and binary packages for fedora and ubuntu packed
with respective systemd services. |
603,660 | 15.08.2022 18:27:15 | -10,800 | 39e97682b77806312b2615c5643efb5f0c301bc8 | Add rollup packages to static build
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add them to resulting artifacts of static build. | [
{
"change_type": "MODIFY",
"old_path": "docker/docker-static-build.sh",
"new_path": "docker/docker-static-build.sh",
"diff": "@@ -11,7 +11,7 @@ set -euo pipefail\nbinaries=(\"tezos-admin-client\" \"tezos-client\" \"tezos-node\" \"tezos-signer\" \"tezos-codec\")\nfor proto in $(jq -r \".active | .[]\" ../protocols.json); do\n- binaries+=(\"tezos-accuser-$proto\" \"tezos-baker-$proto\" )\n+ binaries+=(\"tezos-accuser-$proto\" \"tezos-baker-$proto\" \"tezos-tx-rollup-node-$proto\" \"tezos-tx-rollup-client-$proto\")\ndone\nif [[ \"${USE_PODMAN-}\" == \"True\" ]]; then\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/build/release-binaries.nix",
"new_path": "nix/build/release-binaries.nix",
"diff": "@@ -43,4 +43,14 @@ in [\ndescription = \"Daemon for accusing\";\nsupports = protocol;\n}\n+ {\n+ name = \"tezos-tx-rollup-node-${protocol}\";\n+ description = \"Transaction rollup node\";\n+ supports = protocol;\n+ }\n+ {\n+ name = \"tezos-tx-rollup-client-${protocol}\";\n+ description = \"Client for interacting with transaction rollup node\";\n+ supports = protocol;\n+ }\n]) protocols.active\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#453] Add rollup packages to static build
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add them to resulting artifacts of static build. |
603,660 | 15.08.2022 19:55:40 | -10,800 | 1bfd4de2ed6a9241c42c290cad6940f743ceb7ec | Add formulae for rollup binaries
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add respective formulae with launchd services. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Formula/tezos-tx-rollup-client-013-PtJakart.rb",
"diff": "+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+class TezosTxRollupClient013Ptjakart < Formula\n+ @all_bins = []\n+\n+ class << self\n+ attr_accessor :all_bins\n+ end\n+ homepage \"https://gitlab.com/tezos/tezos\"\n+\n+ url \"https://gitlab.com/tezos/tezos.git\", :tag => \"v14.0\", :shallow => false\n+\n+ version \"v14.0-1\"\n+\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\n+ build_dependencies.each do |dependency|\n+ depends_on dependency => :build\n+ end\n+\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params]\n+ dependencies.each do |dependency|\n+ depends_on dependency\n+ end\n+ desc \"Transaction rollup CLI client for 013-PtJakart\"\n+\n+ def make_deps\n+ ENV.deparallelize\n+ ENV[\"CARGO_HOME\"]=\"./.cargo\"\n+ # Disable usage of instructions from the ADX extension to avoid incompatibility\n+ # with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n+ ENV[\"BLST_PORTABLE\"]=\"yes\"\n+ # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer\n+ arch = RUBY_PLATFORM.include?(\"arm64\") ? \"arm64\" : \"x86_64\"\n+ system \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ system \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ ENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\n+ system [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\n+ end\n+\n+ def install_template(dune_path, exec_path, name)\n+ bin.mkpath\n+ self.class.all_bins << name\n+ system [\"eval $(opam env)\", \"dune build #{dune_path}\", \"cp #{exec_path} #{name}\"].join(\" && \")\n+ bin.install name\n+ end\n+\n+ def install\n+ make_deps\n+ install_template \"src/proto_013_PtJakart/bin_tx_rollup_client/main_tx_rollup_client_013_PtJakart.exe\",\n+ \"_build/default/src/proto_013_PtJakart/bin_tx_rollup_client/main_tx_rollup_client_013_PtJakart.exe\",\n+ \"tezos-tx-rollup-client-013-PtJakart\"\n+ end\n+end\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Formula/tezos-tx-rollup-client-014-PtKathma.rb",
"diff": "+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+class TezosTxRollupClient014Ptkathma < Formula\n+ @all_bins = []\n+\n+ class << self\n+ attr_accessor :all_bins\n+ end\n+ homepage \"https://gitlab.com/tezos/tezos\"\n+\n+ url \"https://gitlab.com/tezos/tezos.git\", :tag => \"v14.0\", :shallow => false\n+\n+ version \"v14.0-1\"\n+\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\n+ build_dependencies.each do |dependency|\n+ depends_on dependency => :build\n+ end\n+\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params]\n+ dependencies.each do |dependency|\n+ depends_on dependency\n+ end\n+ desc \"Transaction rollup CLI client for 014-PtKathma\"\n+\n+ def make_deps\n+ ENV.deparallelize\n+ ENV[\"CARGO_HOME\"]=\"./.cargo\"\n+ # Disable usage of instructions from the ADX extension to avoid incompatibility\n+ # with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n+ ENV[\"BLST_PORTABLE\"]=\"yes\"\n+ # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer\n+ arch = RUBY_PLATFORM.include?(\"arm64\") ? \"arm64\" : \"x86_64\"\n+ system \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ system \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ ENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\n+ system [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\n+ end\n+\n+ def install_template(dune_path, exec_path, name)\n+ bin.mkpath\n+ self.class.all_bins << name\n+ system [\"eval $(opam env)\", \"dune build #{dune_path}\", \"cp #{exec_path} #{name}\"].join(\" && \")\n+ bin.install name\n+ end\n+\n+ def install\n+ make_deps\n+ install_template \"src/proto_014_PtKathma/bin_tx_rollup_client/main_tx_rollup_client_014_PtKathma.exe\",\n+ \"_build/default/src/proto_014_PtKathma/bin_tx_rollup_client/main_tx_rollup_client_014_PtKathma.exe\",\n+ \"tezos-tx-rollup-client-014-PtKathma\"\n+ end\n+end\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"diff": "+#!/usr/bin/env ruby\n+\n+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+class TezosTxRollupNode013Ptjakart < Formula\n+ @all_bins = []\n+\n+ class << self\n+ attr_accessor :all_bins\n+ end\n+ homepage \"https://gitlab.com/tezos/tezos\"\n+\n+ url \"https://gitlab.com/tezos/tezos.git\", :tag => \"v14.0\", :shallow => false\n+\n+ version \"v14.0-1\"\n+\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\n+ build_dependencies.each do |dependency|\n+ depends_on dependency => :build\n+ end\n+\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params tezos-client tezos-node]\n+ dependencies.each do |dependency|\n+ depends_on dependency\n+ end\n+ desc \"Tezos transaction rollup node for 013-PtJakart\"\n+\n+ def make_deps\n+ ENV.deparallelize\n+ ENV[\"CARGO_HOME\"]=\"./.cargo\"\n+ # Disable usage of instructions from the ADX extension to avoid incompatibility\n+ # with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n+ ENV[\"BLST_PORTABLE\"]=\"yes\"\n+ # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer\n+ arch = RUBY_PLATFORM.include?(\"arm64\") ? \"arm64\" : \"x86_64\"\n+ system \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ system \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ ENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\n+ system [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\n+ end\n+\n+ def install_template(dune_path, exec_path, name)\n+ bin.mkpath\n+ self.class.all_bins << name\n+ system [\"eval $(opam env)\", \"dune build #{dune_path}\", \"cp #{exec_path} #{name}\"].join(\" && \")\n+ bin.install name\n+ end\n+\n+ def install\n+ startup_contents =\n+ <<~EOS\n+ #!/usr/bin/env bash\n+\n+ set -euo pipefail\n+\n+ node=\"#{bin}/tezos-tx-rollup-node-013-PtJakart\"\n+\n+ \"$node\" init \"$ROLLUP_MODE\" config \\\n+ for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\" \\\n+ --rpc-addr \"$ROLLUP_NODE_RPC_ENDPOINT\" \\\n+ --force\n+\n+ \"$node\" --endpoint \"$NODE_RPC_ENDPOINT\" \\\n+ run \"$ROLLUP_MODE\" for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\"\n+\n+ EOS\n+ File.write(\"tezos-tx-rollup-node-013-PtJakart-start\", startup_contents)\n+ bin.install \"tezos-tx-rollup-node-013-PtJakart-start\"\n+ make_deps\n+ install_template \"src/proto_013_PtJakart/bin_tx_rollup_node/main_tx_rollup_node_013_PtJakart.exe\",\n+ \"_build/default/src/proto_013_PtJakart/bin_tx_rollup_node/main_tx_rollup_node_013_PtJakart.exe\",\n+ \"tezos-tx-rollup-node-013-PtJakart\"\n+ end\n+ plist_options manual: \"tezos-tx-rollup-node-013-PtJakart run for\"\n+ def plist\n+ <<~EOS\n+ <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+ <!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"\n+ \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n+ <plist version=\"1.0\">\n+ <dict>\n+ <key>Label</key>\n+ <string>#{plist_name}</string>\n+ <key>Program</key>\n+ <string>#{opt_bin}/tezos-tx-rollup-node-013-PtJakart-start</string>\n+ <key>EnvironmentVariables</key>\n+ <dict>\n+ <key>DATA_DIR</key>\n+ <string>#{var}/lib/tezos/client</string>\n+ <key>NODE_RPC_ENDPOINT</key>\n+ <string>http://localhost:8732</string>\n+ <key>ROLLUP_NODE_RPC_ENDPOINT</key>\n+ <string>127.0.0.1:8472</string>\n+ <key>ROLLUP_MODE</key>\n+ <string>observer</string>\n+ <key>ROLLUP_ALIAS</key>\n+ <string>rollup</string>\n+ </dict>\n+ <key>RunAtLoad</key><true/>\n+ <key>StandardOutPath</key>\n+ <string>#{var}/log/#{name}.log</string>\n+ <key>StandardErrorPath</key>\n+ <string>#{var}/log/#{name}.log</string>\n+ </dict>\n+ </plist>\n+ EOS\n+ end\n+ def post_install\n+ mkdir \"#{var}/lib/tezos/client\"\n+ end\n+end\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"diff": "+#!/usr/bin/env ruby\n+\n+# SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+# SPDX-License-Identifier: LicenseRef-MIT-OA\n+\n+class TezosTxRollupNode014Ptkathma < Formula\n+ @all_bins = []\n+\n+ class << self\n+ attr_accessor :all_bins\n+ end\n+ homepage \"https://gitlab.com/tezos/tezos\"\n+\n+ url \"https://gitlab.com/tezos/tezos.git\", :tag => \"v14.0\", :shallow => false\n+\n+ version \"v14.0-1\"\n+\n+ build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]\n+ build_dependencies.each do |dependency|\n+ depends_on dependency => :build\n+ end\n+\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params tezos-client tezos-node]\n+ dependencies.each do |dependency|\n+ depends_on dependency\n+ end\n+ desc \"Tezos transaction rollup node for 014-PtKathma\"\n+\n+ def make_deps\n+ ENV.deparallelize\n+ ENV[\"CARGO_HOME\"]=\"./.cargo\"\n+ # Disable usage of instructions from the ADX extension to avoid incompatibility\n+ # with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/\n+ ENV[\"BLST_PORTABLE\"]=\"yes\"\n+ # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer\n+ arch = RUBY_PLATFORM.include?(\"arm64\") ? \"arm64\" : \"x86_64\"\n+ system \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ system \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\n+ ENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\n+ system [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\n+ end\n+\n+ def install_template(dune_path, exec_path, name)\n+ bin.mkpath\n+ self.class.all_bins << name\n+ system [\"eval $(opam env)\", \"dune build #{dune_path}\", \"cp #{exec_path} #{name}\"].join(\" && \")\n+ bin.install name\n+ end\n+\n+ def install\n+ startup_contents =\n+ <<~EOS\n+ #!/usr/bin/env bash\n+\n+ set -euo pipefail\n+\n+ node=\"#{bin}/tezos-tx-rollup-node-014-PtKathma\"\n+\n+ \"$node\" init \"$ROLLUP_MODE\" config \\\n+ for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\" \\\n+ --rpc-addr \"$ROLLUP_NODE_RPC_ENDPOINT\" \\\n+ --force\n+\n+ \"$node\" --endpoint \"$NODE_RPC_ENDPOINT\" \\\n+ run \"$ROLLUP_MODE\" for \"$ROLLUP_ALIAS\" \\\n+ --data-dir \"$DATA_DIR\"\n+\n+ EOS\n+ File.write(\"tezos-tx-rollup-node-014-PtKathma-start\", startup_contents)\n+ bin.install \"tezos-tx-rollup-node-014-PtKathma-start\"\n+ make_deps\n+ install_template \"src/proto_014_PtKathma/bin_tx_rollup_node/main_tx_rollup_node_014_PtKathma.exe\",\n+ \"_build/default/src/proto_014_PtKathma/bin_tx_rollup_node/main_tx_rollup_node_014_PtKathma.exe\",\n+ \"tezos-tx-rollup-node-014-PtKathma\"\n+ end\n+ plist_options manual: \"tezos-tx-rollup-node-014-PtKathma run for\"\n+ def plist\n+ <<~EOS\n+ <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+ <!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\"\n+ \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n+ <plist version=\"1.0\">\n+ <dict>\n+ <key>Label</key>\n+ <string>#{plist_name}</string>\n+ <key>Program</key>\n+ <string>#{opt_bin}/tezos-tx-rollup-node-014-PtKathma-start</string>\n+ <key>EnvironmentVariables</key>\n+ <dict>\n+ <key>DATA_DIR</key>\n+ <string>#{var}/lib/tezos/client</string>\n+ <key>NODE_RPC_ENDPOINT</key>\n+ <string>http://localhost:8732</string>\n+ <key>ROLLUP_NODE_RPC_ENDPOINT</key>\n+ <string>127.0.0.1:8472</string>\n+ <key>ROLLUP_MODE</key>\n+ <string>observer</string>\n+ <key>ROLLUP_ALIAS</key>\n+ <string>rollup</string>\n+ </dict>\n+ <key>RunAtLoad</key><true/>\n+ <key>StandardOutPath</key>\n+ <string>#{var}/log/#{name}.log</string>\n+ <key>StandardErrorPath</key>\n+ <string>#{var}/log/#{name}.log</string>\n+ </dict>\n+ </plist>\n+ EOS\n+ end\n+ def post_install\n+ mkdir \"#{var}/lib/tezos/client\"\n+ end\n+end\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#453] Add formulae for rollup binaries
Problem: Jakarta protocol introduced new transaction rollup binaries.
Solution: Add respective formulae with launchd services. |
603,660 | 15.08.2022 20:09:37 | -10,800 | 0daabf8f284dbabf5a684369cf7abcf5ff7607bf | Add documentation for rollup node service
Problem: Use of rollup node systemd service is undocumented.
Solution:
* Explain how to start the service
* Explain configuration options
* Give an example of configuration | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -31,6 +31,8 @@ tezos-setup-wizard\nRead [the dedicated article](./docs/baking.md) to find out more about the setup,\nthe binaries, and the services used.\n+For setting up experimental transaction rollup node, see [this doc](./docs/tx_rollup.md).\n+\n### Voting on Ubuntu\nAn interactive voting wizard is provided for Ubuntu. After setting up a baking instance\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "docs/tx_rollup.md",
"diff": "+<!--\n+ - SPDX-FileCopyrightText: 2022 Oxhead Alpha\n+ - SPDX-License-Identifier: LicenseRef-MIT-OA\n+ -->\n+\n+# Setting up transaction rollup node on Ubuntu\n+\n+`proto` variable can hold every active protocol, currently `013-PtJakart` and `014-PtKathma`.\n+\n+By default, `tezos-tx-rollup-node-$proto.service` will use:\n+* `/var/lib/tezos/.tezos-client` as the `tezos-client` data directory, set in `DATA_DIR`\n+* `http://localhost:8732` as the `tezos-node` RPC address, set in `NODE_RPC_ENDPOINT`\n+* `127.0.0.1:8472` as the `tezos-tx-rollup-node-$proto` RPC address, set in `ROLLUP_NODE_RPC_ENDPOINT`\n+* `observer` as the `tezos-tx-rollup-node-$proto` working mode, set in `ROLLUP_MODE`\n+* `rollup` as the rollup alias, set in `ROLLUP_ALIAS`\n+\n+At first you should originate rollup with the provided alias for some implicit account:\n+```\n+sudo -u tezos tezos-client originate tx rollup <ROLLUP_ALIAS> from <IMPLICIT_ACCOUNT_ALIAS>\n+```\n+\n+After that, with the active `tezos-node` service available with the provided uri, run the following command\n+```\n+systemctl start tezos-tx-rollup-node-$proto.service\n+```\n+\n+In order to change the defaults, open `/etc/default/tezos-tx-rollup-node-$proto` and modify the variables:\n+\n+```\n+DATA_DIR=\"/var/lib/tezos/.tezos-client\"\n+NODE_RPC_ENDPOINT=\"http://localhost:8732\"\n+ROLLUP_NODE_RPC_ENDPOINT=\"127.0.0.1:8472\"\n+ROLLUP_MODE=\"operator\"\n+ROLLUP_ALIAS=\"custom-rollup\"\n+```\n+\n+Save and close the editor, restart the service:\n+\n+```\n+sudo systemctl restart tezos-tx-rollup-node-$proto.service\n+```\n+\n+For futher details, see [the documentation](http://tezos.gitlab.io/active/transaction_rollups.html).\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#453] Add documentation for rollup node service
Problem: Use of rollup node systemd service is undocumented.
Solution:
* Explain how to start the service
* Explain configuration options
* Give an example of configuration |
603,652 | 23.08.2022 15:57:36 | -10,800 | d87f1c05e96d74fbe8e70fc265efe7c90fd8bd10 | Remove waiting loop from baker start script
Problem: Now scripts wait for node RPC services to start in two places:
1) In node service start script.
2) In baker service start script.
Solution: Keep it only in node service startup script. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/scripts/tezos-baker-start",
"new_path": "docker/package/scripts/tezos-baker-start",
"diff": "@@ -42,12 +42,6 @@ launch_baker() {\nfi\n}\n-# TODO we should use --keep-alive instead of this loop once\n-# https://gitlab.com/tezos/tezos/-/issues/2873 is fixed\n-# Waiting till node start to respond\n-\n-while ! \"$tezos_client\" --endpoint \"$NODE_RPC_ENDPOINT\" rpc list &> /dev/null; do sleep 1; done\n-\nif [[ -z \"$BAKER_ADDRESS_ALIAS\" ]]; then\nlaunch_baker \"$@\"\nelse\n"
}
] | Python | MIT License | serokell/tezos-packaging | [#522] Remove waiting loop from baker start script
Problem: Now scripts wait for node RPC services to start in two places:
1) In node service start script.
2) In baker service start script.
Solution: Keep it only in node service startup script. |
603,652 | 26.07.2022 12:55:59 | -10,800 | b48f1a358a200365a388b68e6a55040c9086af62 | [Chore] Expose 'overlay' from flake
Problem: It's required to use specific overlay when using NixOS modules
from 'tezos-packaging' flake.
Solution: Expose 'overlay' that includes all required overlays. | [
{
"change_type": "MODIFY",
"old_path": "flake.nix",
"new_path": "flake.nix",
"diff": "outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-utils, serokell-nix, nix, ... }:\nlet\npkgs-darwin = nixpkgs-unstable.legacyPackages.\"aarch64-darwin\";\n+\n+ protocols = nixpkgs.lib.importJSON ./protocols.json;\n+ meta = nixpkgs.lib.importJSON ./meta.json;\n+ sources = { inherit (inputs) tezos opam-repository; };\n+\n+ ocaml-overlay = import ./nix/build/ocaml-overlay.nix (inputs // { inherit sources protocols meta; });\nin pkgs-darwin.lib.recursiveUpdate\n{\nnixosModules = {\ndevShells.\"aarch64-darwin\".autorelease-macos =\nimport ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };\n+ overlay = final: prev: nixpkgs.lib.composeManyExtensions [\n+ ocaml-overlay\n+ (final: prev: { inherit (inputs) serokell-nix; })\n+ ] final prev;\n} (flake-utils.lib.eachSystem [\n\"x86_64-linux\"\n] (system:\nlet\n- ocaml-overlay = callPackage ./nix/build/ocaml-overlay.nix {};\n-\noverlay = final: prev: {\ninherit (inputs) serokell-nix;\nnix = nix.packages.${system}.default;\ncallPackage = pkg: input:\nimport pkg (inputs // { inherit sources protocols meta pkgs; } // input);\n- protocols = pkgs.lib.importJSON ./protocols.json;\n-\n- meta = pkgs.lib.importJSON ./meta.json;\n-\n- sources = { inherit (inputs) tezos opam-repository; };\n-\nbinaries = callPackage ./nix {};\nrelease = callPackage ./release.nix {};\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/build/ocaml-overlay.nix",
"new_path": "nix/build/ocaml-overlay.nix",
"diff": "# SPDX-FileCopyrightText: 2021-2022 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\n-{ sources, protocols, pkgs, opam-nix, ... }:\n+{ sources, protocols, opam-nix, ... }:\nself: super:\n-with opam-nix.lib.${pkgs.system}; let\n+let\n+ pkgs = super;\n+in\n+with opam-nix.lib.${self.system}; let\nzcash-overlay = import ./zcash-overlay.nix;\nhacks = import ./hacks.nix;\ntezosSourcesResolved =\n- pkgs.runCommand \"resolve-tezos-sources\" {} \"cp --no-preserve=all -Lr ${sources.tezos} $out\";\n+ self.runCommand \"resolve-tezos-sources\" {} \"cp --no-preserve=all -Lr ${sources.tezos} $out\";\ntezosScope = buildOpamProject' {\n- inherit pkgs;\nrepos = [sources.opam-repository];\nrecursive = true;\nresolveArgs = { };\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Expose 'overlay' from flake
Problem: It's required to use specific overlay when using NixOS modules
from 'tezos-packaging' flake.
Solution: Expose 'overlay' that includes all required overlays. |
603,652 | 28.07.2022 12:57:17 | -10,800 | c4b93b3e479b4e756fb0090d851608511ee1ffe9 | [Chore] Support multiple protocols simultaneously in daemon modules
Problem: In some cases, it's required to run bakers for two protocols
simultaneously.
Solution: Update daemons service config to take a list of protocols as
an option and run a daemon for each of listed protocols. | [
{
"change_type": "MODIFY",
"old_path": "nix/modules/common.nix",
"new_path": "nix/modules/common.nix",
"diff": "@@ -20,12 +20,12 @@ rec {\ndaemonOptions = sharedOptions // {\n- baseProtocol = mkOption {\n- type = types.enum [ \"013-PtJakart\" \"014-PtKathma\" ];\n+ baseProtocols = mkOption {\n+ type = types.listOf (types.enum [ \"013-PtJakart\" \"014-PtKathma\" ]);\ndescription = ''\n- Base protocol version.\n+ List of protocols for which daemons will be run.\n'';\n- example = \"013-PtJakart\";\n+ example = [\"013-PtJakart\"];\n};\nrpcPort = mkOption {\n@@ -50,10 +50,10 @@ rec {\nmkIf (instancesCfg != {}) {\nusers = mkMerge (flip mapAttrsToList instancesCfg (node-name: node-cfg: genUsers node-name ));\nsystemd = mkMerge (flip mapAttrsToList instancesCfg (node-name: node-cfg:\n- let tezos-service = service-pkgs.\"${node-cfg.baseProtocol}\";\n+ let tezos-client = \"${pkgs.tezosPackages.tezos-client}/bin/tezos-client\";\npasswordFilenameArg = if node-cfg.passwordFilename != null then \"-f ${node-cfg.passwordFilename}\" else \"\";\nin {\n- services.\"tezos-${node-name}-tezos-${service-name}\" = genSystemdService node-name node-cfg service-name // rec {\n+ services.\"tezos-${node-name}-tezos-${service-name}\" = lib.recursiveUpdate (genSystemdService node-name node-cfg service-name) rec {\nbindsTo = [ \"network.target\" \"tezos-${node-name}-tezos-node.service\" ];\nafter = bindsTo;\npath = with pkgs; [ curl ];\n@@ -69,14 +69,17 @@ rec {\n# Generate or update service config file\nif [[ ! -f \"$service_data_dir/config\" ]]; then\n- ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\n+ ${tezos-client} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\nconfig init --output \"$service_data_dir/config\" >/dev/null 2>&1\nelse\n- ${tezos-service} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\n+ ${tezos-client} -d \"$service_data_dir\" -E \"http://localhost:${toString node-cfg.rpcPort}\" ${passwordFilenameArg} \\\nconfig update >/dev/null 2>&1\nfi\n'' + service-prestart-script node-cfg;\nscript = service-start-script node-cfg;\n+ serviceConfig = {\n+ Type = \"forking\";\n+ };\n};\n}));\n};\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/modules/tezos-accuser.nix",
"new_path": "nix/modules/tezos-accuser.nix",
"diff": "@@ -31,11 +31,12 @@ in {\n};\n};\nconfig =\n- let accuser-start-script = node-cfg: ''\n- ${tezos-accuser-pkgs.${node-cfg.baseProtocol}} -d \"$STATE_DIRECTORY/client/data\" \\\n+ let accuser-start-script = node-cfg: concatMapStringsSep \"\\n\" (baseProtocol:\n+ ''\n+ ${tezos-accuser-pkgs.${baseProtocol}} -d \"$STATE_DIRECTORY/client/data\" \\\n-E \"http://localhost:${toString node-cfg.rpcPort}\" \\\n- run \"$@\"\n- '';\n+ run \"$@\" &\n+ '') node-cfg.baseProtocols;\nin common.genDaemonConfig {\ninstancesCfg = cfg.instances;\nservice-name = \"accuser\";\n"
},
{
"change_type": "MODIFY",
"old_path": "nix/modules/tezos-baker.nix",
"new_path": "nix/modules/tezos-baker.nix",
"diff": "@@ -61,11 +61,12 @@ in {\nlet baker-start-script = node-cfg:\nlet\nvoting-option = \"--liquidity-baking-toggle-vote ${node-cfg.liquidityBakingToggleVote}\";\n- in ''\n- ${tezos-baker-pkgs.${node-cfg.baseProtocol}} -d \"$STATE_DIRECTORY/client/data\" \\\n+ in concatMapStringsSep \"\\n\" (baseProtocol:\n+ ''\n+ ${tezos-baker-pkgs.${baseProtocol}} -d \"$STATE_DIRECTORY/client/data\" \\\n-E \"http://localhost:${toString node-cfg.rpcPort}\" \\\n- run with local node \"$STATE_DIRECTORY/node/data\" ${voting-option} ${node-cfg.bakerAccountAlias}\n- '';\n+ run with local node \"$STATE_DIRECTORY/node/data\" ${voting-option} ${node-cfg.bakerAccountAlias} &\n+ '') node-cfg.baseProtocols;\nbaker-prestart-script = node-cfg: if node-cfg.bakerSecretKey != null then ''\n${tezos-client} -d \"$STATE_DIRECTORY/client/data\" import secret key \"${node-cfg.bakerAccountAlias}\" ${node-cfg.bakerSecretKey} --force\n'' else \"\";\n"
},
{
"change_type": "MODIFY",
"old_path": "tests/tezos-modules.nix",
"new_path": "tests/tezos-modules.nix",
"diff": "@@ -32,12 +32,12 @@ import \"${nixpkgs}/nixos/tests/make-test-python.nix\" ({ ... }:\nservices.tezos-accuser.instances.jakartanet = {\nenable = true;\n- baseProtocol = \"013-PtJakart\";\n+ baseProtocols = [\"013-PtJakart\" \"014-PtKathma\"];\n};\nservices.tezos-baker.instances.jakartanet = {\nenable = true;\n- baseProtocol = \"013-PtJakart\";\n+ baseProtocols = [\"013-PtJakart\" \"014-PtKathma\"];\nbakerAccountAlias = \"baker\";\nbakerSecretKey = \"unencrypted:edsk3KaTNj1d8Xd3kMBrZkJrfkqsz4XwwiBXatuuVgTdPye2KpE98o\";\n};\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Support multiple protocols simultaneously in daemon modules
Problem: In some cases, it's required to run bakers for two protocols
simultaneously.
Solution: Update daemons service config to take a list of protocols as
an option and run a daemon for each of listed protocols. |
603,650 | 19.09.2022 15:33:07 | -7,200 | 8ec4531a3fa1231defcdbd4430c1401c876f3ea7 | [Chore] Add kathmandu support to mainnet
Problem: kathmandu will soon be activated on
mainnet and we we need to support it in our
services.
Solution: update mainnet services to include
a kathmandu baker for the protocol switch-over
and bump version to make a new release. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/model.py",
"new_path": "docker/package/model.py",
"diff": "@@ -517,7 +517,7 @@ class TezosBakingServicesPackage(AbstractPackage):\n# native releases, so we append an extra letter to the version of\n# the package.\n# This should be reset to \"\" whenever the native version is bumped.\n- letter_version = \"\"\n+ letter_version = \"a\"\nbuildfile = \"setup.py\"\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -22,7 +22,7 @@ networks = {\n\"kathmandunet\": \"kathmandunet\",\n}\nnetworks_protos = {\n- \"mainnet\": [\"013-PtJakart\"],\n+ \"mainnet\": [\"013-PtJakart\", \"014-PtKathma\"],\n\"jakartanet\": [\"013-PtJakart\"],\n\"ghostnet\": [\"013-PtJakart\"],\n\"kathmandunet\": [\"014-PtKathma\"],\n"
},
{
"change_type": "MODIFY",
"old_path": "meta.json",
"new_path": "meta.json",
"diff": "{\n- \"release\": \"1\",\n+ \"release\": \"2\",\n\"maintainer\": \"Serokell <hi@serokell.io>\",\n\"tezos_ref\": \"v14.0\"\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add kathmandu support to mainnet
Problem: kathmandu will soon be activated on
mainnet and we we need to support it in our
services.
Solution: update mainnet services to include
a kathmandu baker for the protocol switch-over
and bump version to make a new release. |
603,650 | 05.10.2022 20:50:45 | -7,200 | 467577833739e96fa2ad7b0bbe2ffdb2ec807196 | [Chore] Update opam-nix
Problem: nix builds of 'ocamlfind' fail.
Solution: bump opam-nix in flakes.lock | [
{
"change_type": "MODIFY",
"old_path": "flake.lock",
"new_path": "flake.lock",
"diff": "\"type\": \"github\"\n}\n},\n+ \"mirage-opam-overlays\": {\n+ \"flake\": false,\n+ \"locked\": {\n+ \"lastModified\": 1661959605,\n+ \"narHash\": \"sha256-CPTuhYML3F4J58flfp3ZbMNhkRkVFKmBEYBZY5tnQwA=\",\n+ \"owner\": \"dune-universe\",\n+ \"repo\": \"mirage-opam-overlays\",\n+ \"rev\": \"05f1c1823d891ce4d8adab91f5db3ac51d86dc0b\",\n+ \"type\": \"github\"\n+ },\n+ \"original\": {\n+ \"owner\": \"dune-universe\",\n+ \"repo\": \"mirage-opam-overlays\",\n+ \"type\": \"github\"\n+ }\n+ },\n\"nix\": {\n\"inputs\": {\n\"lowdown-src\": \"lowdown-src\",\n},\n\"nixpkgs_3\": {\n\"locked\": {\n- \"lastModified\": 1640319671,\n- \"narHash\": \"sha256-ZkKmakwaOaLiZOpIZWbeJZwap5CzJ30s4UJTfydYIYc=\",\n+ \"lastModified\": 1657802959,\n+ \"narHash\": \"sha256-9+JWARSdlL8KiH3ymnKDXltE1vM+/WEJ78F5B1kjXys=\",\n\"owner\": \"nixos\",\n\"repo\": \"nixpkgs\",\n- \"rev\": \"eac07edbd20ed4908b98790ba299250b5527ecdf\",\n+ \"rev\": \"4a01ca36d6bfc133bc617e661916a81327c9bbc8\",\n\"type\": \"github\"\n},\n\"original\": {\n\"inputs\": {\n\"flake-compat\": \"flake-compat_2\",\n\"flake-utils\": \"flake-utils_2\",\n+ \"mirage-opam-overlays\": \"mirage-opam-overlays\",\n\"nixpkgs\": \"nixpkgs_3\",\n+ \"opam-overlays\": \"opam-overlays\",\n\"opam-repository\": [\n\"opam-repository\"\n],\n\"opam2json\": \"opam2json\"\n},\n\"locked\": {\n- \"lastModified\": 1657909029,\n- \"narHash\": \"sha256-dsNIoNA4C2hu/5TllM89+7RUqchVjp8CUUSmG69Z2w0=\",\n+ \"lastModified\": 1663958540,\n+ \"narHash\": \"sha256-5IFRW65Bonu0KphZig1pT2EJvm4lLLUYddHGZiQTYDA=\",\n\"owner\": \"tweag\",\n\"repo\": \"opam-nix\",\n- \"rev\": \"ac7ba6e749c01379c748eda43ae715e1a8fa671f\",\n+ \"rev\": \"c7430da9ade302bad75f7e4cfacd9eca12783cca\",\n\"type\": \"github\"\n},\n\"original\": {\n\"type\": \"github\"\n}\n},\n+ \"opam-overlays\": {\n+ \"flake\": false,\n+ \"locked\": {\n+ \"lastModified\": 1654162756,\n+ \"narHash\": \"sha256-RV68fUK+O3zTx61iiHIoS0LvIk0E4voMp+0SwRg6G6c=\",\n+ \"owner\": \"dune-universe\",\n+ \"repo\": \"opam-overlays\",\n+ \"rev\": \"c8f6ef0fc5272f254df4a971a47de7848cc1c8a4\",\n+ \"type\": \"github\"\n+ },\n+ \"original\": {\n+ \"owner\": \"dune-universe\",\n+ \"repo\": \"opam-overlays\",\n+ \"type\": \"github\"\n+ }\n+ },\n\"opam-repository\": {\n\"flake\": false,\n\"locked\": {\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update opam-nix
Problem: nix builds of 'ocamlfind' fail.
Solution: bump opam-nix in flakes.lock |
603,650 | 05.10.2022 21:22:02 | -7,200 | ad94d9912e4d397837db6c1bcd30bc5ba857c789 | [Chore] Remove jakarta baker from mainnet and ghostnet
Problem: Packages are built with a jakarta baker for mainnet
and ghostnet, however kathmandu has been activated on both now,
so they are no longer necessary/correct.
Solution: remove the jakarta baker from mainnet and replace the one
in ghostnet with kathmandu's. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "@@ -22,9 +22,9 @@ networks = {\n\"kathmandunet\": \"kathmandunet\",\n}\nnetworks_protos = {\n- \"mainnet\": [\"013-PtJakart\", \"014-PtKathma\"],\n+ \"mainnet\": [\"014-PtKathma\"],\n\"jakartanet\": [\"013-PtJakart\"],\n- \"ghostnet\": [\"013-PtJakart\"],\n+ \"ghostnet\": [\"014-PtKathma\"],\n\"kathmandunet\": [\"014-PtKathma\"],\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove jakarta baker from mainnet and ghostnet
Problem: Packages are built with a jakarta baker for mainnet
and ghostnet, however kathmandu has been activated on both now,
so they are no longer necessary/correct.
Solution: remove the jakarta baker from mainnet and replace the one
in ghostnet with kathmandu's. |
603,650 | 05.10.2022 21:48:30 | -7,200 | df7b04810cc4928d16436054d094d9e071123209 | [Chore] Add bottle building for rollup binaries
Problem: rollup binaries have brew formualae, but bottles for
them are not built by CI.
Solution: update the rollup formulae to include bottles, add these
to the list(s) of formulae that CI should build bottles for. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build-bottles.yml",
"new_path": ".github/workflows/build-bottles.yml",
"diff": "@@ -17,7 +17,7 @@ jobs:\nmatrix:\nos: [ { id: macos-12, name: \"monterey\" } ]\n# we don't bottle meta-formulas that contain only services\n- formula: [tezos-accuser-013-PtJakart, tezos-accuser-014-PtKathma, tezos-admin-client, tezos-baker-013-PtJakart, tezos-baker-014-PtKathma, tezos-client, tezos-codec, tezos-node, tezos-signer]\n+ formula: [tezos-accuser-013-PtJakart, tezos-accuser-014-PtKathma, tezos-admin-client, tezos-baker-013-PtJakart, tezos-baker-014-PtKathma, tezos-client, tezos-codec, tezos-node, tezos-signer, tezos-tx-rollup-client-013-PtJakart, tezos-tx-rollup-client-014-PtKathma, tezos-tx-rollup-node-013-PtJakart, tezos-tx-rollup-node-014-PtKathma]\nsteps:\n- name: Checkout\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-client-013-PtJakart.rb",
"new_path": "Formula/tezos-tx-rollup-client-013-PtJakart.rb",
"diff": "@@ -24,6 +24,10 @@ class TezosTxRollupClient013Ptjakart < Formula\nend\ndesc \"Transaction rollup CLI client for 013-PtJakart\"\n+ bottle do\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosTxRollupClient013Ptjakart.version}/\"\n+ end\n+\ndef make_deps\nENV.deparallelize\nENV[\"CARGO_HOME\"]=\"./.cargo\"\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-client-014-PtKathma.rb",
"new_path": "Formula/tezos-tx-rollup-client-014-PtKathma.rb",
"diff": "@@ -24,6 +24,10 @@ class TezosTxRollupClient014Ptkathma < Formula\nend\ndesc \"Transaction rollup CLI client for 014-PtKathma\"\n+ bottle do\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosTxRollupClient014Ptkathma.version}/\"\n+ end\n+\ndef make_deps\nENV.deparallelize\nENV[\"CARGO_HOME\"]=\"./.cargo\"\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"new_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"diff": "@@ -26,6 +26,10 @@ class TezosTxRollupNode013Ptjakart < Formula\nend\ndesc \"Tezos transaction rollup node for 013-PtJakart\"\n+ bottle do\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosTxRollupNode013Ptjakart.version}/\"\n+ end\n+\ndef make_deps\nENV.deparallelize\nENV[\"CARGO_HOME\"]=\"./.cargo\"\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"new_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"diff": "@@ -26,6 +26,10 @@ class TezosTxRollupNode014Ptkathma < Formula\nend\ndesc \"Tezos transaction rollup node for 014-PtKathma\"\n+ bottle do\n+ root_url \"https://github.com/serokell/tezos-packaging/releases/download/#{TezosTxRollupNode014Ptkathma.version}/\"\n+ end\n+\ndef make_deps\nENV.deparallelize\nENV[\"CARGO_HOME\"]=\"./.cargo\"\n"
},
{
"change_type": "MODIFY",
"old_path": "scripts/build-all-bottles.sh",
"new_path": "scripts/build-all-bottles.sh",
"diff": "@@ -19,7 +19,7 @@ set -euo pipefail\nretval=\"0\"\n# we don't bottle meta-formulas that contain only services\n-formulae=(\"tezos-accuser-013-PtJakart\" \"tezos-accuser-014-PtKathma\" \"tezos-admin-client\" \"tezos-baker-013-PtJakart\" \"tezos-baker-014-PtKathma\" \"tezos-client\" \"tezos-codec\" \"tezos-node\" \"tezos-sandbox\" \"tezos-signer\")\n+formulae=(\"tezos-accuser-013-PtJakart\" \"tezos-accuser-014-PtKathma\" \"tezos-admin-client\" \"tezos-baker-013-PtJakart\" \"tezos-baker-014-PtKathma\" \"tezos-client\" \"tezos-codec\" \"tezos-node\" \"tezos-sandbox\" \"tezos-signer\" \"tezos-tx-rollup-client-013-PtJakart\" \"tezos-tx-rollup-client-014-PtKathma\" \"tezos-tx-rollup-node-013-PtJakart\" \"tezos-tx-rollup-node-014-PtKathma\")\n# tezos-sapling-params is used as a dependency for some of the formulas\n# so we handle it separately.\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Add bottle building for rollup binaries
Problem: rollup binaries have brew formualae, but bottles for
them are not built by CI.
Solution: update the rollup formulae to include bottles, add these
to the list(s) of formulae that CI should build bottles for. |
603,660 | 06.10.2022 22:42:44 | -10,800 | 756466275f132794a9d7faba0887b30d655403ee | [Chore] Tweak rollup node's formulae runtime dependencies
Problem: Several binaries were added as a runtime dependency
in brew formulae, but are not strictly necessary to run the
rollup nodes.
Solution: Remove these unnecessary runtime dependencies. | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"new_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"diff": "@@ -20,7 +20,7 @@ class TezosTxRollupNode013Ptjakart < Formula\ndepends_on dependency => :build\nend\n- dependencies = %w[gmp hidapi libev libffi tezos-sapling-params tezos-client tezos-node]\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params]\ndependencies.each do |dependency|\ndepends_on dependency\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"new_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"diff": "@@ -20,7 +20,7 @@ class TezosTxRollupNode014Ptkathma < Formula\ndepends_on dependency => :build\nend\n- dependencies = %w[gmp hidapi libev libffi tezos-sapling-params tezos-client tezos-node]\n+ dependencies = %w[gmp hidapi libev libffi tezos-sapling-params]\ndependencies.each do |dependency|\ndepends_on dependency\nend\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Tweak rollup node's formulae runtime dependencies
Problem: Several binaries were added as a runtime dependency
in brew formulae, but are not strictly necessary to run the
rollup nodes.
Solution: Remove these unnecessary runtime dependencies. |
603,650 | 06.10.2022 23:16:29 | -7,200 | 890df982d4e2d20bb5c55ee2dcca75a3f7430785 | [Chore] Update the rust version used
Problem: upstream tezos has increased the rust version used
for builds, so we should do the same.
Solution: bump the rust version used to run rust-init. | [
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-013-PtJakart.rb",
"new_path": "Formula/tezos-accuser-013-PtJakart.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosAccuser013Ptjakart < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-accuser-014-PtKathma.rb",
"new_path": "Formula/tezos-accuser-014-PtKathma.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosAccuser014Ptkathma < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-admin-client.rb",
"new_path": "Formula/tezos-admin-client.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosAdminClient < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-013-PtJakart.rb",
"new_path": "Formula/tezos-baker-013-PtJakart.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosBaker013Ptjakart < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-baker-014-PtKathma.rb",
"new_path": "Formula/tezos-baker-014-PtKathma.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosBaker014Ptkathma < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-client.rb",
"new_path": "Formula/tezos-client.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosClient < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-codec.rb",
"new_path": "Formula/tezos-codec.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosCodec < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-node.rb",
"new_path": "Formula/tezos-node.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosNode < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-signer.rb",
"new_path": "Formula/tezos-signer.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosSigner < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-client-013-PtJakart.rb",
"new_path": "Formula/tezos-tx-rollup-client-013-PtJakart.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosTxRollupClient013Ptjakart < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-client-014-PtKathma.rb",
"new_path": "Formula/tezos-tx-rollup-client-014-PtKathma.rb",
"diff": "@@ -39,7 +39,7 @@ class TezosTxRollupClient014Ptkathma < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"new_path": "Formula/tezos-tx-rollup-node-013-PtJakart.rb",
"diff": "@@ -41,7 +41,7 @@ class TezosTxRollupNode013Ptjakart < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"new_path": "Formula/tezos-tx-rollup-node-014-PtKathma.rb",
"diff": "@@ -41,7 +41,7 @@ class TezosTxRollupNode014Ptkathma < Formula\nsystem \"curl\", \"-L\", \"https://github.com/ocaml/opam/releases/download/2.0.9/opam-2.0.9-#{arch}-macos\", \"--create-dirs\", \"-o\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nsystem \"chmod\", \"+x\", \"#{ENV[\"HOME\"]}/.opam-bin/opam\"\nENV[\"PATH\"]=\"#{ENV[\"HOME\"]}/.opam-bin:#{ENV[\"PATH\"]}\"\n- system \"rustup-init\", \"--default-toolchain\", \"1.52.1\", \"-y\"\n+ system \"rustup-init\", \"--default-toolchain\", \"1.60.0\", \"-y\"\nsystem \"opam\", \"init\", \"--bare\", \"--debug\", \"--auto-setup\", \"--disable-sandboxing\"\nsystem [\"source .cargo/env\", \"make build-deps\"].join(\" && \")\nend\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/build/build-tezos.sh",
"new_path": "docker/build/build-tezos.sh",
"diff": "@@ -17,7 +17,7 @@ export OPAMYES=\"true\"\nexport BLST_PORTABLE=\"yes\"\nwget https://sh.rustup.rs/rustup-init.sh\nchmod +x rustup-init.sh\n-./rustup-init.sh --profile minimal --default-toolchain 1.52.1 -y\n+./rustup-init.sh --profile minimal --default-toolchain 1.60.0 -y\nsource \"$HOME/.cargo/env\"\nopam init --bare --disable-sandboxing\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update the rust version used
Problem: upstream tezos has increased the rust version used
for builds, so we should do the same.
Solution: bump the rust version used to run rust-init. |
603,660 | 11.10.2022 19:57:40 | -10,800 | 84ac226c1028eda5798ae64c28bf26f33fd32db3 | [Chore] Update supported protocols
Problem: Since `v15.0-rc1`, `jakarta` protocol was
deprecated and `lima` protocol was added. Also,
protocol shorthands does not contain numbers.
Solution: Update supported protocols and remove numbers from
active ones. | [
{
"change_type": "MODIFY",
"old_path": "protocols.json",
"new_path": "protocols.json",
"diff": "\"009-PsFLoren\",\n\"010-PtGRANAD\",\n\"011-PtHangz2\",\n- \"012-Psithaca\"\n+ \"012-Psithaca\",\n+ \"013-PtJakart\"\n],\n\"active\": [\n- \"013-PtJakart\",\n- \"014-PtKathma\"\n+ \"PtKathma\",\n+ \"PtLimaPt\"\n]\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Update supported protocols
Problem: Since `v15.0-rc1`, `jakarta` protocol was
deprecated and `lima` protocol was added. Also,
protocol shorthands does not contain numbers.
Solution: Update supported protocols and remove numbers from
active ones. |
603,660 | 11.10.2022 19:59:31 | -10,800 | f19da5737fc29edd1a8735d32f1782fdec5ca681 | [Chore] Remove `jakartanet`
Problem: Since `v15.0-rc1`, `jakartanet` not running anymore.
Solution: Remove support for it. | [
{
"change_type": "MODIFY",
"old_path": "docker/package/packages.py",
"new_path": "docker/package/packages.py",
"diff": "# SPDX-FileCopyrightText: 2021 Oxhead Alpha\n# SPDX-License-Identifier: LicenseRef-MIT-OA\nimport os, json\n-from unittest.mock import patch\nfrom .meta import packages_meta\n@@ -17,13 +16,11 @@ from .systemd import Service, ServiceFile, SystemdUnit, Unit, Install\n# the config\nnetworks = {\n\"mainnet\": \"mainnet\",\n- \"jakartanet\": \"jakartanet\",\n\"ghostnet\": \"ghostnet\",\n\"kathmandunet\": \"kathmandunet\",\n}\nnetworks_protos = {\n\"mainnet\": [\"014-PtKathma\"],\n- \"jakartanet\": [\"013-PtJakart\"],\n\"ghostnet\": [\"014-PtKathma\"],\n\"kathmandunet\": [\"014-PtKathma\"],\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "docker/package/wizard_structure.py",
"new_path": "docker/package/wizard_structure.py",
"diff": "@@ -245,8 +245,7 @@ key_import_modes = {\nnetworks = {\n\"mainnet\": \"Main Tezos network\",\n- \"jakartanet\": \"Test network using version 013 of Tezos protocol (Jakarta2)\",\n- \"ghostnet\": \"Long running test network using version 013 of Tezos protocol (Jakarta2)\",\n+ \"ghostnet\": \"Long running test network using version 014 of Tezos protocol (Kathmandu)\",\n\"kathmandunet\": \"Test network using version 014 of Tezos protocol (Kathmandu)\",\n}\n"
}
] | Python | MIT License | serokell/tezos-packaging | [Chore] Remove `jakartanet`
Problem: Since `v15.0-rc1`, `jakartanet` not running anymore.
Solution: Remove support for it. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.