Skip to content

Commit

Permalink
updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Nov 30, 2023
1 parent 8ed4e58 commit 3a52276
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/man_0_assign_version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Agnostiq Inc.
# Copyright 2023 Agnostiq Inc.
#
# This file is part of Covalent.
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/man_1_push_to_master.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Agnostiq Inc.
# Copyright 2023 Agnostiq Inc.
#
# This file is part of Covalent.
#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/man_2_create_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Agnostiq Inc.
# Copyright 2023 Agnostiq Inc.
#
# This file is part of Covalent.
#
Expand Down
117 changes: 0 additions & 117 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ on:

workflow_dispatch:

# These permissions are also no longer needed here, but are kept for reference.

# permissions:
# id-token: write
# contents: read

jobs:
license:
name: License Scanner
Expand All @@ -37,114 +31,3 @@ jobs:
name: Unit and Functional Tests
uses: AgnostiqHQ/covalent/.github/workflows/tests.yml@develop
secrets: inherit # pragma: allowlist secret

# The following jobs have been moved to separate workflows to streamline things:

# changelog:
# name: Assign Version
# needs:
# - license
# - tests
# uses: AgnostiqHQ/covalent/.github/workflows/changelog.yml@develop
# secrets: inherit # pragma: allowlist secret

# push_to_master:
# name: Push to Master
# runs-on: ubuntu-latest
# needs: changelog
# outputs:
# release: ${{ steps.push.outputs.release }}
# steps:
# - name: Get latest release
# id: query-tags
# uses: octokit/[email protected]
# with:
# route: GET /repos/AgnostiqHQ/covalent/tags
# env:
# GITHUB_TOKEN: ${{ secrets.COVALENT_OPS_BOT_TOKEN }}

# - name: Parse latest tag
# id: get-latest-tag
# run: |
# # This assumes that the response from the API is sorted in decreasing order (thus the first element is the latest tag)
# latest_tag=${{ fromJSON(steps.query-tags.outputs.data)[0].name }}
# echo "::set-output name=tag::${latest_tag}"

# - name: Checkout default branch
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# persist-credentials: false

# - name: Push to master
# id: push
# run: |
# CHANGELOG_VERSION="${{ needs.changelog.outputs.version }}"
# MASTER_VERSION="$(echo ${{ steps.get-latest-tag.outputs.tag }} | cut -c2- )"
# VERSION="$(cat ./VERSION)"
# release=false
# if [ "$MASTER_VERSION" = "$VERSION" ] ; then
# echo "$VERSION has been previously released."
# elif dpkg --compare-versions $VERSION 'gt' '0.177.0' ; then
# git config user.name "CovalentOpsBot"
# git config user.email "[email protected]"
# git remote set-url origin https://${{ secrets.COVALENT_OPS_BOT_TOKEN }}@github.com/AgnostiqHQ/covalent.git
# git push origin HEAD:master
# release=true
# else
# echo "We cannot release versions less than 0.177.0."
# fi
# echo "::set-output name=release::$release"

# release:
# name: Create Release
# needs: push_to_master
# if: needs.push_to_master.outputs.release == 'true'
# uses: AgnostiqHQ/covalent/.github/workflows/release.yml@develop
# with:
# prerelease: true
# secrets: inherit # pragma: allowlist secret

# notify:
# name: Notify Slack
# needs: release
# runs-on: ubuntu-latest
# steps:
# - name: Checkout master
# uses: actions/checkout@v4
# with:
# ref: "master"

# - name: Format Slack message
# run: |
# VERSION="$(cat ./VERSION)"
# SLACK_MSG=":rocket: Version $VERSION is now available."
# echo "SLACK_MSG=$SLACK_MSG" >> $GITHUB_ENV

# - name: Notify Slack
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_CHANNEL: "covalent-ci"
# SLACK_USERNAME: "CovalentOpsBot"
# SLACK_MESSAGE: ${{ env.SLACK_MSG }}
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

# executor_base_images:
# name: Build Executor base images
# runs-on: ubuntu-latest
# needs: release
# strategy:
# matrix:
# repo:
# [
# "AgnostiqHQ/covalent-aws-plugins",
# "AgnostiqHQ/covalent-awslambda-plugin",
# "AgnostiqHQ/covalent-braket-plugin",
# ]
# steps:
# - name: Build executor_base_images
# uses: peter-evans/repository-dispatch@v2
# with:
# token: ${{ secrets.COVALENT_OPS_BOT_TOKEN }}
# repo: ${{ matrix.repo }}
# event-type: "prerelease"
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
release: ${{ env.RELEASE }}
steps:
- name: Check out stable release tag
uses: actions/checkout@v2
uses: actions/checkout@v4
if: github.event.inputs.stable_version
with:
persist-credentials: false
Expand All @@ -78,7 +78,7 @@ jobs:
echo "PRERELEASE=$version" >> $GITHUB_ENV
fi
- name: Check out prerelease tag
uses: actions/checkout@v2
uses: actions/checkout@v4
if: inputs.prerelease
with:
persist-credentials: false
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
version: ${{ steps.validate.outputs.version }}
steps:
- name: Check out release tag
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
Expand Down Expand Up @@ -235,15 +235,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out release tag
uses: actions/checkout@v2
uses: actions/checkout@v4
if: inputs.stable_version
with:
persist-credentials: false
fetch-depth: 0
ref: "v${{ github.event.inputs.stable_version }}"

- name: Check out master
uses: actions/checkout@v2
uses: actions/checkout@v4
if: inputs.prerelease
with:
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
workflow_dispatch:
inputs:
commit_sha:
description: "Commit SHA used for testing"
description: "Commit SHA used for testing. If left blank, the default branch will be used."
type: string
required: false

Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Operations

- Split the `nightly` workflow into 4 manually triggerable workflows, `nightly-tests`, `man_0_assign_version`, `man_1_push_to_master`, and `man_2_create_release` to be run in this order.
- Now only the `nightly-tests` workflow will be run on a daily basis, and the other 3 workflows will be run manually.
- Removed `conda` releases from `release.yml`.
- When pushing to `master`, now the version numbers of `develop` and `master` will be compared in `man_1_push_to_master`.
- Upgraded checkout action to v4 in `release.yml`.

## [0.231.0-rc.0] - 2023-11-28

### Authors
Expand Down

0 comments on commit 3a52276

Please sign in to comment.