@@ -266,7 +266,7 @@ def test_github_reasons_for_closing(self):
266266 }
267267 init_config (build_options = build_options )
268268
269- pr_data , _ = gh .fetch_pr_data (1844 , repo_owner , repo_name , GITHUB_TEST_ACCOUNT , full = True )
269+ pr_data , _ = gh .fetch_pr_data (16080 , repo_owner , repo_name , GITHUB_TEST_ACCOUNT , full = True )
270270
271271 self .mock_stdout (True )
272272 self .mock_stderr (True )
@@ -278,12 +278,12 @@ def test_github_reasons_for_closing(self):
278278 self .mock_stderr (False )
279279
280280 self .assertIsInstance (res , list )
281- self .assertEqual (stderr .strip (), "WARNING: Using easyconfigs from closed PR #1844 " )
281+ self .assertEqual (stderr .strip (), "WARNING: Using easyconfigs from closed PR #16080 " )
282282 patterns = [
283283 "Status of last commit is SUCCESS" ,
284284 "Last comment on" ,
285285 "No activity since" ,
286- "* QEMU-2.4.0 " ,
286+ "* c-ares-1.18.1 " ,
287287 ]
288288 for pattern in patterns :
289289 self .assertIn (pattern , stdout )
@@ -633,46 +633,47 @@ def test_github_det_commit_status(self):
633633 print ("Skipping test_det_commit_status, no GitHub token available?" )
634634 return
635635
636- # ancient commit, from Jenkins era
636+ # ancient commit, from Jenkins era, no commit status available anymore
637637 commit_sha = 'ec5d6f7191676a86a18404616691796a352c5f1d'
638638 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
639- self .assertEqual (res , 'success' )
639+ self .assertEqual (res , None )
640640
641- # commit with failing tests from Travis CI era (no GitHub Actions yet)
642- commit_sha = 'd0c62556caaa78944722dc84bbb1072bf9688f74'
641+ # ancient commit with passing tests from Travis CI era (no GitHub Actions yet),
642+ # no commit status available anymore
643+ commit_sha = '21354990e4e6b4ca169b93d563091db4c6b2693e'
643644 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
644- self .assertEqual (res , 'failure' )
645+ self .assertEqual (res , None )
645646
646- # commit with passing tests from Travis CI era (no GitHub Actions yet)
647- commit_sha = '21354990e4e6b4ca169b93d563091db4c6b2693e '
647+ # ancient commit tested by both Travis CI and GitHub Actions, no commit status available anymore
648+ commit_sha = '1fba8ac835d62e78cdc7988b08f4409a1570cef1 '
648649 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
649- self .assertEqual (res , 'success' )
650+ self .assertEqual (res , None )
650651
651- # commit with failing tests, tested by both Travis CI and GitHub Actions
652- commit_sha = '3a596de93dd95b651b0d1503562d888409364a96 '
652+ # old commit only tested by GitHub Actions, no commit status available anymore
653+ commit_sha = 'd7130683f02fe8284df3557f0b2fd3947c2ea153 '
653654 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
654- self .assertEqual (res , 'failure' )
655+ self .assertEqual (res , None )
655656
656- # commit with passing tests, tested by both Travis CI and GitHub Actions
657- commit_sha = '1fba8ac835d62e78cdc7988b08f4409a1570cef1'
657+ # commit in test repo where no CI is running at all, no None as result
658+ commit_sha = '8456f867b03aa001fd5a6fe5a0c4300145c065dc'
659+ res = gh .det_commit_status ('easybuilders' , GITHUB_REPO , commit_sha , GITHUB_TEST_ACCOUNT )
660+ self .assertEqual (res , None )
661+
662+ # recent commit (2023-04-11) with cancelled checks (GitHub Actions only)
663+ commit_sha = 'c074f0bb3110c27d9969c3d0b19dde3eca868bd4'
658664 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
659- self .assertEqual (res , 'success ' )
665+ self .assertEqual (res , 'cancelled ' )
660666
661- # commit with failing tests, only tested by GitHub Actions
662- commit_sha = 'd7130683f02fe8284df3557f0b2fd3947c2ea153 '
667+ # recent commit (2023-04-10) with failing checks ( GitHub Actions only)
668+ commit_sha = '1b4a45c62d7deaf19125756c46dc8f011fef66e1 '
663669 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
664670 self .assertEqual (res , 'failure' )
665671
666- # commit with passing tests, only tested by GitHub Actions
667- commit_sha = 'e6df09700a1b90c63b4f760eda4b590ee1a9c2fd '
672+ # recent commit (2023-04-10) with successful checks ( GitHub Actions only)
673+ commit_sha = '56812a347acbaaa87f229fe319425020fe399647 '
668674 res = gh .det_commit_status ('easybuilders' , 'easybuild-easyconfigs' , commit_sha , GITHUB_TEST_ACCOUNT )
669675 self .assertEqual (res , 'success' )
670676
671- # commit in test repo where no CI is running at all
672- commit_sha = '8456f867b03aa001fd5a6fe5a0c4300145c065dc'
673- res = gh .det_commit_status ('easybuilders' , GITHUB_REPO , commit_sha , GITHUB_TEST_ACCOUNT )
674- self .assertEqual (res , None )
675-
676677 def test_github_check_pr_eligible_to_merge (self ):
677678 """Test check_pr_eligible_to_merge function"""
678679 def run_check (expected_result = False ):
0 commit comments