Skip to content

Commit

Permalink
Merge pull request #69 from hrntsm/develop
Browse files Browse the repository at this point in the history
Release v0.4.0
  • Loading branch information
hrntsm authored Jul 9, 2022
2 parents ea405b5 + 6aad55f commit 23428c8
Show file tree
Hide file tree
Showing 62 changed files with 7,821 additions and 1,205 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,6 @@ dotnet_naming_style.s_camelcase.required_suffix =
dotnet_naming_style.s_camelcase.word_separator =
dotnet_naming_style.s_camelcase.capitalization = camel_case

# Additions
dotnet_code_quality.ca1711.allowed_suffixes = Attribute
dotnet_diagnostic.CA1707.severity = none
12 changes: 10 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
## Changes
## Added

-
## Changed

## Deprecated

## Removed

## Fixed

## Security

## Related issue number

Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/build-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Grasshopper Plugin

on:
push:
branches: [develop]
pull_request:
branches: [main, develop]

jobs:
build:
strategy:
matrix:
configuration: [Release]

runs-on: windows-latest # For a list of available runner types, refer to

env:
Solution_Name: Tunny.sln
Plugin_File_Name: Tunny

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet
uses: NuGet/setup-nuget@v1

- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

- name: Build the application
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

- name: Copy items to /Release dir
if: ${{ matrix.configuration == 'Release' }} # Only upload gha from a release build
shell: powershell
run: |
cp ./Samples ./Release/Samples -recurse
cp ./LICENSE ./Release/LICENSE.txt
cp ./PYTHON_PACKAGE_LICENSES ./Release/PYTHON_PACKAGE_LICENSES.txt
cp ./Tunny/bin/Release/net48 ./Release/Tunny -recurse
- name: Upload release build of plugin as artefact
if: ${{ matrix.configuration == 'Release' }} # Only upload gha from a release build
uses: actions/upload-artifact@v2
with:
name: Tunny
path: |
./Release
72 changes: 72 additions & 0 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main", "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "develop" ]
schedule:
- cron: '37 22 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,48 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

Please see [here](https://github.com/hrntsm/Tunny/releases) for the data released for each version.

## [0.4.0] -2022-07-09

### Added

- Component CI build to get easily development build.
- If you want to dogfooding, go right ahead!
- Param_FishAttribute component
- Construct Fish Attribute component
- Component that creates attribute information to be attached to each trial of optimization
- Deconstruct Fish component
- Component that separates optimization results into Variables, Objectives, and Attributes
- Deconstruct Fish Attribute component
- Components that output each attribute
- Python package licenses to clearly state the license of each package.
- requirements.txt file to avoid conflict python packages versions.
- Implemented Timeout to stop optimization over time.
- Input components are now highlighted in color, as are other optimization components.

### Changed

- Component location on the Tunny tab.
- The output of the Tunny component is made into Fish, a type that summarizes the results.
- The Geometry input of the Tunny component has been changed to Attribute to allow more attribute information to be handled.
- When restoring the results from Tunny component as Fishes, those that the trial did not work and Objective could not get are not output.
- Update UI
- The UI of the Restore tab was confusing, so the UI was modified to make it easier to understand which button to press and how the results are output.
- The progress bar on the Output tab has been made to show progress in a more understandable way.
- Error messages are displayed when the input to Tunny component is not appropriate, and inappropriate input wires are automatically removed.
- Error massage in python runtime is more clear.
- Added error message when the number of objective does not match the existing Study.
- Added error message when a Study with the same name exists but is used without Loading.

### Fixed

- Stopped sampling when there was no geometry input
- Once optimize output error, the component won't run again
- I've tried to do a proper Dispose to fix this problem, but it still doesn't work sometimes.
- Optuna-DashBoard and storage relate functions do not work properly when a different Storage path is specified in Settings than the default.
- Pressing the stop button in output and the stop button in Optimize does not stop the operation.
- Components were in their normal color instead of blue.
- Once an error occurs in PythonRuntime, the optimization will not work after that.

## [0.3.0] -2022-05-03

### Added
Expand Down
Loading

0 comments on commit 23428c8

Please sign in to comment.