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

Use the patch HEAD commit to name the branches #305

Merged

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Jun 17, 2024

Before this, we were using the merge commit to name the branches to be pushed. That's useless information because on every merge the commit is different.

Instead, we are going to start using the patch HEAD commit (available in FETCH_HEAD) to name the branches, because that's some information that can be useful if some day we want to start checking what has been already checked and other niceties.

Note that we are forcing to use a short commit length of 16 (to have it homogeneus), no matter that given our moodle.git repo size we are still only needing 11 right now. So any future search will need to be aware of this detail.

Before this, we were using the merge commit to name the branches
to be pushed. That's useless information because on every merge
the commit is different.

Instead, we are going to start using the patch HEAD commit
(available in FETCH_HEAD) to name the branches, because that's
some information that can be useful if some day we want to start
checking what has been already checked and other niceties.

Note that we are forcing to use a short commit length of 16
(to have it homogeneus), no matter that given our moodle.git repo
size we are still only needing 11 right now. So any future
search will need to be aware of this detail.
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 26.00%. Comparing base (122029e) to head (54044f0).

Files Patch % Lines
remote_branch_checker/remote_branch_checker.sh 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
- Coverage   32.87%   26.00%   -6.88%     
==========================================
  Files          71       71              
  Lines        3215     3215              
==========================================
- Hits         1057      836     -221     
- Misses       2158     2379     +221     
Flag Coverage Δ
check_upgrade_savepoints 0.46% <0.00%> (ø)
checkstyle_manipulations 0.00% <0.00%> (ø)
compare_databases 2.39% <0.00%> (ø)
continuous_manage_queues_validation 0.71% <0.00%> (ø)
define_excluded 1.11% <0.00%> (ø)
detect_conflicts 1.49% <0.00%> (ø)
diff_extract_changes 0.00% <0.00%> (ø)
git_sync_two_branches 2.05% <0.00%> (ø)
grunt_process 3.01% <0.00%> (ø)
illegal_whitespace 2.64% <0.00%> (ø)
list_valid_components 0.00% <0.00%> (ø)
mustache_lint 2.83% <0.00%> (ø)
mustache_lint_plugins 1.30% <0.00%> (ø)
php_lint 1.21% <0.00%> (ø)
prepare_npm_stuff 1.52% <0.00%> (ø)
remote_branch_checker ?
remote_branch_reporter 0.00% <0.00%> (ø)
setup 0.00% <0.00%> (ø)
thirdparty_check 1.46% <0.00%> (ø)
travis-branch-checker 0.00% <0.00%> (ø)
upgrade_external_backup 1.61% <0.00%> (ø)
verifications 0.00% <0.00%> (ø)
verify_commit_messages 2.64% <0.00%> (ø)
verify_phpunit_xml 1.24% <0.00%> (ø)
versions_check_set 5.03% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stronk7
Copy link
Member Author

stronk7 commented Jun 17, 2024

Annotating here these commands (filter, sort), to avoid forgetting them:

$ git branch --all --list 'origin/MDL-82148*'
  remotes/origin/MDL-82148-MOODLE_401_STABLE-ed0d73810ba
  remotes/origin/MDL-82148-MOODLE_402_STABLE-d81c63df93e
  remotes/origin/MDL-82148-MOODLE_403_STABLE-54c2025e6e5
  remotes/origin/MDL-82148-MOODLE_404_STABLE-d7a152961b3
  remotes/origin/MDL-82148-main-93480cbc9fe

$ git branch --all --sort=-committerdate --format="%(committerdate:iso8601), %(committerdate:relative) - %(refname:short)"
2024-06-18 01:15:17 +0800, 71 minutes ago - origin/MDL-82114-main-ff16f83366a
2024-06-17 18:20:07 +0200, 2 hours ago - origin/MDL-81683-main-10ec57deb8d
2024-06-17 17:15:10 +0200, 3 hours ago - origin/MDL-81683-main-9854aa62618
2024-06-17 15:03:16 +0100, 4 hours ago - origin/MDL-81671-main-53b69add3a7
2024-06-17 14:27:15 +0100, 5 hours ago - origin/MDL-82202-MOODLE_403_STABLE-da4e0701eef
2024-06-17 14:27:09 +0100, 5 hours ago - origin/MDL-82202-MOODLE_404_STABLE-114ddf489e0
2024-06-17 14:27:01 +0100, 5 hours ago - origin/MDL-82202-main-7ab967202c6
...
...

@paulholden paulholden merged commit f82c009 into moodlehq:main Jun 17, 2024
52 checks passed
@stronk7 stronk7 deleted the prechecker_repo_branches_use_fetch_head branch June 17, 2024 21:12
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