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

A general mechanism for classifying CI changes #17218

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Oct 13, 2022

Generalizes our "docs_only" mechanism to other categories of affected things:

  • "rust"
  • "release"
  • "ci_config"
  • "docs_only"
  • "docs"

Currently sets, but does not act on, any of these except docs_only.
Future changes will apply the other categories in useful ways.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Oct 13, 2022
@benjyw benjyw marked this pull request as draft October 13, 2022 16:43
@benjyw benjyw force-pushed the classify_changed_files branch 3 times, most recently from da7e81d to 81ee8f9 Compare October 13, 2022 17:14
@benjyw benjyw changed the title Classify changed files A general mechanism for classifying CI changes Oct 13, 2022
@benjyw benjyw marked this pull request as ready for review October 13, 2022 17:23
Comment on lines 124 to 135
if [[ "${i}" == "docs" ]]; then
echo '::set-output name=docs::true'
fi
if [[ "${i}" == "rust" ]]; then
echo '::set-output name=rust::true'
fi
if [[ "${i}" == "release" ]]; then
echo '::set-output name=release::true'
fi
if [[ "${i}" == "ci_config" ]]; then
echo '::set-output name=ci_config::true'
fi
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if [[ "${i}" == "docs" ]]; then
echo '::set-output name=docs::true'
fi
if [[ "${i}" == "rust" ]]; then
echo '::set-output name=rust::true'
fi
if [[ "${i}" == "release" ]]; then
echo '::set-output name=release::true'
fi
if [[ "${i}" == "ci_config" ]]; then
echo '::set-output name=ci_config::true'
fi
echo "::set-output name=${i}::true"

@benjyw benjyw merged commit 20ac158 into pantsbuild:main Oct 13, 2022
@benjyw benjyw deleted the classify_changed_files branch October 13, 2022 21:56
benjyw added a commit to benjyw/pants that referenced this pull request Oct 13, 2022
Generalizes our "docs_only" mechanism to other categories of affected things: 
- "rust"
- "release"
- "ci_config"
- "docs_only"
- "docs"

Currently sets, but does not act on, any of these except docs_only. 
Future changes will apply the other categories in useful ways.
benjyw added a commit that referenced this pull request Oct 14, 2022
Cherrypicks of #17218, #17169, #17194, #17172, #16806, #16796. 

Since this branch is still being released from, we want it to benefit from recent and upcoming CI improvements.

Cherry-picking them all in one PR saves on CI resources and time. And since no Pants source code is modified, only CI config, it seems fine to not cherry-pick separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants