Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor documentation and GitHub Actions #1279

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

apmasell
Copy link
Contributor

The previous documentation sturcture cause all code and built modules to be uploaded to the GitHub Pages, which is undesirable. This reorganizes the documentation so that only the relevant files and uploaded and includes JavaDoc generated documentation. It also rewrites the GitHub Actions to build those tools.

JIRA Ticket:

  • Updates Changelog
  • Updates developer documentation

@avarsava avarsava requested review from mlaszloffy and avarsava March 19, 2024 16:33
if: ${{ github.event_name == 'release' }}
uses: docker/[email protected]
with:
repository: oicrgsi/shesmu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just double checking this should be 'oicrgsi' and not 'oicr-gsi' in this context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

.github/workflows/build.yml Show resolved Hide resolved
docs/index.md Outdated
- [Compiler Hacking](compiler-hacking.md)
- [Java API Documentation](javadoc)

### Miscellaeno
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean 'miscellanea'?

- Prometheus Alert Manager (required for `Olive Alert` to work)
- JIRA
- GitHub
- GitHub, GitLabs, or BitBucket for storing configuration files (recommended)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLabs, plural?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also Github is here twice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're doing different things, so updated.

@@ -3,8 +3,6 @@
[Pinery](http://github.com/oicr-gsi/pinery) and
[Vidarr](https://github.com/oicr-gsi/vidarr).

Deploying this plugin requires the [gsi-common](../plugin-gsi-common/README.md) plugin be deployed as well.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is still a requirement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but the module system takes care of this, so there's no need to specify it.

@@ -2,8 +2,6 @@
[Pinery](http://github.com/oicr-gsi/pinery) is a web service application that
provides generalized LIMS (Laboratory Information Management System) access for information about samples.

Deploying this plugin requires the [gsi-common](../plugin-gsi-common/README.md) plugin be deployed as well.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

autoreconf -i
./configure --prefix=/install/dir
make
make install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this tool not get an automatic build like the others?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I will add.

I don't know about building Shesmu releases this way. I've never had success with the Maven repository GitHub provides. We could have to push to the OICR Artifactory with the right keys.

hope. If file names, user names, or group names have characters that are now
allowed in JSON strings, it does not go well. This tool provides a more robust
alternative that does the JSON encoding correctly. To install it:
For the `unix_file` input format, supported by the SSH plugin, Shesmu will try
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't this already in plugin-sftp.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I deleted the bones of it and moved them here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not what I'm seeing on github:
image

@apmasell apmasell force-pushed the gha branch 2 times, most recently from f520eec to 4e03233 Compare March 20, 2024 14:07
needs:
- plan
- build-local-artifacts
runs-on: "ubuntu-20.04"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu-latest? Or is 20.04 required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto generated by cargo-dist, so I won't be modifying it.

if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: "ubuntu-20.04"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu-latest?

# still allowing individual publish jobs to skip themselves (for prereleases).
# "host" however must run to completion, no skipping allowed!
if: ${{ always() && needs.host.result == 'success' }}
runs-on: "ubuntu-20.04"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu-latest?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there another way to have plugin documentation rendered rather than moving the README.md out of specific plugin directories and into docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I know. Symlinks create a terrible mess because of the way that the hyperlinks are resolved.

install it, first, [install Rust](https://www.rust-lang.org/tools/install) and
then invoke:

cargo install --path .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you rewrote this in rust too, but why isn't it also installed by downloading a prebuilt version like shawk?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Yeah, getting a C++ program with a library dependency into a distributable form was more work than porting it to Rust and using cargo-dist.

The previous documentation sturcture cause all code and built modules to be
uploaded to the GitHub Pages, which is undesirable. This reorganizes the
documentation so that only the relevant files and uploaded and includes JavaDoc
generated documentation. It also rewrites the GitHub Actions to build those
tools.
@avarsava avarsava merged commit 8572226 into oicr-gsi:master Mar 21, 2024
5 checks passed
@apmasell apmasell deleted the gha branch March 21, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants