ci: Only run functional tests on native windows in master #28567

pull fjahr wants to merge 1 commits into bitcoin:master from fjahr:2023-10-gha-win changing 1 files +7 −3
  1. fjahr commented at 9:42 am on October 3, 2023: contributor
    This idea was discussed here.
  2. DrahtBot commented at 9:42 am on October 3, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto
    Concept ACK MarcoFalke, fanquake

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    Conflicts

    No conflicts as of last run.

  3. DrahtBot added the label Tests on Oct 3, 2023
  4. fjahr renamed this:
    ci: Only run functional tests on windows in master
    ci: Only run functional tests on native windows in master
    on Oct 3, 2023
  5. maflcko commented at 9:51 am on October 3, 2023: member

    Concept ACK.

    Doesn’t seem ideal, but I can’t see a better alternative right now.

  6. maflcko requested review from hebasto on Oct 3, 2023
  7. maflcko added the label DrahtBot Guix build requested on Oct 3, 2023
  8. maflcko removed the label DrahtBot Guix build requested on Oct 3, 2023
  9. hebasto approved
  10. hebasto commented at 2:55 pm on October 3, 2023: member

    ACK 9eca34224021d5adc80f09555b2e15a81ccd6c76, the diff is correct.

    Suggesting to add a comment that explains the reasons of skipping functional tests in pull requests.

  11. fjahr force-pushed on Oct 3, 2023
  12. fjahr commented at 3:29 pm on October 3, 2023: contributor
    I added a comment as suggested by @hebasto including TODO since that seemed most appropriate.
  13. in .github/workflows/ci.yml:289 in ec2a67cea9 outdated
    285@@ -286,6 +286,10 @@ jobs:
    286         run: py -3 test\util\rpcauth-test.py
    287 
    288       - name: Run functional tests
    289-        env:
    290-          TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
    291-        run: py -3 test\functional\test_runner.py --jobs $env:NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix=$env:RUNNER_TEMP --combinedlogslen=99999999 --timeout-factor=$env:TEST_RUNNER_TIMEOUT_FACTOR $env:TEST_RUNNER_EXTRA
    292+        # TODO: Only run functional tests in master.
    


    maflcko commented at 3:59 pm on October 3, 2023:

    not sure about adding a TODO that is unclear on how to fix. GHA is a proprietary closed-source solution, so any debugging is hard and easily outdated.

    Feel free to open a tracking issue, or use the existing thread, but I don’t think putting a TODO in the code is helpful. It is just spam that shows up when grep-ing for it.


    fjahr commented at 4:46 pm on October 3, 2023:
    I have removed the TODO. I can’t say I’m a fan of TODOs in the code in general but since we use them it would also be fine to use them as “this should still be investigated” or “maybe check again if this has been fixed by now” reminders. I will open a tracking issue once this is merged.

    maflcko commented at 4:53 pm on October 3, 2023:
    The main problem with TODO’s is that once the status changes (one way or the other), they require changing the source code. This is fine for single-dev projects, however for collaborative projects it is better to simply provide the motivation/reason behind a change and then link to a thread/issue if needed, which can be easier tracked and updated with as much information as needed.
  14. fjahr force-pushed on Oct 3, 2023
  15. maflcko approved
  16. fanquake requested review from hebasto on Oct 4, 2023
  17. in .github/workflows/ci.yml:289 in 62c7164bf5 outdated
    285@@ -286,6 +286,10 @@ jobs:
    286         run: py -3 test\util\rpcauth-test.py
    287 
    288       - name: Run functional tests
    289-        env:
    290-          TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
    291-        run: py -3 test\functional\test_runner.py --jobs $env:NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix=$env:RUNNER_TEMP --combinedlogslen=99999999 --timeout-factor=$env:TEST_RUNNER_TIMEOUT_FACTOR $env:TEST_RUNNER_EXTRA
    292+        # Only run functional tests in master.
    


    hebasto commented at 9:52 am on October 4, 2023:

    I reckon this is not correct. The job will run on every push to our version branches and in personal repositories for any branch as well.

    Maybe “Do not run functional tests for pull requests.” or similar?


    fjahr commented at 2:22 pm on October 4, 2023:
    Ah, ok, @MarcoFalke actually suggested to do what the comment says. So I instead adapted the if check to really only run in master (I hope). Does that work for you as well or should I rather change the comment?

    hebasto commented at 2:25 pm on October 4, 2023:

    So I instead adapted the if check to really only run in master (I hope).

    Why skip version branches?

    Also I found useful my personal repo CI in my everyday work.

    UPD. The previous code was just fine as for me.

  18. fjahr force-pushed on Oct 4, 2023
  19. fanquake commented at 3:11 pm on October 4, 2023: member
    Concept ACK. Lets get this merged, because this is just continuing to confuse and annoy contributors.
  20. ci: Only run functional tests on windows in master aba4a5887b
  21. fjahr force-pushed on Oct 4, 2023
  22. fjahr commented at 3:48 pm on October 4, 2023: contributor
    Reverted the if and fixed the comment.
  23. hebasto approved
  24. hebasto commented at 3:54 pm on October 4, 2023: member
    ACK aba4a5887b44bf7cbee9ea0a8e02bb92c1b4147b
  25. fanquake merged this on Oct 4, 2023
  26. fanquake closed this on Oct 4, 2023

  27. Frank-GER referenced this in commit 07f975f0b5 on Oct 13, 2023
  28. fanquake referenced this in commit a7484be65f on Dec 12, 2023
  29. bitcoin locked this on Oct 3, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me