Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Merge conflicts preventing auto-update in testsuite repo

Đang mở
#240 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, wasm
Lĩnh vực
build-system, testing-qa

Hướng nghiên cứu

Bắt đầu với các dấu đánh dấu xung đột trong test/build.py, đặc biệt là convert_wast_to_js, HTML_HEADER và build_html_js. So sánh các phần HEAD và origin/main với quy trình build được mong đợi của repository testsuite. Hoàn tất có nghĩa là các xung đột đã được giải quyết và testsuite có thể tự động lấy lại các bài kiểm thử mới nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

These merge conflicts with the upstream spec are preventing the testsuite repo from automatically pulling in the latest tests from this repo:

diff --cc test/build.py
index b67b0edd,6c105783..00000000
--- a/test/build.py
+++ b/test/build.py
@@@ -68,26 -70,8 +71,31 @@@ def convert_wast_to_js(out_js_dir, infi
  
      inputs = []
  
++<<<<<<< HEAD
 +    test_directories = ['.', 'simd', 'threads']
 +    if infile_pat is not None:
 +        test_directories = ['.']
 +    else:
 +        infile_pat = '*.wast'
 +
 +    wast_files = []
 +    wast_files_in_d = []  # to keep sortedness of files, as glob doesn't guarantee order.
 +
 +    for d in test_directories:
 +        for wast_file in glob.glob(os.path.join(WAST_TESTS_DIR, d, infile_pat)):
 +            wast_files_in_d.append(wast_file)
 +        wast_files_in_d.sort()
 +        wast_files = wast_files + wast_files_in_d
 +        wast_files_in_d = []
 +
 +    if (shuffle):
 +        random.shuffle(wast_files)
 +
 +    for wast_file in wast_files:
++=======
+     for wast_file in glob.glob(os.path.join(WAST_TESTS_DIR, '**/*.wast'),
+                                recursive = True):
++>>>>>>> origin/main
          # Don't try to compile tests that are supposed to fail.
          if '.fail.' in wast_file:
              continue
@@@ -132,10 -119,9 +143,16 @@@ HTML_HEADER = """<!doctype html
      </head>
      <body>
  
++<<<<<<< HEAD
 +        <meta name="timeout" content="long">
 +        <script src={WPT_PREFIX}/testharness.js></script>
 +        <script src={WPT_PREFIX}/testharnessreport.js></script>
 +        <script src={PREFIX}/{JS_HARNESS}></script>
++=======
+         <script src="{WPT_PREFIX}/testharness.js"></script>
+         <script src="{WPT_PREFIX}/testharnessreport.js"></script>
+         <script src="{PREFIX}/{JS_HARNESS}"></script>
++>>>>>>> origin/main
  
          <div id=log></div>
  """
@@@ -159,32 -142,39 +176,53 @@@ def wrap_single_test(js_file)
      with open(js_file, 'w') as f:
          f.write(content)
  
 -def build_html_js(out_dir):
 +def build_html_js(out_dir, infile_pat, shuffle):
      ensure_empty_dir(out_dir)
+     for d in WAST_TEST_SUBDIRS:
+         ensure_empty_dir(os.path.join(out_dir, d))
      copy_harness_files(out_dir, True)
  
 -    tests = convert_wast_to_js(out_dir)
 +    tests = convert_wast_to_js(out_dir, infile_pat, shuffle)
      for js_file in tests:
          wrap_single_test(js_file)
      return tests
  
  def build_html_from_js(tests, html_dir, use_sync):
      for js_file in tests:
-         js_filename = os.path.basename(js_file)
-         html_filename = js_filename + '.html'
-         html_file = os.path.join(html_dir, html_filename)
+         subdir = os.path.basename(os.path.dirname(js_file))
+         js_prefix = '../js'
+         if subdir == 'js':
+             subdir = ''
+             js_prefix = './js'
+         js_filename = os.path.join(js_prefix, subdir, os.path.basename(js_file))
+         html_filename = os.path.basename(js_file) + '.html'
+         html_file = os.path.join(html_dir, subdir, html_filename)
          js_harness = "sync_index.js" if use_sync else "async_index.js"
++<<<<<<< HEAD
 +        js_worker = "sync_worker.js" if use_sync else "async_worker.js"
 +        with open(html_file, 'w+') as f:
 +            content = HTML_HEADER.replace('{PREFIX}', './js/harness') \
 +                                 .replace('{WPT_PREFIX}', './js/harness') \
 +                                 .replace('{JS_HARNESS}', js_harness) \
 +                                 .replace('{JS_WORKER}', js_worker)
 +            content += "        <script src=./js/{SCRIPT}></script>".replace('{SCRIPT}', js_filename)
 +            content += HTML_BOTTOM
 +            f.write(content)
 +
 +def build_html(html_dir, js_dir, infile_pat, shuffle, use_sync):
++=======
+         harness_dir = os.path.join(js_prefix, 'harness')
Ngôn ngữ chính
WebAssembly
Star
767
Fork
54
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WebAssembly/threads

Tất cả issue của WebAssembly/threads

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.