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

Feature - Add Version To Composite Action and Reusable Workflow #110

Closed
wants to merge 6 commits into from

Conversation

oreenlivnicode
Copy link
Contributor

No description provided.

@oreenlivnicode oreenlivnicode marked this pull request as draft October 30, 2023 17:07
@oreenlivnicode oreenlivnicode marked this pull request as ready for review October 30, 2023 17:11
@oreenlivnicode oreenlivnicode changed the title Feature - Add Version To Composite Action and Reusable Workflow - WIP Feature - Add Version To Composite Action and Reusable Workflow Oct 30, 2023
@oreenlivnicode oreenlivnicode linked an issue Oct 31, 2023 that may be closed by this pull request
@oreenlivnicode oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 76f5405 to 7959f01 Compare October 31, 2023 09:18
Copy link
Contributor

@alex-ilgayev alex-ilgayev left a comment

Choose a reason for hiding this comment

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

After review most of it,
I think we need to smartly change the dependency.py to have something like:

from_uses_string(), and to_uses_string()
and avoid any parsing of the string (even with split("@")) outside that class.
Means - we get the uses string, parse it to understand the tag, and do all the download and analysis according to that.
When we want to save/identify that action, we can use that to_uses_string() to have unique identification for it, for various reasons:

  • save it in db
  • help the graph relations
  • etc

src/downloader/gh_api.py Outdated Show resolved Hide resolved
src/downloader/gh_api.py Outdated Show resolved Hide resolved
src/workflow_components/dependency.py Outdated Show resolved Hide resolved
src/downloader/download.py Outdated Show resolved Hide resolved
src/downloader/download.py Outdated Show resolved Hide resolved
src/workflow_components/composite_action.py Outdated Show resolved Hide resolved
src/workflow_components/composite_action.py Outdated Show resolved Hide resolved
src/workflow_components/composite_action.py Outdated Show resolved Hide resolved
src/workflow_components/composite_action.py Show resolved Hide resolved
src/workflow_components/composite_action.py Show resolved Hide resolved
@oreenlivnicode oreenlivnicode marked this pull request as draft October 31, 2023 13:12
@alex-ilgayev alex-ilgayev linked an issue Oct 31, 2023 that may be closed by this pull request
@oreenlivnicode oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 78ce624 to 291736b Compare October 31, 2023 16:10
Copy link
Contributor

@elad-pticha elad-pticha left a comment

Choose a reason for hiding this comment

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

Can you add a test about this in the integration test also?

@oreenlivnicode oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 291736b to 98c69da Compare November 1, 2023 11:47
@elad-pticha
Copy link
Contributor

@oreenlivnicode Make sure to rebase and change RQ-8 and RQ-2 because it contains a condition that checks if the composite action is equal to actions/checkout. After your PR it should be STARTS WITH instead of =

If tag is found we will get download_url from tag object
returned by API call. Else, we will get download_url from
main contents page in the repo (also by API).
Support tags in reusable workflows (Workflow)
@oreenlivnicode oreenlivnicode force-pushed the feature-add-version-to-composite-action branch from 98c69da to 107564c Compare November 7, 2023 12:54
@oreenlivnicode oreenlivnicode deleted the feature-add-version-to-composite-action branch November 7, 2023 13:09
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.

Differentiate CompositeAction nodes by version take care for references when downloading dependenct actions
3 participants