Skip to content

Commit

Permalink
Rename to sqnc (#163)
Browse files Browse the repository at this point in the history
* Rename all instances of dscp to sqnc, matching case

* Add rs files

* Update language in bug report and feature request

* Update codeowners

* Bump major version

* cargo fmt
  • Loading branch information
rmlearney-digicatapult authored Feb 16, 2024
1 parent 6b203f6 commit 68efd8a
Show file tree
Hide file tree
Showing 53 changed files with 327 additions and 329 deletions.
4 changes: 1 addition & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Github CODEOWNERS file

# Global code-owners for this repository
* @mattdean-digicatapult @jonmattgray @n3op2

helm/* @mattdean-digicatapult @dblane-digicatapult @jonmattgray @n3op2
* @digicatapult/software-engineering
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ about: Create a report to help us improve

<!--
Have you read DSCP's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/digicatapult/dscp-node/.github/blob/main/CODE_OF_CONDUCT.md
Have you read our Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/digicatapult/sqnc-node/.github/blob/main/CODE_OF_CONDUCT.md
-->

### Prerequisites

- [ ] Put an X between the brackets on this line if you have done all of the following:
- Checked the FAQs for common solutions: <https://github.com/digicatapult/dscp-node/blob/main/CONTRIBUTING.md/#FAQs>
- Checked that your issue isn't already filed: <https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Adscp-node>
- Checked the FAQs for common solutions: <https://github.com/digicatapult/sqnc-node/blob/main/CONTRIBUTING.md/#FAQs>
- Checked that your issue isn't already filed: <https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Asqnc-node>

### Description

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ about: Suggest an idea for this project

<!--
Have you read DSCP's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/digicatapult/dscp-node/.github/blob/main/CODE_OF_CONDUCT.md
Have you read our Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/digicatapult/sqnc-node/.github/blob/main/CODE_OF_CONDUCT.md
---
Also note that the Digital Catapult team has finite resources so it's unlikely that we'll work on feature requests. If we're interested in a particular feature however, we'll follow up and ask you to submit an RFC to talk about it in more detail.
Expand All @@ -22,7 +22,7 @@ Also note that the Digital Catapult team has finite resources so it's unlikely t

## Describe alternatives you've considered

<!-- A clear and concise description of the alternative solutions you've considered. Be sure to explain why DSCP's existing customisability isn't suitable for this feature. -->
<!-- A clear and concise description of the alternative solutions you've considered. Be sure to explain why the existing customisability isn't suitable for this feature. -->

## Additional context

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Copy the correct template for your contribution

🐛 Are you fixing a bug? Copy the template from https://github.com/digicatapult/dscp-node/blob/main/.github/ISSUE_TEMPLATE/bug_report.md
💻 Are you changing functionality? Copy the template from https://github.com/digicatapult/dscp-node/blob/main/.github/ISSUE_TEMPLATE/feature_request.md
🐛 Are you fixing a bug? Copy the template from https://github.com/digicatapult/sqnc-node/blob/main/.github/ISSUE_TEMPLATE/bug_report.md
💻 Are you changing functionality? Copy the template from https://github.com/digicatapult/sqnc-node/blob/main/.github/ISSUE_TEMPLATE/feature_request.md
Replace this text with the contents of the template

Fill in all sections of the template
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- consider whether the changes could significantly affect the weight of any extrinsics
- consider whether benchmarks need updating to correctly cover weight variations over inputs
For a guide on running benchmarks to update weights see [calculating weights](https://github.com/digicatapult/dscp-node#calculating-weights)
For a guide on running benchmarks to update weights see [calculating weights](https://github.com/digicatapult/sqnc-node#calculating-weights)
check:
name: Check and test
Expand Down
62 changes: 31 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dscp-node-${{ matrix.architectures.arch }}
name: sqnc-node-${{ matrix.architectures.arch }}
path: |
./target/${{ matrix.architectures.target-tupl }}/production/dscp-node
./target/${{ matrix.architectures.target-tupl }}/production/wbuild/dscp-node-runtime/dscp_node_runtime.compact.wasm
./target/${{ matrix.architectures.target-tupl }}/production/sqnc-node
./target/${{ matrix.architectures.target-tupl }}/production/wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm
build-release:
name: Build release
Expand All @@ -136,12 +136,12 @@ jobs:
- name: Download x86_64 Artifacts
uses: actions/download-artifact@v4
with:
name: dscp-node-x86_64
name: sqnc-node-x86_64
path: x86_64
- name: Download aarch64 Artifacts
uses: actions/download-artifact@v4
with:
name: dscp-node-aarch64
name: sqnc-node-aarch64
path: aarch64
- name: Prepare artefacts
env:
Expand All @@ -150,19 +150,19 @@ jobs:
ls -R .
pushd ./x86_64
echo $BUILD_VERSION | tee ./VERSION.txt
mv ./wbuild/dscp-node-runtime/dscp_node_runtime.compact.wasm ./dscp_node_runtime.compact.wasm
chmod +x ./dscp-node
shasum -a 256 ./dscp-node | cut -d ' ' -f 1 | tee ./dscp-node.sha256
shasum -a 256 ./dscp_node_runtime.compact.wasm | cut -d ' ' -f 1 | tee ./dscp_node_runtime.compact.wasm.sha256
tar -czvf ../dscp-node-${BUILD_VERSION}-x86_64-unknown-linux-gnu.tar.gz ./VERSION.txt ./dscp-node ./dscp-node.sha256
tar -czvf ../dscp-node-${BUILD_VERSION}-runtime-wasm.tar.gz ./VERSION.txt ./dscp_node_runtime.compact.wasm ./dscp_node_runtime.compact.wasm.sha256
mv ./wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm
chmod +x ./sqnc-node
shasum -a 256 ./sqnc-node | cut -d ' ' -f 1 | tee ./sqnc-node.sha256
shasum -a 256 ./sqnc_node_runtime.compact.wasm | cut -d ' ' -f 1 | tee ./sqnc_node_runtime.compact.wasm.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-x86_64-unknown-linux-gnu.tar.gz ./VERSION.txt ./sqnc-node ./sqnc-node.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-runtime-wasm.tar.gz ./VERSION.txt ./sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm.sha256
popd;
pushd ./aarch64
echo $BUILD_VERSION | tee ./VERSION.txt
mv ./wbuild/dscp-node-runtime/dscp_node_runtime.compact.wasm ./dscp_node_runtime.compact.wasm
chmod +x ./dscp-node
shasum -a 256 ./dscp-node | cut -d ' ' -f 1 | tee ./dscp-node.sha256
tar -czvf ../dscp-node-${BUILD_VERSION}-aarch64-unknown-linux-gnu.tar.gz ./VERSION.txt ./dscp-node ./dscp-node.sha256
mv ./wbuild/sqnc-node-runtime/sqnc_node_runtime.compact.wasm ./sqnc_node_runtime.compact.wasm
chmod +x ./sqnc-node
shasum -a 256 ./sqnc-node | cut -d ' ' -f 1 | tee ./sqnc-node.sha256
tar -czvf ../sqnc-node-${BUILD_VERSION}-aarch64-unknown-linux-gnu.tar.gz ./VERSION.txt ./sqnc-node ./sqnc-node.sha256
popd;
- name: Build release version
Expand All @@ -174,9 +174,9 @@ jobs:
prerelease: ${{ needs.get-version.outputs.is_prerelease == 'true' }}
generate_release_notes: true
files: |
./dscp-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
./dscp-node-${{ needs.get-version.outputs.version }}-aarch64-unknown-linux-gnu.tar.gz
./dscp-node-${{ needs.get-version.outputs.version }}-runtime-wasm.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-aarch64-unknown-linux-gnu.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-runtime-wasm.tar.gz
- name: Delete release latest
if: ${{ needs.get-version.outputs.is_prerelease != 'true' }}
uses: actions/github-script@v7
Expand All @@ -200,9 +200,9 @@ jobs:
prerelease: false
generate_release_notes: true
files: |
./dscp-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
./dscp-node-${{ needs.get-version.outputs.version }}-aarch64-unknown-linux-gnu.tar.gz
./dscp-node-${{ needs.get-version.outputs.version }}-runtime-wasm.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-aarch64-unknown-linux-gnu.tar.gz
./sqnc-node-${{ needs.get-version.outputs.version }}-runtime-wasm.tar.gz
# Docker build are always performed but are only version tagged on new version
build-docker:
Expand Down Expand Up @@ -231,11 +231,11 @@ jobs:
# if it's a non new version tag with hash and latest-dev
run: |
if [ "$IS_NEW_VERSION" == "true" ]; then
echo "GHCR_VERSION_TAG=ghcr.io/digicatapult/dscp-node:$VERSION" >> $GITHUB_OUTPUT
echo "DOCKERHUB_VERSION_TAG=digicatapult/dscp-node:$VERSION" >> $GITHUB_OUTPUT
echo "GHCR_VERSION_TAG=ghcr.io/digicatapult/sqnc-node:$VERSION" >> $GITHUB_OUTPUT
echo "DOCKERHUB_VERSION_TAG=digicatapult/sqnc-node:$VERSION" >> $GITHUB_OUTPUT
if [ "$IS_PRERELEASE" == "false" ]; then
echo "GHCR_LATEST_TAG=ghcr.io/digicatapult/dscp-node:latest" >> $GITHUB_OUTPUT
echo "DOCKERHUB_LATEST_TAG=digicatapult/dscp-node:latest" >> $GITHUB_OUTPUT
echo "GHCR_LATEST_TAG=ghcr.io/digicatapult/sqnc-node:latest" >> $GITHUB_OUTPUT
echo "DOCKERHUB_LATEST_TAG=digicatapult/sqnc-node:latest" >> $GITHUB_OUTPUT
else
echo "GHCR_LATEST_TAG=" >> $GITHUB_OUTPUT
echo "DOCKERHUB_LATEST_TAG=" >> $GITHUB_OUTPUT
Expand All @@ -255,28 +255,28 @@ jobs:
- name: Login to Dockerhub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DSCP_DOCKERHUB_USERNAME }}
password: ${{ secrets.DSCP_DOCKERHUB_TOKEN }}
username: ${{ secrets.SQNC_DOCKERHUB_USERNAME }}
password: ${{ secrets.SQNC_DOCKERHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
build-args: |
RUST_TOOLCHAIN=${{ needs.get-version.outputs.toolchain }}
DSCP_VERSION=${{ needs.get-version.outputs.version }}
SQNC_VERSION=${{ needs.get-version.outputs.version }}
file: ./Dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/digicatapult/dscp-node:${{ github.sha }}
ghcr.io/digicatapult/sqnc-node:${{ github.sha }}
${{ steps.generate-tags.outputs.GHCR_VERSION_TAG }}
${{ steps.generate-tags.outputs.GHCR_LATEST_TAG }}
digicatapult/dscp-node:${{ github.sha }}
digicatapult/sqnc-node:${{ github.sha }}
${{ steps.generate-tags.outputs.DOCKERHUB_VERSION_TAG }}
${{ steps.generate-tags.outputs.DOCKERHUB_LATEST_TAG }}
labels: |
org.opencontainers.image.title=dscp-node
org.opencontainers.image.title=sqnc-node
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ We don't have any frequently asked questions yet.

This section guides you through submitting a bug report for veritable-node. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behaviour :computer: :computer:, and find related reports :mag_right:.

Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/digicatapult/dscp-node/blob/main/.github/ISSUE_TEMPLATE/bug_report.md), the information it asks for helps us resolve issues faster.
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/digicatapult/sqnc-node/blob/main/.github/ISSUE_TEMPLATE/bug_report.md), the information it asks for helps us resolve issues faster.

> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
#### Before Submitting A Bug Report

- **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Adscp-node)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
- **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Asqnc-node)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.

#### How Do I Submit A (Good) Bug Report?

Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on that repository and provide the following information by filling in [the template](https://github.com/digicatapult/dscp-node/.github/blob/main/.github/ISSUE_TEMPLATE/bug_report.md).
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on that repository and provide the following information by filling in [the template](https://github.com/digicatapult/sqnc-node/.github/blob/main/.github/ISSUE_TEMPLATE/bug_report.md).

Explain the problem and include additional details to help maintainers reproduce the problem:

Expand All @@ -62,7 +62,7 @@ Explain the problem and include additional details to help maintainers reproduce
Provide more context by answering these questions:

- **Did the problem start happening recently** (e.g. after updating to a new version of veritable-node) or was this always a problem?
- If the problem started happening recently, **can you reproduce the problem in an older version of veritable-node?** What's the most recent version in which the problem doesn't happen? You can checkout older versions of veritable-node from [the releases page](https://github.com/digicatapult/dscp-node/releases).
- If the problem started happening recently, **can you reproduce the problem in an older version of veritable-node?** What's the most recent version in which the problem doesn't happen? You can checkout older versions of veritable-node from [the releases page](https://github.com/digicatapult/sqnc-node/releases).
- **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.

Include details about your configuration and environment:
Expand All @@ -75,11 +75,11 @@ Include details about your configuration and environment:

This section guides you through submitting an enhancement suggestion for veritable-node, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.

Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/digicatapult/dscp-node/blob/main/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.
Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/digicatapult/sqnc-node/blob/main/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.

#### Before Submitting An Enhancement Suggestion

- **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Adscp-node)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Asqnc-node)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.

#### How Do I Submit A (Good) Enhancement Suggestion?

Expand Down
Loading

0 comments on commit 68efd8a

Please sign in to comment.