-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publication release of v0.5 to main after steering committee approval --------- Signed-off-by: Mike Fuller <[email protected]> Co-authored-by: Udam Dewaraja <[email protected]> Co-authored-by: Joshua Kwan <[email protected]> Co-authored-by: Irena Jurica <[email protected]> Co-authored-by: Michael Flanakin <[email protected]> Co-authored-by: MichaelArkoosh-vega <[email protected]> Co-authored-by: Amit Wadhwa <[email protected]> Co-authored-by: Amit Wadhwa <[email protected]> Co-authored-by: John Grubb <[email protected]> Co-authored-by: chandra-cloudtrakr <[email protected]> Co-authored-by: Sanjna Srivatsa <[email protected]> Co-authored-by: Eleni Rundle <[email protected]> Co-authored-by: SanjnaSrivatsaVMware <[email protected]> Co-authored-by: Rodney <[email protected]> Co-authored-by: Ray Ding <[email protected]> Co-authored-by: rileyjenk <[email protected]> Co-authored-by: kk09v <[email protected]>
- Loading branch information
1 parent
36beea8
commit 928d3a8
Showing
109 changed files
with
4,009 additions
and
28 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @FinOps-Open-Cost-and-Usage-Spec/maintainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Discussion Topic | ||
about: Discussion topics that require broader input from FOCUS members | ||
title: Title of the discussion topic OR open question needing member feedback | ||
labels: discussion topic | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Description | ||
> Describe the discussion topic and/or open topic is. Describe discussion that has taken place and where community feedback is needed. Provide specifics (specially if there are multiple possible options). | ||
### Proposed approach | ||
> Describe the approach that your group is proposing | ||
### Github issue or Reference | ||
> If the topic is related to a particular work item, reference the Github issue. If its a specification-wide topic, indicate that. | ||
### Context | ||
> Add any context that may help the community think through this and provide useful feedback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Maintenance Task | ||
about: Tasks that relate to work on the GitHub Repository or GitHub Actions | ||
title: Repository maintenance task | ||
labels: repo maintenance | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Description | ||
> Description of the issue | ||
### Definition of done | ||
> Description of the outcome(s) of the maintenance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Proposal | ||
about: Community proposal to add / enhance the specification | ||
title: "[Proposal] Title for proposal" | ||
labels: proposal | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Type | ||
> Type of issue (e.g. Dimension, Metric, Attribute, Documentation etc.) | ||
### Proposed Change | ||
> Description of the issue | ||
### Context / Supporting information | ||
>Description of the issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Spec Change | ||
about: Spec change issue | ||
title: Spec Change title | ||
labels: spec change | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Type | ||
> Type of issue (e.g. Dimension, Metric, Attribute, Documentation etc.) | ||
Normalized? Yes | No | ||
|
||
|
||
### Description | ||
> Description of the issue | ||
### Definition of done | ||
|
||
- [ ] Rationalize vendor-neutral, cross-cloud naming | ||
- [ ] Complete spec template and include naming (code name, display name), constraints, guidelines, compatibility with major providers etc. | ||
** If Normalized Dimension ** | ||
- [ ] Include principles and governance criteria for maintaining this dimension | ||
|
||
** If Normalized Dimension ** | ||
Work for generating the normalized list of supported values is tracked in a separate issue. Mappings between normalized values and vendor specified values need to be explored as a part of this work. However, these mappings are not included in the spec documentation. Separate tasks will be created for making these mappings available to practitioners outside of the FOCUS repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: generate_candidate_release_spec | ||
on: | ||
push: | ||
branches: | ||
- "candidate_release" | ||
|
||
jobs: | ||
# The job that will use the container image you just pushed to ghcr.io | ||
gen_pdf: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: pandoc/extra:latest-ubuntu | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install prequirements | ||
shell: bash | ||
run: | | ||
/usr/bin/apt-get -y update | ||
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y make | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
/usr/bin/pip3 install --break-system-packages -r requirements.txt | ||
- name: Build PDF | ||
shell: bash | ||
working-directory: ./specification | ||
run: | | ||
make STYLE=candidate_release | ||
- name: Upload Spec | ||
uses: actions/[email protected] | ||
with: | ||
name: FOCUS_specification | ||
path: | | ||
specification/spec.html | ||
specification/spec.pdf | ||
specification/images/* | ||
specification/styles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
name: generate_spec_pdf | ||
name: generate_publication_spec | ||
on: | ||
push: | ||
branches: | ||
- working_draft | ||
- "main" | ||
|
||
jobs: | ||
# The job that will use the container image you just pushed to ghcr.io | ||
gen_pdf: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: pandoc/extra:latest-ubuntu | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Build PDF | ||
shell: sh | ||
run: | | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y wkhtmltopdf | ||
cd specification | ||
pandoc *.md -o spec.pdf -f gfm --variable mainfont="DejaVu Sans" --metadata title="FOCUS Specification Draft" --pdf-engine=wkhtmltopdf | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: FOCUS_specification | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: specification/spec.pdf | ||
# The job that will use the container image you just pushed to ghcr.io | ||
gen_pdf: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: pandoc/extra:latest-ubuntu | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install prequirements | ||
shell: bash | ||
run: | | ||
/usr/bin/apt-get -y update | ||
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y make | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
/usr/bin/pip3 install --break-system-packages -r requirements.txt | ||
- name: Build PDF | ||
shell: bash | ||
working-directory: ./specification | ||
run: | | ||
make STYLE=main | ||
- name: Upload Spec | ||
uses: actions/[email protected] | ||
with: | ||
name: FOCUS_specification | ||
path: | | ||
specification/spec.html | ||
specification/spec.pdf | ||
specification/images/* | ||
specification/styles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: generate_draft_spec | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "!main" | ||
- "!candidate_release" | ||
|
||
jobs: | ||
# The job that will use the container image you just pushed to ghcr.io | ||
gen_pdf: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: pandoc/extra:latest-ubuntu | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install prequirements | ||
shell: bash | ||
run: | | ||
/usr/bin/apt-get -y update | ||
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y make | ||
DEBIAN_FRONTEND=noninteractive /usr/bin/apt install -y -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb | ||
/usr/bin/pip3 install --break-system-packages -r requirements.txt | ||
- name: Build PDF | ||
shell: bash | ||
working-directory: ./specification | ||
run: | | ||
make STYLE=working_draft | ||
- name: Upload Spec | ||
uses: actions/[email protected] | ||
with: | ||
name: FOCUS_specification | ||
path: | | ||
specification/spec.html | ||
specification/spec.pdf | ||
specification/images/* | ||
specification/styles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
spec.md | ||
spec.html | ||
*.pyc | ||
specification/version.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
""" | ||
Module to implement a plugin that looks for smart characters in the files. | ||
""" | ||
from typing import cast | ||
|
||
from pymarkdown.inline_markdown_token import TextMarkdownToken | ||
from pymarkdown.markdown_token import MarkdownToken | ||
from pymarkdown.parser_helper import ParserHelper | ||
from pymarkdown.plugin_manager.plugin_details import PluginDetails | ||
from pymarkdown.plugin_manager.plugin_scan_context import PluginScanContext | ||
from pymarkdown.plugin_manager.rule_plugin import RulePlugin | ||
|
||
|
||
class RuleMd990(RulePlugin): | ||
""" | ||
Class to implement a plugin that looks for smart characters in the files. | ||
""" | ||
__smart_char_items = [u"\u2013", u"\u201c", u"\u201d", u"\u2018", u"\u2019", u"\u2026"] | ||
|
||
def __init__(self) -> None: | ||
super().__init__() | ||
|
||
def get_details(self) -> PluginDetails: | ||
""" | ||
Get the details for the plugin. | ||
""" | ||
return PluginDetails( | ||
plugin_name="no-smart-characters", | ||
plugin_id="MD990", | ||
plugin_enabled_by_default=True, | ||
plugin_description="Smart character found", | ||
plugin_version="0.1.0", | ||
plugin_interface_version=1, | ||
plugin_url="", | ||
) | ||
|
||
def next_token(self, context: PluginScanContext, token: MarkdownToken) -> None: | ||
""" | ||
Event that a new token is being processed. | ||
""" | ||
if ( | ||
token.is_text | ||
): | ||
text_token = cast(TextMarkdownToken, token) | ||
for smart_char_item in RuleMd990.__smart_char_items: | ||
start_index = 0 | ||
found_index = text_token.token_text.find(smart_char_item, start_index) | ||
while found_index != -1: | ||
( | ||
column_number_delta, | ||
line_number_delta, | ||
) = ParserHelper.adjust_for_newlines(text_token.token_text, 0, found_index) | ||
self.report_next_token_error( | ||
context, | ||
token, | ||
line_number_delta=line_number_delta, | ||
column_number_delta=column_number_delta, | ||
) | ||
start_index = found_index + len(smart_char_item) | ||
found_index = text_token.token_text.find(smart_char_item, start_index) | ||
|
||
|
||
elif token.is_code_block: | ||
self.__in_code_block = True | ||
elif token.is_code_block_end: | ||
self.__in_code_block = False | ||
elif token.is_html_block: | ||
self.__in_html_block = True | ||
elif token.is_html_block_end: | ||
self.__in_html_block = False | ||
elif token.is_inline_link: | ||
self.__in_link = True | ||
elif token.is_inline_link_end: | ||
self.__in_link = False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# FOCUS Specification (Open Cloud Bill Specification) Working Group - IPR | ||
|
||
## Licensing Commitments | ||
|
||
Participants in this group have made certain licensing commitments by joining the group. | ||
|
||
## Member Organizations | ||
|
||
See: [Contributors List](https://github.com/FinOps-Open-Cost-and-Usage-Spec/FOCUS_Spec/blob/working_draft/specification/contributors.md) | ||
|
||
## Specifications published by the Group | ||
|
||
The following is the list of specifications produced by the Open Cloud Bill Specification Working Group that have associated disclosure obligations, and possible licensing obligations under the W3C Patent Policy. | ||
| ||
| Document under the W3C Patent Policy | Patent Disclosure | Patent Exclusion | | ||
|:-------------------------------------|:------------------|:-----------------| | ||
| FOCUS Specification | [disclose](mailto:[email protected]) | [Exclude](mailto:[email protected]) | | ||
| ||
## Patent Disclosures and Claim Exclusions | ||
|
||
This section summarizes patent disclosures by participants in Open Cloud Bill Specification Working Group as required by the W3C Patent Policy. | ||
|
||
### Known Disclosures | ||
|
||
No patent disclosures have been made for any specifications of this group. | ||
|
||
## How to Make a Patent Disclosure | ||
|
||
### Disclosures | ||
|
||
Disclosures from the general public should email [[email protected]](mailto:[email protected]). | ||
FOCUS Members agree to develop under the W3C Patent Policy, all parties have committed to the W3C Royalty-Free Licensing Terms and are not required to disclose patents. | ||
|
||
### Claim Exclusions | ||
|
||
Only Open Cloud Bill Specification Working Group participants may exclude patent claims concerning specifications developed under the W3C Patent Policy. To make an exclusion, participants should email [[email protected]](mailto:[email protected]), but only after first disclosing the patent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
watchdog==3.0.0 | ||
pymarkdownlnt==0.9.12 |
Oops, something went wrong.